/* Checkout de pago manual: comparte el tono visual oscuro del carrito sin acoplarse a sus columnas. */
.checkout-page { width: 92%; max-width: none; margin-inline: auto; padding-block: 58px 110px; }
.checkout-page__heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; padding: 0 28px 24px; border-bottom: 1px solid #373737; }
.checkout-page__heading .eyebrow, .checkout-card .eyebrow, .checkout-summary .eyebrow { margin: 0 0 8px; }
.checkout-page__heading h1, .checkout-confirmation-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(34px, 4.3vw, 58px); letter-spacing: -.065em; line-height: .96; text-transform: uppercase; }
.checkout-page__heading p:last-child { max-width: 630px; margin: 0; color: #a6a6a6; font-size: 14px; line-height: 1.65; }
.checkout-page__heading > a, .checkout-card__heading > a { color: #d7d7d7; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.checkout-page__heading > a:hover, .checkout-card__heading > a:hover, .checkout-text-link:hover { color: var(--gold); }
.checkout-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 36px; }
.checkout-page__main { display: grid; gap: 22px; }
.checkout-card, .checkout-summary { border: 1px solid #3c3c3c; border-radius: 5px; background: #151515; box-shadow: 0 18px 45px rgba(0, 0, 0, .16); }
.checkout-card { padding: 27px; }
.checkout-card__heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.checkout-card__heading h2, .checkout-summary h2, .checkout-confirmation-next h2 { margin: 0; color: #fff; font-size: 19px; letter-spacing: -.035em; text-transform: uppercase; }
.checkout-address { display: grid; gap: 5px; color: #b8b8b8; font-size: 14px; font-style: normal; line-height: 1.45; }
.checkout-address strong { color: #fff; font-size: 15px; }
.checkout-empty-address { display: grid; justify-items: start; gap: 9px; color: #fff; }
.checkout-empty-address p { margin: 0 0 8px; color: #aaa; font-size: 14px; line-height: 1.55; }
.checkout-empty-address .button { padding-inline: 17px; }
.checkout-payment-copy { margin: -2px 0 18px; color: #aaa; font-size: 13px; line-height: 1.6; }
.checkout-payment-options { display: grid; gap: 10px; }
.checkout-payment-options > label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #414141; padding: 15px; cursor: pointer; transition: border-color .18s, background .18s; }
.checkout-payment-options > label:has(input:checked) { border-color: var(--gold); background: rgba(255, 202, 40, .06); }
.checkout-payment-options input[type="radio"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); }
.checkout-payment-options label span { display: grid; gap: 4px; }
.checkout-payment-options label strong { color: #f4f4f4; font-size: 14px; }
.checkout-payment-options label small { color: #aaa; font-size: 12px; line-height: 1.45; }
.checkout-payment-options .button { min-height: 52px; margin-top: 8px; padding-inline: 18px; text-align: left; }
.checkout-payment-options .button[disabled] { cursor: not-allowed; opacity: .55; }
.checkout-form-feedback { margin: 4px 0 0; color: #ff8d8d; font-size: 13px; line-height: 1.45; }
.checkout-summary { position: sticky; top: 28px; padding: 26px; }
.checkout-summary__heading { margin-bottom: 17px; padding-bottom: 17px; border-bottom: 1px solid #3b3b3b; }
.checkout-summary__items { display: grid; gap: 14px; }
.checkout-summary__item { display: grid; grid-template-columns: 49px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.checkout-summary__item img { width: 49px; height: 49px; object-fit: cover; background: #e7e7e7; }
.checkout-summary__item span { min-width: 0; }
.checkout-summary__item strong { display: block; overflow: hidden; color: #e8e8e8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-summary__item small { display: block; margin-top: 4px; color: #959595; font-size: 11px; }
.checkout-summary__item > b { color: #fff; font-size: 12px; white-space: nowrap; }
.checkout-summary__empty { display: grid; gap: 10px; padding: 9px 0 15px; color: #aaa; font-size: 13px; }
.checkout-summary__empty a { justify-self: start; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.checkout-summary__row { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; border-top: 1px solid #393939; padding-top: 17px; color: #b7b7b7; font-size: 13px; }
.checkout-summary__row strong { color: #f2f2f2; }
.checkout-summary__row--total { margin-top: 13px; padding-top: 15px; color: #fff; font-size: 16px; }
.checkout-summary__note { display: flex; gap: 8px; margin: 20px 0 0; border-top: 1px solid #393939; padding-top: 16px; color: #969696; font-size: 11px; line-height: 1.55; }
.checkout-summary__note span { color: var(--gold); font-size: 16px; line-height: .8; }
.checkout-confirmation-hero { max-width: 730px; margin: 0 auto 36px; text-align: center; }
.checkout-confirmation-hero__check { display: grid; width: 49px; height: 49px; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--gold); color: #161616; font-size: 26px; font-weight: 900; }
.checkout-confirmation-hero .eyebrow { margin: 0 0 8px; }
.checkout-confirmation-hero p:last-child { margin: 0; color: #b0b0b0; font-size: 14px; line-height: 1.65; }
.checkout-confirmation-hero p:last-child strong { color: #fff; }
.checkout-confirmation-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); align-items: start; gap: 24px; }
.checkout-status { border: 1px solid rgba(255, 202, 40, .58); padding: 6px 9px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.checkout-confirmation-items { display: grid; }
.checkout-confirmation-items > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; border-top: 1px solid #353535; padding: 15px 0; color: #aaa; font-size: 12px; }
.checkout-confirmation-items > div:first-child { border-top: 0; padding-top: 0; }
.checkout-confirmation-items span:first-child { min-width: 0; }
.checkout-confirmation-items span:first-child strong { display: block; overflow: hidden; color: #f2f2f2; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-confirmation-items small { display: block; margin-top: 3px; color: #8d8d8d; }
.checkout-confirmation-items > div > strong { color: #fff; font-size: 13px; white-space: nowrap; }
.checkout-confirmation-total { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #4a4a4a; padding-top: 18px; color: #d6d6d6; font-size: 15px; }
.checkout-confirmation-total strong { color: #fff; font-size: 18px; }
.checkout-confirmation-next { display: grid; align-content: start; gap: 13px; }
.checkout-confirmation-next .eyebrow { margin-bottom: -5px; }
.checkout-confirmation-next p { margin: 0 0 4px; color: #aaa; font-size: 13px; line-height: 1.6; }
.checkout-confirmation-next .button { min-height: 50px; padding-inline: 17px; }
.checkout-text-link { justify-self: center; margin-top: 4px; color: #d6d6d6; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 900px) {
  .checkout-page__layout, .checkout-confirmation-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; max-width: 640px; }
}
@media (max-width: 640px) {
  .checkout-page { width: min(calc(100% - 32px), 540px); padding-block: 42px 68px; }
  .checkout-page__heading { display: grid; align-items: start; gap: 15px; margin-bottom: 26px; padding-inline: 18px; }
  .checkout-page__heading h1, .checkout-confirmation-hero h1 { font-size: 36px; }
  .checkout-card, .checkout-summary { padding: 20px 17px; }
  .checkout-card__heading { gap: 12px; }
  .checkout-confirmation-items > div { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; }
  .checkout-confirmation-items > div > span:nth-child(2) { grid-column: 1; }
  .checkout-confirmation-items > div > strong { grid-column: 2; grid-row: 1 / span 2; }
}

/* Checkout de entrega: campos claros, resumen fijo y lectura cómoda en móvil. */
.checkout-page__layout { grid-template-columns: minmax(0, var(--checkout-main-column, 3fr)) minmax(0, var(--checkout-side-column, 2fr)); gap: clamp(24px, 2.6vw, 38px); }
.checkout-page__main, .checkout-page__side { min-width: 0; }
.checkout-page__main { gap: 18px; }
.checkout-card { border-color: #343434; border-radius: 10px; background: linear-gradient(145deg, #171717, #121212); box-shadow: none; }
.checkout-card__heading { align-items: center; margin-bottom: 23px; padding-bottom: 17px; border-bottom: 1px solid #303030; }
.checkout-card__heading h2 { font-size: 22px; letter-spacing: -.045em; }
.checkout-required-note { color: #9c9c9c; font-size: 10px; font-weight: 750; }
.checkout-required-note b, .checkout-field-grid label > span b, .checkout-terms b { color: #ff7777; font-size: 13px; }
.checkout-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.checkout-field-grid__full { grid-column: 1 / -1; }
.checkout-field-grid label, .checkout-notes { display: grid; gap: 8px; min-width: 0; }
.checkout-field-grid label > span, .checkout-notes > span, .checkout-promo label { color: #f6f6f6; font-size: 12px; font-weight: 800; letter-spacing: -.015em; }
.checkout-field-grid label > span b { margin-left: 2px; }
.checkout-field-grid input, .checkout-field-grid select, .checkout-notes textarea, .checkout-promo input { width: 100%; min-height: 46px; box-sizing: border-box; padding: 0 0 10px; color: #fff; border: 0; border-bottom: 1px solid #575757; border-radius: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; transition: border-color .18s, box-shadow .18s; }
.checkout-notes textarea { min-height: 108px; padding: 10px 0; resize: vertical; line-height: 1.5; }
.checkout-field-grid input::placeholder, .checkout-notes textarea::placeholder, .checkout-promo input::placeholder { color: #858585; opacity: 1; }
.checkout-field-grid input:focus, .checkout-field-grid select:focus, .checkout-notes textarea:focus, .checkout-promo input:focus { border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.checkout-field-grid select { cursor: pointer; }
.checkout-field-grid select { color: #fff; color-scheme: dark; }
.checkout-field-grid select option { color: #fff; background: #171717; }
.checkout-field-grid select option:checked { color: #111; background: var(--gold); }
.checkout-field-grid label > small { color: #8b8b8b; font-size: 10px; line-height: 1.35; }
.checkout-country { display: grid; gap: 3px; padding: 14px 15px; border: 1px solid #343434; border-radius: 8px; background: #101010; }
.checkout-country span { color: #9b9b9b; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.checkout-country strong { color: #fff; font-size: 14px; }
.checkout-country small { color: #929292; font-size: 10px; }
.checkout-account-email { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 13px 14px; color: #bcbcbc; border: 1px solid #3d3d3d; border-radius: 8px; background: #101010; font-size: 12px; line-height: 1.4; }
.checkout-account-email > span { display: grid; width: 18px; height: 18px; place-items: center; color: #101010; border-radius: 50%; background: var(--gold); font-size: 11px; font-weight: 900; }
.checkout-account-email strong { color: #fff; overflow-wrap: anywhere; }
.checkout-notes > span small { color: #929292; font-size: 10px; font-weight: 500; }
.checkout-create-account, .checkout-terms { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px; border: 1px solid #3c3c3c; border-radius: 8px; background: #101010; cursor: pointer; }
.checkout-create-account input, .checkout-terms input { width: 16px; height: 16px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--gold); }
.checkout-create-account span { display: grid; gap: 3px; }
.checkout-create-account strong { color: #fff; font-size: 12px; }
.checkout-create-account small, .checkout-terms { color: #a0a0a0; font-size: 11px; line-height: 1.45; }
.checkout-payment-copy { margin: -4px 0 18px; }
.checkout-payment-options { display: grid; gap: 10px; }
.checkout-payment-options > label { border-radius: 8px; }
.checkout-terms { margin: 17px 0; }
.checkout-terms a { color: var(--gold); font-weight: 750; }
.checkout-payment .button { min-height: 54px; margin-top: 4px; justify-content: center; text-align: center; }
.checkout-summary { padding: 27px; border-color: #444; border-radius: 10px; background: #171717; }
.checkout-summary__items { max-height: none; overflow: visible; padding-right: 0; }
.checkout-summary__item { padding-bottom: 13px; border-bottom: 1px solid #303030; }
.checkout-summary__item:last-child { padding-bottom: 0; border-bottom: 0; }
.checkout-summary__item { grid-template-columns: 44px minmax(0, 1fr) auto 27px; }
.checkout-summary__item img { width: 44px; height: 44px; }
.checkout-summary__remove { display: grid; width: 27px; height: 27px; place-items: center; padding: 0; color: #cfcfcf; border: 1px solid #4a4a4a; border-radius: 50%; background: transparent; cursor: pointer; font: inherit; font-size: 20px; line-height: 1; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.checkout-summary__remove:hover, .checkout-summary__remove:focus-visible { color: #171717; border-color: var(--gold); outline: 0; background: var(--gold); transform: scale(1.04); }
.checkout-promo { display: grid; gap: 9px; margin-top: 18px; border-top: 1px solid #393939; padding-top: 17px; }
.checkout-promo__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; color: #f2f2f2; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14px; font-weight: 850; letter-spacing: -.02em; text-align: left; }
.checkout-promo__toggle b { display: grid; width: 29px; height: 29px; place-items: center; color: var(--gold); border: 1px solid #555; border-radius: 50%; font-size: 22px; font-weight: 500; line-height: 1; transition: transform .18s, border-color .18s, background .18s; }
.checkout-promo__toggle[aria-expanded="true"] b { border-color: var(--gold); background: rgba(255, 202, 40, .1); transform: rotate(45deg); }
.checkout-promo__toggle:hover span, .checkout-promo__toggle:focus-visible span { color: var(--gold); }
.checkout-promo__toggle:focus-visible { outline: 0; }
.checkout-promo__panel { display: grid; gap: 8px; padding-top: 4px; }
.checkout-promo__panel[hidden] { display: none; }
.checkout-promo__entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.checkout-promo input { min-height: 40px; padding: 0 10px; border: 1px solid #4a4a4a; border-radius: 6px; background: #101010; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.checkout-promo__entry button { min-height: 40px; padding: 0 13px; color: #161616; border: 1px solid var(--gold); border-radius: 6px; background: var(--gold); cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; transition: background .18s, border-color .18s, color .18s; }
.checkout-promo__entry button:hover, .checkout-promo__entry button:focus-visible { color: var(--gold); outline: 0; background: #171717; }
.checkout-promo__entry button:disabled { cursor: wait; opacity: .65; }
.checkout-promo__feedback { margin: 0; padding: 8px 10px; border: 1px solid #484848; border-radius: 6px; color: #c7c7c7; background: #111; font-size: 10px; line-height: 1.45; }
.checkout-promo__feedback.is-valid { color: #9fe1bd; border-color: rgba(83, 193, 126, .55); background: rgba(30, 121, 65, .14); }
.checkout-promo__feedback.is-invalid { color: #ffc4c4; border-color: rgba(235, 112, 112, .5); background: rgba(145, 46, 46, .12); }
.checkout-summary__row--total { color: var(--gold); }
.checkout-summary__row--total strong { color: var(--gold); font-size: 19px; }
.checkout-page__side { display: grid; align-self: start; gap: 18px; }
.checkout-page__side .checkout-summary { position: static; }
.checkout-payment-panel { padding: 24px; border: 1px solid #4a4a4a; border-radius: 10px; background: linear-gradient(145deg, #1a1a1a, #121212); box-shadow: 0 16px 38px rgba(0, 0, 0, .18); }
.checkout-payment-panel .eyebrow { margin: 0 0 6px; }
.checkout-payment-panel h3 { margin: 0; color: #fff; font-size: 17px; letter-spacing: -.04em; text-transform: uppercase; }
.checkout-payment-panel .checkout-payment-copy { margin: 8px 0 15px; font-size: 11px; line-height: 1.55; }
.checkout-payment-panel .button { min-height: 50px; margin-top: 14px; justify-content: center; text-align: center; }
.checkout-payment-select { display: grid; gap: 7px; }
.checkout-payment-select > span { color: #f0f0f0; font-size: 11px; font-weight: 800; }
.checkout-payment-select > span b { color: #ff7777; font-size: 13px; }
.checkout-payment-select select { width: 100%; min-height: 44px; box-sizing: border-box; padding: 0 12px; color: #fff; border: 1px solid #4a4a4a; border-radius: 7px; outline: 0; background: #101010; color-scheme: dark; cursor: pointer; font: inherit; font-size: 12px; transition: border-color .18s, box-shadow .18s; }
.checkout-payment-select select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 202, 40, .1); }
.checkout-payment-select select option { color: #fff; background: #171717; }
.checkout-payment-select small { color: #929292; font-size: 10px; line-height: 1.45; }
.checkout-terms-wrap { margin-top: 13px; }
.checkout-terms { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; margin: 0; padding: 12px; color: #a0a0a0; border: 1px solid #3c3c3c; border-radius: 8px; background: #101010; font-size: 10px; line-height: 1.5; }
.checkout-terms input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 6px 0 0; accent-color: var(--gold); }
.checkout-terms label { cursor: pointer; }
.checkout-terms__toggle { padding: 0; color: var(--gold); border: 0; border-bottom: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; font-weight: 800; line-height: inherit; text-align: left; }
.checkout-terms__toggle:hover, .checkout-terms__toggle:focus-visible { border-bottom-color: currentColor; outline: 0; }
.checkout-terms > b { align-self: baseline; }
.checkout-terms__details { display: grid; gap: 10px; margin-top: 8px; padding: 12px; border: 1px solid rgba(255, 202, 40, .36); border-radius: 8px; background: #111; }
.checkout-terms__details[hidden] { display: none; }
.checkout-terms__details-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-terms__details-heading strong { color: #f5f5f5; font-size: 11px; }
.checkout-terms__details-heading button { padding: 0; color: #c8c8c8; border: 0; border-bottom: 1px solid #696969; background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.checkout-terms__details-heading button:hover, .checkout-terms__details-heading button:focus-visible { color: var(--gold); border-color: var(--gold); outline: 0; }
.checkout-terms__scroll { max-height: 244px; overflow: auto; padding-right: 8px; color: #a9a9a9; font-size: 10px; line-height: 1.55; scrollbar-color: #767676 #161616; scrollbar-width: thin; }
.checkout-terms__scroll > p { margin: 0 0 12px; }
.checkout-terms__scroll section { border-top: 1px solid #333; padding-top: 10px; }
.checkout-terms__scroll h4 { margin: 0 0 4px; color: #f1f1f1; font-size: 10px; }
.checkout-terms__scroll section p { margin: 0 0 10px; }
.checkout-terms__details > a { justify-self: start; color: var(--gold); font-size: 10px; font-weight: 800; }

@media (max-width: 900px) {
  .checkout-page__layout { grid-template-columns: 1fr; }
  .checkout-summary { max-width: none; }
  .checkout-page__layout { justify-items: center; }
  .checkout-page__main { width: min(var(--checkout-main-width, 100%), 100%); }
  .checkout-page__side { width: min(var(--checkout-side-width, 100%), 100%); position: static; max-width: 640px; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .checkout-page { width: 96%; }
  .checkout-page__layout { gap: 28px; }
  .checkout-page__side .checkout-summary { width: 100%; max-width: none; }
}
@media (max-width: 640px) {
  .checkout-field-grid { grid-template-columns: 1fr; gap: 17px; }
  .checkout-field-grid__full { grid-column: auto; }
  .checkout-card__heading { align-items: flex-start; }
  .checkout-required-note { padding-top: 3px; white-space: nowrap; }
  .checkout-create-account, .checkout-terms { padding: 12px; }
}

/* Móvil: aprovecha el lienzo sin pegar las tarjetas a los bordes. */
@media (max-width: 640px) {
  .checkout-page:not(.checkout-page--thank-you) { width: 98%; max-width: none; }
}

.checkout-page--activation { max-width: 620px; }
.checkout-activation-form { display: grid; gap: 16px; max-width: 520px; margin: 0 auto; }
.checkout-activation-form label { display: grid; gap: 8px; }
.checkout-activation-form label > span { color: #f4f4f4; font-size: 12px; font-weight: 800; }
.checkout-activation-form label b { color: #ff7777; }
.checkout-activation-form input { min-height: 46px; padding: 0 12px; color: #fff; border: 1px solid #4b4b4b; border-radius: 7px; outline: 0; background: #101010; font: inherit; }
.checkout-activation-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 202, 40, .12); }
.checkout-activation-form__email { margin: 0 0 4px; padding-bottom: 16px; color: #aaa; border-bottom: 1px solid #343434; font-size: 12px; }
.checkout-activation-form__email strong { color: #fff; overflow-wrap: anywhere; }
.checkout-activation-form__hint { margin: -3px 0 2px; color: #929292; font-size: 10px; line-height: 1.45; }

/* Selección y cotización de entrega por provincia/cantón. */
.checkout-delivery { display: grid; gap: 16px; }
.checkout-delivery .checkout-card__heading { margin-bottom: 0; }
.checkout-delivery .checkout-required-note { white-space: normal; text-align: right; }
.checkout-summary__delivery { margin-top: 18px; border-top: 1px solid #393939; padding-top: 17px; }
.checkout-delivery__heading { display: grid; gap: 4px; }
.checkout-delivery__heading h3 { margin: 0; color: #f7f7f7; font-size: 13px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.checkout-delivery__heading span { color: #9f9f9f; font-size: 11px; line-height: 1.45; }
.checkout-delivery__methods { display: grid; gap: 10px; }
.checkout-delivery__methods > label { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid #3d3d3d; border-radius: 8px; background: #101010; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.checkout-delivery__methods > label:hover { border-color: #777; transform: translateY(-1px); }
.checkout-delivery__methods > label:has(input:checked) { border-color: var(--gold); background: rgba(255, 202, 40, .07); }
.checkout-delivery__methods input { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--gold); }
.checkout-delivery__methods span { display: grid; gap: 4px; }
.checkout-delivery__methods strong { color: #f7f7f7; font-size: 13px; }
.checkout-delivery__methods small { color: #a4a4a4; font-size: 11px; line-height: 1.45; }
.checkout-delivery__feedback { min-height: 18px; margin: 0; padding: 10px 12px; color: #b7b7b7; border: 1px solid #393939; border-radius: 7px; background: #111; font-size: 11px; line-height: 1.45; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.checkout-delivery__feedback.is-valid { color: #a8e5bd; border-color: rgba(83, 193, 126, .55); background: rgba(30, 121, 65, .14); }
.checkout-delivery__feedback.is-warning { color: #ffe09c; border-color: rgba(229, 173, 44, .5); background: rgba(137, 91, 8, .14); }
.checkout-delivery__feedback.is-error { color: #ffc0c0; border-color: rgba(235, 112, 112, .55); background: rgba(145, 46, 46, .14); }
.checkout-delivery__feedback.is-pending { color: #bdd8e8; border-color: rgba(89, 154, 191, .5); background: rgba(26, 80, 112, .14); }
.checkout-summary__row--shipping { margin-top: 13px; padding-top: 15px; }
.checkout-summary__row--shipping strong { color: #fff; font-size: 13px; text-align: right; }
/* El atributo hidden no puede perder frente a la regla flex del resumen. */
.checkout-summary__row--shipping[hidden] { display: none !important; }

@media (max-width: 640px) {
  .checkout-delivery__methods > label { padding: 13px; }
  .checkout-delivery__feedback { padding: 9px 10px; }
  .checkout-delivery .checkout-required-note { text-align: left; }
  .checkout-summary__delivery { margin-top: 16px; padding-top: 15px; }
}

/* Página de agradecimiento: referencias claras, factura y próximos pasos. */
.checkout-page--thank-you { padding-top: clamp(54px, 7vw, 98px); }
.thank-you-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 25px; margin-bottom: 24px; padding: clamp(25px, 4vw, 47px); overflow: hidden; border: 1px solid #454545; border-radius: 14px; background: radial-gradient(circle at 91% 13%, rgba(255, 202, 40, .16), transparent 24%), linear-gradient(135deg, #1b1b1b, #111); }
.thank-you-hero::after { position: absolute; right: -42px; bottom: -80px; width: 250px; height: 250px; border: 1px solid rgba(255, 202, 40, .17); border-radius: 50%; content: ''; pointer-events: none; }
.thank-you-hero > * { position: relative; z-index: 1; }
.thank-you-hero__seal { display: grid; width: 61px; height: 61px; place-items: center; margin: 0; color: #171717; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px rgba(255, 202, 40, .10); font-size: 30px; font-weight: 950; }
.thank-you-hero .eyebrow { margin: 0 0 8px; }
.thank-you-hero h1 { max-width: 740px; margin: 0; color: #fff; font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -.065em; line-height: .95; text-transform: uppercase; }
.thank-you-hero div > p:last-child { max-width: 720px; margin: 15px 0 0; color: #bcbcbc; font-size: 14px; line-height: 1.7; }
.thank-you-hero div > p strong { color: #fff; }
.thank-you-status { justify-self: end; padding: 8px 10px; color: var(--gold); border: 1px solid rgba(255, 202, 40, .55); border-radius: 999px; background: rgba(255, 202, 40, .08); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.thank-you-status.is-paid, .thank-you-status.is-processing, .thank-you-status.is-shipped, .thank-you-status.is-completed { color: #9fedbe; border-color: rgba(87, 204, 133, .58); background: rgba(35, 127, 72, .16); }
.thank-you-status.is-cancelled { color: #ffb1b1; border-color: rgba(225, 93, 93, .55); background: rgba(132, 39, 39, .17); }
.thank-you-references { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 25px; }
.thank-you-references article { display: grid; gap: 7px; min-width: 0; padding: 17px; border: 1px solid #383838; border-radius: 10px; background: #141414; }
.thank-you-references span { color: #929292; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.thank-you-references strong { overflow: hidden; color: #f4f4f4; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.thank-you-references article:last-child strong { color: var(--gold); font-size: 17px; }
.thank-you-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(295px, .72fr); align-items: start; gap: 22px; }
.thank-you-layout--without-products { grid-template-columns: minmax(0, 620px); justify-content: end; }
.thank-you-products { padding: 0; overflow: hidden; }
.thank-you-products .checkout-card__heading { align-items: center; margin: 0; padding: 24px 26px 19px; }
.thank-you-products time { color: #a4a4a4; font-size: 11px; font-weight: 700; }
.thank-you-products__table-wrap { overflow-x: auto; border-top: 1px solid #373737; scrollbar-color: #686868 #151515; scrollbar-width: thin; }
.thank-you-products__table { width: 100%; min-width: 590px; border-collapse: collapse; }
.thank-you-products__table th, .thank-you-products__table td { padding: 17px 25px; border-bottom: 1px solid #303030; color: #bcbcbc; font-size: 12px; text-align: right; white-space: nowrap; }
.thank-you-products__table th:first-child, .thank-you-products__table td:first-child { width: 57%; text-align: left; white-space: normal; }
.thank-you-products__table th { color: #929292; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.thank-you-products__table tbody tr:last-child td { border-bottom: 0; }
.thank-you-products__table td strong { color: #f3f3f3; font-size: 13px; }
.thank-you-products__table td small { display: block; margin-top: 4px; color: #858585; font-size: 10px; }
.thank-you-aside { display: grid; gap: 18px; }
.thank-you-total, .thank-you-invoice { display: grid; align-content: start; gap: 13px; padding: 25px; }
.thank-you-total .eyebrow, .thank-you-invoice .eyebrow { margin: 0 0 -6px; }
.thank-you-total h2, .thank-you-invoice h2 { margin: 0; color: #fff; font-size: 18px; letter-spacing: -.04em; text-transform: uppercase; }
.thank-you-total dl { display: grid; gap: 0; margin: 5px 0 0; }
.thank-you-total dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; color: #b8b8b8; border-top: 1px solid #363636; font-size: 13px; }
.thank-you-total dt, .thank-you-total dd { margin: 0; }
.thank-you-total dd { color: #f1f1f1; font-weight: 750; text-align: right; }
.thank-you-total .thank-you-total__grand { padding-top: 15px; color: #fff; font-size: 16px; }
.thank-you-total__grand dd { color: var(--gold); font-size: 19px; }
.thank-you-total__note { display: flex; gap: 8px; margin: 3px 0 0; padding-top: 15px; color: #999; border-top: 1px solid #363636; font-size: 10px; line-height: 1.55; }
.thank-you-total__note span { color: var(--gold); font-size: 13px; }
.thank-you-invoice { border-color: #4b4431; background: linear-gradient(145deg, #1a1914, #151515); }
.thank-you-invoice > p:not(.eyebrow) { margin: 0; color: #ababab; font-size: 12px; line-height: 1.6; }
.thank-you-invoice__table-wrap { overflow: hidden; margin-top: 2px; border: 1px solid #3b3b3b; border-radius: 8px; }
.thank-you-invoice__details { width: 100%; border-collapse: collapse; }
.thank-you-invoice__details th, .thank-you-invoice__details td { padding: 10px 12px; border-bottom: 1px solid #333; font-size: 11px; text-align: left; }
.thank-you-invoice__details tr:last-child th, .thank-you-invoice__details tr:last-child td { border-bottom: 0; }
.thank-you-invoice__details th { width: 48%; color: #a8a8a8; background: rgba(255,255,255,.025); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.thank-you-invoice__details td { color: #f3f3f3; font-weight: 750; overflow-wrap: anywhere; }
.thank-you-invoice__actions { display: grid; gap: 12px; margin-top: 3px; }
.thank-you-invoice__actions .button { min-height: 47px; justify-content: center; padding-inline: 15px; font-size: 11px; }
.thank-you-invoice__actions > a:not(.button) { justify-self: center; color: #d4d4d4; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.thank-you-invoice__actions > a:not(.button):hover { color: var(--gold); }
.thank-you-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #393939; }
.thank-you-actions a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height: 50px; padding: 0 17px; color: #f0f0f0; border: 1px solid #444; border-radius: 8px; background: #161616; font-size: 11px; font-weight: 850; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.thank-you-actions a:hover, .thank-you-actions a:focus-visible { color: #171717; border-color: var(--gold); outline: 0; background: var(--gold); transform: translateY(-2px); }
.thank-you-actions__account { grid-column: 1 / -1; color: var(--gold) !important; border-color: rgba(255, 202, 40, .55) !important; background: rgba(255, 202, 40, .06) !important; }
.thank-you-actions__account:hover, .thank-you-actions__account:focus-visible { color: #171717 !important; background: var(--gold) !important; }

@media (max-width: 980px) { .thank-you-references { grid-template-columns: repeat(2, minmax(0, 1fr)); } .thank-you-layout { grid-template-columns: 1fr; } .thank-you-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .checkout-page--thank-you { padding-top: 42px; } .thank-you-hero { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 25px 19px; } .thank-you-hero__seal { width: 47px; height: 47px; font-size: 23px; } .thank-you-hero h1 { font-size: 34px; } .thank-you-hero div > p:last-child { grid-column: 1 / -1; margin-top: 18px; font-size: 13px; } .thank-you-status { grid-column: 1 / -1; justify-self: start; } .thank-you-references { grid-template-columns: 1fr 1fr; gap: 9px; } .thank-you-references article { padding: 14px; } .thank-you-references strong { font-size: 11px; } .thank-you-references article:last-child strong { font-size: 15px; } .thank-you-products .checkout-card__heading { align-items: flex-start; gap: 8px; padding: 20px 17px 16px; } .thank-you-products__table { min-width: 0; } .thank-you-products__table thead { display: none; } .thank-you-products__table, .thank-you-products__table tbody, .thank-you-products__table tr, .thank-you-products__table td { display: block; width: 100%; box-sizing: border-box; } .thank-you-products__table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 8px; padding: 15px 17px; border-bottom: 1px solid #303030; } .thank-you-products__table tbody tr:last-child { border-bottom: 0; } .thank-you-products__table td, .thank-you-products__table td:first-child { width: auto; padding: 0; border: 0; text-align: left; white-space: normal; } .thank-you-products__table td:first-child { grid-column: 1 / -1; } .thank-you-products__table td:not(:first-child)::before { display: block; margin-bottom: 3px; color: #8a8a8a; content: attr(data-label); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; } .thank-you-aside { grid-template-columns: 1fr; } .thank-you-total, .thank-you-invoice { padding: 20px 17px; } .thank-you-invoice__details th, .thank-you-invoice__details td { padding: 9px 10px; } .thank-you-actions { grid-template-columns: 1fr; margin-top: 19px; padding-top: 19px; } .thank-you-actions__account { grid-column: auto; } }

/* Composición administrable de Agradecimiento. Los valores finos se inyectan
   desde Páginas > Agradecimiento con CSS validado por el servidor. */
@keyframes thank-you-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes thank-you-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.thank-you-products__description { margin: 8px 0 0; color: #aaa; font-size: 12px; line-height: 1.55; }
.thank-you-actions { grid-template-columns: 1fr; }
.thank-you-actions__intro { max-width: 680px; }
.thank-you-actions__intro .eyebrow { margin: 0 0 7px; }
.thank-you-actions__intro h2 { margin: 0; color: #fff; font-size: 22px; letter-spacing: -.04em; text-transform: uppercase; }
.thank-you-actions__intro > p:last-child { margin: 8px 0 0; color: #aaa; font-size: 12px; line-height: 1.55; }
.thank-you-actions__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
@media (max-width: 640px) { .thank-you-actions__buttons { grid-template-columns: 1fr; } }

/* Confirmación unificada: la información del pedido vive en una sola tabla,
   por lo que se mantiene legible tanto en escritorio como en móvil. */
.checkout-page--thank-you.shell { display: grid; width: 80%; max-width: none; gap: 20px; margin-right: auto; margin-left: auto; padding-bottom: clamp(72px, 9vw, 128px); }
.thank-you-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: clamp(30px, 4.5vw, 54px); }
.thank-you-hero .eyebrow { margin: 0 0 10px; }
.thank-you-hero h1 { max-width: 820px; font-size: clamp(34px, 4.2vw, 60px); text-transform: none; }
.thank-you-hero .thank-you-hero__message { max-width: 760px; margin: 17px 0 0; color: #c1c1c1; font-size: 14px; line-height: 1.75; }
.thank-you-details { width: 100%; padding: 0; overflow: hidden; }
.thank-you-details__table-wrap { overflow: hidden; }
.thank-you-details__table { width: 100%; border-collapse: collapse; }
.thank-you-details__table th, .thank-you-details__table td { padding: 16px 22px; border-bottom: 1px solid #363636; text-align: left; vertical-align: top; }
.thank-you-details__table tr:last-child th, .thank-you-details__table tr:last-child td { border-bottom: 0; }
.thank-you-details__table th { width: 31%; color: #999; background: rgba(255,255,255,.025); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.thank-you-details__table td { color: #f3f3f3; font-size: 13px; font-weight: 720; overflow-wrap: anywhere; }
.thank-you-details__table .is-total th, .thank-you-details__table .is-total td { color: var(--gold); background: rgba(255,202,40,.055); font-weight: 900; }
.thank-you-details__items ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.thank-you-details__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; }
.thank-you-details__items span { display: grid; gap: 3px; min-width: 0; }
.thank-you-details__items strong { color: #f3f3f3; }
.thank-you-details__items small { color: #969696; font-size: 11px; font-weight: 500; }
.thank-you-details__items em { color: #b8b8b8; font-size: 12px; font-style: normal; font-weight: 750; }
.thank-you-details__items b { color: #f6f6f6; font-size: 13px; white-space: nowrap; }
.thank-you-details__download th, .thank-you-details__download td { vertical-align: middle; }
.thank-you-details__download .button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; padding: 0 15px; font-size: 10px; }
.thank-you-actions { margin: 0; padding: 0; border: 0; }
.thank-you-actions__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.thank-you-actions__buttons a { min-height: 54px; }
@media (max-width: 1100px) and (min-width: 641px) { .checkout-page--thank-you.shell { width: 90%; } }
@media (max-width: 640px) { .checkout-page--thank-you.shell { width: 98%; gap: 14px; padding-top: 38px; } .thank-you-hero { padding: 28px 20px; } .thank-you-hero h1 { max-width: 100%; font-size: 34px; overflow-wrap: anywhere; } .thank-you-hero .thank-you-hero__message { margin-top: 15px; font-size: 13px; } .thank-you-details__table, .thank-you-details__table tbody, .thank-you-details__table tr, .thank-you-details__table th, .thank-you-details__table td { display: block; width: 100%; box-sizing: border-box; } .thank-you-details__table tr { padding: 14px 17px; border-bottom: 1px solid #363636; } .thank-you-details__table tr:last-child { border-bottom: 0; } .thank-you-details__table th, .thank-you-details__table td { padding: 0; border: 0; background: transparent; } .thank-you-details__table th { margin-bottom: 6px; } .thank-you-details__table .is-total { background: rgba(255,202,40,.055); } .thank-you-details__items li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 11px; } .thank-you-details__items b { grid-column: 2; } .thank-you-details__download .button { width: 100%; } .thank-you-actions__buttons { grid-template-columns: 1fr; } }

/*
 * Refuerzo del checkout en pantallas estrechas.
 *
 * Los datos de entrega y el resumen pueden tener etiquetas administrables o
 * nombres de productos extensos; se prioriza la lectura antes que recortar
 * información necesaria para finalizar la compra.
 */
.checkout-page,
.checkout-page > *,
.checkout-layout,
.checkout-layout > *,
.checkout-card,
.checkout-summary,
.checkout-summary__item {
    min-width: 0;
}

.checkout-page :is(input, select, textarea, button) {
    max-width: 100%;
}

@media (max-width: 640px) {
    .checkout-required-note,
    .checkout-page__heading > a,
    .checkout-card__heading > a {
        white-space: normal;
    }

    .checkout-summary__item,
    .checkout-summary__item > * {
        min-width: 0;
    }

    .checkout-summary__item strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .checkout-terms__details-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/*
 * Pago integrado de ONVO.
 *
 * El contenedor recibe el formulario alojado por el SDK; estas reglas solo
 * presentan su marco y los mensajes locales sin estilizar ni replicar campos
 * de tarjeta. La composición se apila en móvil para conservar el área táctil.
 */
/* Suma del pedido y selector de métodos activados. */
.checkout-summary__amount { min-width: 0; display: grid; gap: 4px; text-align: end; }
.checkout-summary__amount small { font-size: .75em; line-height: 1.35; }
.checkout-payment-methods { display: grid; gap: 10px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.checkout-payment-methods legend { padding: 0 0 9px; color: var(--checkout-label, #fff); font-weight: 750; }
.checkout-payment-methods legend b { color: #ff7777; }
.checkout-payment-methods > label { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--checkout-border, #414141); border-radius: 6px; color: var(--checkout-label, #fff); cursor: pointer; }
.checkout-payment-methods > label:has(:checked) { border-color: var(--checkout-link, #f9b700); }
.checkout-payment-methods > label input { flex: 0 0 auto; margin: 0; accent-color: var(--checkout-link, #f9b700); }
.checkout-payment-panel [hidden] { display: none !important; }

/* El marco de OnvoPay define sus campos. El fondo blanco se limita a ese componente. */
.checkout-onvopay { display: grid; gap: 13px; min-width: 0; padding: 12px 0 8px; }
.checkout-onvopay > header { display: grid; gap: 5px; }
.checkout-onvopay > header strong { color: #fff; font-size: 14px; letter-spacing: -.015em; }
.checkout-onvopay > header span { color: #bdbdbd; font-size: 11px; line-height: 1.5; }
.checkout-onvopay__sdk { min-width: 0; min-height: 70px; padding: clamp(8px, 2vw, 20px); border-radius: 7px; background: #fff; }
.checkout-onvopay__sdk iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.checkout-onvopay__sdk:empty::before { display: grid; min-height: 62px; place-items: center; color: #666; content: 'Preparando el formulario seguro…'; font-size: 12px; }
.checkout-onvopay__feedback { margin: 0; padding: 10px 12px; color: #ffabab; border: 1px solid rgba(255, 125, 125, .38); border-radius: 6px; background: rgba(133, 29, 29, .18); font-size: 12px; line-height: 1.45; }
.checkout-onvopay__feedback.is-success { color: #a9f1bf; border-color: rgba(89, 201, 120, .4); background: rgba(49, 131, 70, .17); }

/* Acceso al historial y activación desde el enlace del correo. */
.checkout-account-choice { display: grid; gap: 9px; }
.checkout-account-choice > button { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.checkout-account-access { width: min(100%, 640px); margin-inline: auto; }
.checkout-account-access > p, .thank-you-actions > p { max-width: 60ch; margin-block: 12px 20px; color: var(--grey); line-height: 1.55; }
.checkout-account-access > div { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
    .checkout-account-access .button { width: 100%; }
}
