/* Checkout desktop — superfícies leves, controles compactos e assets dimensionados. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-checkout-overlay {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 3200 !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, .22) !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay.hidden {
    display: none !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay > .drawer {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 min(460px, 100vw) !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    width: min(460px, 100vw) !important;
    min-width: 0 !important;
    max-width: 460px !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 20px 22px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 16px 0 0 16px !important;
    background: #fff !important;
    box-shadow: -12px 0 34px rgba(0, 0, 0, .14) !important;
    transform: none !important;
    animation: none !important;
    color: #000000 !important;
    font: 400 14px/1.45 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .drawer-head {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 48px !important;
    margin: -20px -22px 16px !important;
    padding: 12px 22px !important;
    border-bottom: 1px solid #ececec !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .drawer-head h2 {
    margin: 0 !important;
    color: #000000 !important;
    font: 650 20px/1.25 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .drawer-head .close {
    display: grid !important;
    position: static !important;
    flex: 0 0 34px !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    color: #000000 !important;
    font: 400 21px/1 Arial, sans-serif !important;
    cursor: pointer !important;
  }

  /* Resumo financeiro renderizado imediatamente após o cabeçalho. */
  html body.sd-desktop #overlay.sd-checkout-overlay > .drawer > .drawer-head + div {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 14px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    background: #faf9fc !important;
    color: #000000 !important;
    font: 400 13px/1.65 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay > .drawer > .drawer-head + div strong {
    color: #000000 !important;
    font-weight: 600 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .settings-card,
  html body.sd-desktop #overlay.sd-checkout-overlay .sd-fulfillment-summary {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 13px 14px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: none !important;
    font: 400 13px/1.45 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .settings-card strong,
  html body.sd-desktop #overlay.sd-checkout-overlay .settings-title,
  html body.sd-desktop #overlay.sd-checkout-overlay .sd-fulfillment-label {
    display: block !important;
    margin: 0 0 6px !important;
    color: #000000 !important;
    font: 600 14px/1.35 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .sd-fulfillment-value,
  html body.sd-desktop #overlay.sd-checkout-overlay .upload-note,
  html body.sd-desktop #overlay.sd-checkout-overlay .map-help,
  html body.sd-desktop #overlay.sd-checkout-overlay .settings-card p {
    color: #000000 !important;
    font: 400 12px/1.5 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .settings-card .check-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin: 7px 0 0 !important;
    color: #000000 !important;
    font: 400 13px/1.4 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-picker,
  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-empty,
  html body.sd-desktop #overlay.sd-checkout-overlay .sd-delivery-summary {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 13px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-picker-head {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 9px !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-picker-head label,
  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-picker-head span,
  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-copy,
  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-empty p {
    color: #000000 !important;
    font: 400 12px/1.45 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 10px 11px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-card.selected {
    border-color: #000000 !important;
    background: #f9f9f9 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-copy strong {
    color: #000000 !important;
    font: 600 13px/1.35 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-select {
    display: grid !important;
    flex: 0 0 22px !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #cacaca !important;
    border-radius: 50% !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-card.selected .checkout-address-select {
    border-color: #000000 !important;
    background: #000000 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .checkout-address-card.selected .checkout-address-select::after {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #fff !important;
    content: "" !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay .sd-delivery-summary h3 {
    margin: 0 0 9px !important;
    color: #000000 !important;
    font: 600 14px/1.35 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 13px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > .field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 400 13px/1.45 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > .field > label,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .field > label {
    display: block !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 600 13px/1.35 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm select,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 9px !important;
    outline: none !important;
    background: #fff !important;
    color: #000000 !important;
    font: 400 13px/1.4 Inter, sans-serif !important;
    box-shadow: none !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm textarea {
    min-height: 76px !important;
    resize: vertical !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm input:focus,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm select:focus,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm textarea:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .11) !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm input[type="radio"],
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm input[type="checkbox"] {
    flex: 0 0 16px !important;
    box-sizing: border-box !important;
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #000000 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-checks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm label.payment-method-option {
    display: grid !important;
    grid-template-columns: 16px 30px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: none !important;
    font: 500 12px/1.3 Inter, sans-serif !important;
    cursor: pointer !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm label.payment-method-option:has(input:checked) {
    border-color: #000000 !important;
    background: #f9f9f9 !important;
    color: #000000 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-icon {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 30px !important;
    box-sizing: border-box !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #f3f3f3 !important;
    line-height: 0 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-icon img {
    display: block !important;
    flex: 0 0 24px !important;
    box-sizing: border-box !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: 0 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-label {
    display: block !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    color: inherit !important;
    font: 500 12px/1.3 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > .field:has(#useCoins) {
    padding: 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 11px !important;
    background: #faf9fc !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > .field:has(#useCoins) .check-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 400 13px/1.4 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > .field:has(#useCoins) strong {
    color: #000000 !important;
    font: 600 13px/1.35 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #walletPaymentBox,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #cashPaymentBox,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #cardPaymentBox {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #faf9fc !important;
    color: #000000 !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #cardPaymentBrick_container {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #cardPaymentBrick_container iframe,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #cardPaymentBrick_container > div {
    max-width: 100% !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .small-outline,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .outline {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #dbdbdb !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #000000 !important;
    font: 600 12px/1.2 Inter, sans-serif !important;
    cursor: pointer !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm #applyCoupon {
    width: auto !important;
    min-width: 82px !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .checkout-inline-alert {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 11px 12px !important;
    border: 1px solid #f1c9c9 !important;
    border-radius: 10px !important;
    background: #fff7f7 !important;
    color: #9c3434 !important;
    font: 500 13px/1.45 Inter, sans-serif !important;
  }

  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > button.primary,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm > button[type="submit"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 2px 0 0 !important;
    padding: 12px 16px !important;
    border: 1px solid #000000 !important;
    border-radius: 10px !important;
    background: #000000 !important;
    color: #fff !important;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .16) !important;
    font: 600 14px/1.2 Inter, sans-serif !important;
    cursor: pointer !important;
  }
}


/* Checkout: cartões de método mais compactos, em duas colunas. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-checks {
    gap: 6px !important;
    margin-top: 2px !important;
  }
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm label.payment-method-option {
    grid-template-columns: 16px 22px minmax(0, 1fr) !important;
    gap: 6px !important;
    min-height: 42px !important;
    padding: 6px 8px !important;
    border-radius: 9px !important;
  }
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-icon {
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    border-radius: 6px !important;
  }
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-icon img,
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-icon svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
  }
}


/* Checkout desktop: rótulos dos quatro meios de pagamento em 14 px. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-checkout-overlay #checkoutForm .payment-method-option .payment-method-label {
    font: 500 14px/1.2 Inter, sans-serif !important;
  }
}
