/* Ajustes exclusivos da confirmação do pedido no desktop. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer {
    box-sizing: border-box !important;
    width: min(460px, calc(100vw - 32px)) !important;
    max-width: 460px !important;
    padding: 30px 26px 26px !important;
    overflow-x: hidden !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer > .drawer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer > .drawer-head h2 {
    margin: 0 !important;
    color: #000000 !important;
    font: 700 22px/1.25 Inter, Arial, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer > p:not(.delivery-code):not(.upload-note) {
    margin: 0 0 12px !important;
    color: #000000 !important;
    font: 400 14px/1.5 Inter, Arial, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) .delivery-code {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: fit-content !important;
    min-width: 132px !important;
    max-width: 100% !important;
    margin: 16px auto 8px !important;
    padding: 10px 18px !important;
    overflow-wrap: anywhere !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 12px !important;
    background: #f3f3f3 !important;
    color: #000000 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08) !important;
    font: 700 22px/1.15 Inter, Arial, sans-serif !important;
    letter-spacing: .13em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) .sdfood-order-confirmation-lottie {
    display: block !important;
    box-sizing: border-box !important;
    width: 230px !important;
    height: 230px !important;
    min-height: 230px !important;
    margin: 16px auto 14px !important;
    overflow: hidden !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) .sdfood-order-confirmation-lottie svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transform: scale(3) !important;
    transform-origin: 50% 50% !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) .upload-note {
    display: block !important;
    margin: 6px 0 14px !important;
    color: #000000 !important;
    font: 400 13px/1.5 Inter, Arial, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer button#okOrderCode,
  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer button#openPaidOrderDetails {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 10px 0 0 !important;
    padding: 11px 18px !important;
    border: 1px solid #000000 !important;
    border-radius: 11px !important;
    background: #000000 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18) !important;
    font: 600 14px/1.25 Inter, Arial, sans-serif !important;
    cursor: pointer !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer button#okOrderCode:hover,
  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer button#openPaidOrderDetails:hover {
    background: #000000 !important;
    border-color: #000000 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer ul {
    display: grid !important;
    gap: 10px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.sd-desktop-panel:has(.delivery-code) > .drawer li {
    color: #000000 !important;
    font: 500 13px/1.4 Inter, Arial, sans-serif !important;
  }
}


/* Confirmação Pix/cartão aprovada: mesmo padrão visual do código de pedido */
html body[data-app-variant="customer"] #overlay .sd-payment-approved-card {
  padding: 4px 0 8px;
  text-align: center;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-title {
  margin: 4px 0 7px;
  color: #000000;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-subtitle {
  margin: 0 auto 15px;
  max-width: 360px;
  color: #000000;
  font-size: 14px;
  line-height: 1.45;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-codes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-codes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #e9e9e9;
  border-radius: 13px;
  background: #fff;
  color: #000000;
  font-size: 14px;
  line-height: 1.25;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-codes li strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-codes .delivery-code {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 11px;
  color: #fff;
  background: #000000;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
}
html body[data-app-variant="customer"] #overlay .sd-payment-approved-card > #okOrderCode {
  width: 100%;
  margin-top: 14px;
}
