/* ========= CHECKOUT ========= */
/* Header sin nav: logo expandido para empujar carrito a la derecha */
.hdr__logo{flex:1}
.ck-top{background:#fff;border-bottom:1px solid var(--plum-line);padding:clamp(14px,2.5vw,22px) 0}
.ck-top__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem}
.ck-top h1{font-size:clamp(1.2rem,2.4vw,1.65rem);margin:0}
.breadcrumb{display:flex;align-items:center;gap:.4rem;font-size:.82rem;color:var(--ink-soft)}
.breadcrumb a{color:var(--plum);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{color:var(--ink-soft)}

/* País: ocultar solo variantes exclusivas de otro país */
body[data-fx-country="pe"] .fx-only-co:not(.fx-only-pe),
body[data-fx-country="pe"] .fx-only-usa:not(.fx-only-pe),
body[data-fx-country="pe"] .fx-only-mx:not(.fx-only-pe),
body[data-fx-country="pe"] .fx-only-ec:not(.fx-only-pe),
body[data-fx-country="pe"] .fx-only-gt:not(.fx-only-pe){display:none!important}
body[data-fx-country="co"] .fx-only-pe:not(.fx-only-co),
body[data-fx-country="co"] .fx-only-usa:not(.fx-only-co),
body[data-fx-country="co"] .fx-only-mx:not(.fx-only-co),
body[data-fx-country="co"] .fx-only-ec:not(.fx-only-co),
body[data-fx-country="co"] .fx-only-gt:not(.fx-only-co){display:none!important}
body[data-fx-country="usa"] .fx-only-pe:not(.fx-only-usa),
body[data-fx-country="usa"] .fx-only-co:not(.fx-only-usa),
body[data-fx-country="usa"] .fx-only-mx:not(.fx-only-usa),
body[data-fx-country="usa"] .fx-only-ec:not(.fx-only-usa),
body[data-fx-country="usa"] .fx-only-gt:not(.fx-only-usa){display:none!important}
body[data-fx-country="mx"] .fx-only-pe:not(.fx-only-mx),
body[data-fx-country="mx"] .fx-only-co:not(.fx-only-mx),
body[data-fx-country="mx"] .fx-only-usa:not(.fx-only-mx),
body[data-fx-country="mx"] .fx-only-ec:not(.fx-only-mx),
body[data-fx-country="mx"] .fx-only-gt:not(.fx-only-mx){display:none!important}
body[data-fx-country="ec"] .fx-only-pe:not(.fx-only-ec),
body[data-fx-country="ec"] .fx-only-co:not(.fx-only-ec),
body[data-fx-country="ec"] .fx-only-usa:not(.fx-only-ec),
body[data-fx-country="ec"] .fx-only-mx:not(.fx-only-ec),
body[data-fx-country="ec"] .fx-only-gt:not(.fx-only-ec){display:none!important}
body[data-fx-country="gt"] .fx-only-pe:not(.fx-only-gt),
body[data-fx-country="gt"] .fx-only-co:not(.fx-only-gt),
body[data-fx-country="gt"] .fx-only-usa:not(.fx-only-gt),
body[data-fx-country="gt"] .fx-only-mx:not(.fx-only-gt),
body[data-fx-country="gt"] .fx-only-ec:not(.fx-only-gt){display:none!important}
body:not([data-fx-country="mx"]) .fx-label-municipio,
body[data-fx-country="pe"] .fx-label-estado,
body[data-fx-country="pe"] .fx-label-ciudad,
body[data-fx-country="co"] .fx-label-estado,
body[data-fx-country="co"] .fx-label-provincia,
body[data-fx-country="usa"] .fx-label-departamento,
body[data-fx-country="usa"] .fx-label-provincia,
body[data-fx-country="mx"] .fx-label-departamento,
body[data-fx-country="mx"] .fx-label-provincia,
body[data-fx-country="mx"] .fx-label-ciudad,
body[data-fx-country="ec"] .fx-label-departamento,
body[data-fx-country="ec"] .fx-label-estado,
body[data-fx-country="gt"] .fx-label-estado,
body[data-fx-country="gt"] .fx-label-provincia,
body[data-fx-country="gt"] .fx-label-ciudad{display:none}
body[data-fx-country="usa"] .fx-ref-row{display:none}

.ck-rest{display:grid;gap:clamp(20px,3vw,32px)}

/* Bloques de campos dentro de cada tarjeta */
.ck-fields{display:grid;gap:1rem}
.ck-fields > .ck__hint{margin:0}

/* Ubigeo Fuxion */
.ck-ubigeo-grid{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
@media(min-width:640px){.ck-ubigeo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ck-addr-more{display:contents}
/* Buscador sobre el select (ubigeo-search.js) */
.fx-combo{position:relative;scroll-margin-top:80px}
.fx-combo::after{content:'';position:absolute;right:.95rem;top:50%;width:.42rem;height:.42rem;pointer-events:none;
  border:solid var(--ink-soft);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg)}
.field .fx-combo__input{padding-right:2.2rem;text-overflow:ellipsis}
.field .fx-combo__input:disabled{background:#f4f7f9;cursor:not-allowed}
.fx-combo__list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:min(16rem,45vh);overflow-y:auto;
  margin:0;padding:.3rem;list-style:none;background:#fff;border:1.5px solid var(--plum-line);border-radius:10px;box-shadow:var(--shadow)}
.fx-combo__list li{padding:.55rem .7rem;border-radius:7px;font-size:.9rem;cursor:pointer}
.fx-combo__list li.is-active{background:var(--plum-soft)}
.fx-combo__list li.fx-combo__empty{color:var(--ink-soft);cursor:default}
@media(hover:hover){.fx-combo__list li:not(.fx-combo__empty):hover{background:var(--plum-soft)}}
.ck-zip-help{justify-self:start;font-size:.8rem;color:var(--plum);text-decoration:underline}
.ck-status{display:block;font-size:.76rem;color:var(--ink-soft)}
.ck-status:not(:empty){min-height:1.1em;margin-top:.2rem}
.ck-status--ok{color:#1E7A3C}
.ck-status--err{color:#DC3545}
.ck-status--info{color:var(--ink-soft)}
.ck-email-fix{font:inherit;font-weight:600;color:var(--plum);background:none;border:none;padding:0;
  cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.field input.is-loading{opacity:.65}
.fx-skeleton{color:transparent;border-radius:6px;background:linear-gradient(90deg,#e8e4ec 25%,#f4f2f6 50%,#e8e4ec 75%);
  background-size:200% 100%;animation:gkShimmer 1.2s ease-in-out infinite}
.fx-skeleton--amount{display:inline-block;min-width:5.5ch;min-height:1em;vertical-align:middle}
.fx-skeleton--status{display:inline-block;min-width:12ch;min-height:.9em;vertical-align:middle}
.ck-continue-card .btn{align-self:start;max-width:100%}
.ck-handoff-card{display:grid;gap:.75rem;margin-top:.85rem;padding:1rem 1.1rem;border-radius:12px;
  border:1px solid rgba(107,45,92,.18);background:linear-gradient(180deg,#faf5f9 0%,#fff 60%)}
.ck-handoff-card__title{margin:0;font-family:var(--display);font-size:1.02rem;font-weight:600;color:var(--ink)}
.ck-handoff-card__lead{margin:0;font-size:.88rem;line-height:1.5;color:var(--ink-soft)}
.ck-handoff-card__dest{margin:-.2rem 0 0;padding:0}
.ck-handoff-card__dest-name{font-size:.95rem;font-weight:600;line-height:1.45;color:var(--ink)}
.ck-handoff-card__cta{display:inline-flex;align-items:center;justify-content:center;margin-top:.15rem;
  padding:.65rem 1.25rem;border-radius:999px;background:var(--plum);color:#fff;font-weight:600;font-size:.9rem;
  text-decoration:none;width:fit-content}
.ck-handoff-card__cta:hover{color:#fff;filter:brightness(1.05)}
.ck-otp-card{display:grid;gap:1rem;margin-top:.85rem;padding:1rem 1.1rem;border-radius:12px;
  border:1px solid rgba(0,147,221,.22);background:linear-gradient(180deg,#f3faff 0%,#fff 55%)}
.ck-otp-card__title{margin:0;font-family:var(--display);font-size:1.02rem;font-weight:600;color:var(--ink)}
.ck-otp-card__lead{margin:0;font-size:.88rem;line-height:1.45;color:var(--ink-soft)}
.ck-otp-card__lead strong{font-weight:600;color:var(--ink);word-break:break-all}
.ck-otp-row{position:relative;display:flex;justify-content:center;padding:.35rem 0;cursor:text}
.ck-otp-boxes{display:flex;gap:.45rem;pointer-events:none}
.ck-otp-box{width:2.4rem;height:3rem;display:flex;align-items:center;justify-content:center;
  border-radius:10px;border:1.5px solid var(--plum-line);background:#fff;font-family:var(--display);
  font-size:1.35rem;font-weight:600;color:var(--ink);transition:border-color .16s,box-shadow .16s}
.ck-otp-box--filled{border-color:var(--plum)}
.ck-otp-row:focus-within .ck-otp-box{box-shadow:0 0 0 3px rgba(0,147,221,.12)}
.ck-otp-row:focus-within .ck-otp-box--active{border-color:var(--plum)}
.ck-otp-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:text;font-size:16px}
.ck-otp-card__foot{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;min-height:1.1em}
.ck-otp-card__foot .ck-status{flex:1 1 100%;margin:0}
.ck-otp-resend{font:inherit;font-size:.84rem;color:var(--plum);background:none;border:none;padding:0;
  cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ck-otp-resend:hover{color:var(--ink)}
.ck-otp-resend:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}

/* Layout: formulario + resumen */
.ck{display:grid;gap:clamp(24px,4vw,40px);padding:clamp(28px,5vw,48px) 0 clamp(48px,7vw,72px)}
@media(min-width:860px){.ck{grid-template-columns:1.15fr .85fr;align-items:start}}

/* Formulario */
.ck__form{display:grid;gap:clamp(20px,3vw,32px)}
.ck__sec{background:#fff;border:1px solid var(--plum-line);border-radius:var(--r);padding:clamp(16px,2.5vw,24px)}
.ck__sec h2{font-size:clamp(1.05rem,1.8vw,1.25rem);margin-bottom:1rem}
.ck__sec h3{font-size:.95rem;margin-bottom:.8rem}

/* Campos */
.frow{display:grid;gap:.7rem}
.frow--2{grid-template-columns:1fr}
@media(min-width:560px){.frow--2{grid-template-columns:1fr 1fr;align-items:start}}
.field{display:grid;gap:.25rem}
.field label{font-family:var(--display);font-size:.8rem;font-weight:600;color:var(--ink)}
.field input,.field select,.field textarea{font:inherit;font-size:.92rem;padding:.7rem .85rem;border-radius:10px;
  border:1.5px solid var(--plum-line);background:#fff;color:var(--ink);width:100%;transition:border-color .16s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--plum);box-shadow:0 0 0 3px rgba(0,147,221,.12)}
.field textarea{min-height:80px;resize:vertical}
.field--error input,.field--error select{border-color:#DC3545}
/* Teléfono: código del país fijo delante del número (la tienda vende a un solo país) */
.ck-phone{display:flex}
.ck-phone__cc{display:flex;align-items:center;gap:.4rem;padding:0 .7rem;border:1.5px solid var(--plum-line);border-right:0;
  border-radius:10px 0 0 10px;background:#F4F6F8;color:var(--ink-soft);font-size:.92rem;transition:border-color .16s}
.ck-phone__cc::before{content:"";width:20px;height:15px;border-radius:2px;background:center/cover no-repeat;
  box-shadow:0 0 0 1px rgba(0,0,0,.1)}
body[data-fx-country="pe"] .ck-phone__cc::before{background-image:url("../img/flags/pe.webp")}
body[data-fx-country="co"] .ck-phone__cc::before{background-image:url("../img/flags/co.webp")}
body[data-fx-country="usa"] .ck-phone__cc::before{background-image:url("../img/flags/us.webp")}
body[data-fx-country="mx"] .ck-phone__cc::before{background-image:url("../img/flags/mx.webp")}
body[data-fx-country="ec"] .ck-phone__cc::before{background-image:url("../img/flags/ec.webp")}
body[data-fx-country="gt"] .ck-phone__cc::before{background-image:url("../img/flags/gt.webp")}
.ck-phone__cc:empty{display:none}
.ck-phone__cc:not(:empty)+input{border-radius:0 10px 10px 0}
.ck-phone:focus-within .ck-phone__cc{border-color:var(--plum)}

/* Métodos de pago */
.payopts{display:grid;gap:.5rem}
.payopt{display:flex;align-items:center;gap:.7rem;border:1.5px solid var(--plum-line);border-radius:12px;padding:.8rem .9rem;
  background:#fff;cursor:pointer;transition:all .16s;width:100%;text-align:left}
.payopt:hover{border-color:var(--plum)}
.payopt[aria-checked="true"]{border-color:var(--plum);background:#EDF7FD;border-width:2px}
.payopt__dot{width:17px;height:17px;border-radius:50%;border:2px solid #BFA6B0;flex:0 0 auto;position:relative}
.payopt[aria-checked="true"] .payopt__dot{border-color:var(--plum)}
.payopt[aria-checked="true"] .payopt__dot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--plum)}
.payopt__info{flex:1;display:flex;flex-direction:column;gap:.1rem}
.payopt__name{font-family:var(--display);font-weight:600;font-size:.92rem}
.payopt__desc{font-size:.78rem;color:var(--ink-soft)}
.payopt__icon{flex:0 0 auto;display:flex;gap:.3rem}
.payopt__icon img{height:24px;width:auto}

/* Envío (maquetación / radios) */
.ck-ship-opt{cursor:pointer}
.ck-ship-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0}
.ck-ship-opt:has(input:checked){border-color:var(--plum);background:#EDF7FD;border-width:2px}
.ck-ship-opt:has(input:checked) .payopt__dot{border-color:var(--plum)}
.ck-ship-opt:has(input:checked) .payopt__dot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--plum)}
.payopt__price{font-family:var(--display);font-weight:700;font-size:.92rem;white-space:nowrap;margin-left:auto}

/* Resumen lateral */
.ck__side{position:sticky;top:80px}
.ck__summary{background:#fff;border:1px solid var(--plum-line);border-radius:var(--r);padding:clamp(16px,2.5vw,24px)}
.ck__totals-note{margin:.5rem 0 0;font-size:.8rem;color:var(--ink-soft);line-height:1.35}
.ck__summary h2{font-size:1.1rem;margin-bottom:1rem}

/* Items del resumen */
.ckitem{display:flex;gap:.7rem;padding-bottom:.8rem;margin-bottom:.8rem;border-bottom:1px solid var(--plum-line)}
.ckitem:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.ckitem__img{width:56px;height:56px;object-fit:contain;background:#fff;border:1px solid var(--plum-line);
  border-radius:8px;flex:0 0 auto;padding:4px}
.ckitem__info{flex:1;display:flex;flex-direction:column;gap:.1rem}
.ckitem__name{font-family:var(--display);font-weight:600;font-size:.88rem;line-height:1.2}
.ckitem__meta{font-size:.76rem;color:var(--ink-soft)}
.ckitem__price{font-family:var(--display);font-weight:700;font-size:.92rem;margin-left:auto;white-space:nowrap}

/* Regalo Rewards (checkout-rewards.js) */
.ckgift{margin-top:.9rem;padding-top:.9rem;border-top:1px dashed var(--plum-line)}
.ckgift__t{margin:0 0 .6rem;font-family:var(--display);font-size:.76rem;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--limeD)}
.ckgift .ckitem{width:100%;text-align:left;border-bottom:0;padding-bottom:0;margin-bottom:.6rem}
.ckgift__icon{display:grid;place-items:center;color:var(--limeD)}
.ckgift__icon svg{width:26px;height:26px}
.ckgift__free{color:#1E7A3C}
.ckgift__sel{margin-top:.15rem;padding:.3rem .4rem;max-width:100%;font-size:.84rem;font-weight:600;color:var(--ink);
  border:1.5px solid var(--plum-line);border-radius:8px;background:#fff}
.ckgift__off,.ckgift__t--off{opacity:.45}
.ckgift__acc{margin:-.3rem 0 .6rem;font-size:.78rem;color:var(--ink-soft)}
.ckgift__off:hover{opacity:.6}
.ck-rw-bar{margin:.85rem 0 0;padding:.6rem .85rem;border-radius:10px;background:var(--plum-soft);font-size:.84rem;
  line-height:1.4;color:var(--ink)}
.ck-rw-bar button{font-weight:600;color:var(--plum);text-decoration:underline}
.ck-rw-cf{display:grid;gap:.55rem;margin-bottom:1rem;padding:.85rem;border-radius:10px;background:var(--plum-soft);font-size:.84rem;line-height:1.45}
.ck-rw-cf p{margin:0}
.ck-rw-cf .btn--wide{padding:.7rem 1rem;font-size:.9rem}
.ck-rw-modal{max-width:min(380px,calc(100vw - 32px));padding:1.4rem;border:0;border-radius:var(--r);box-shadow:var(--shadow)}
.ck-rw-modal::backdrop{background:rgba(18,35,46,.45)}
.ck-rw-modal h3{margin:0 0 .5rem;font-size:1.05rem}
.ck-rw-modal p{margin:0 0 1.1rem;font-size:.9rem;line-height:1.5;color:var(--ink-soft)}

/* Totales */
.cktot{display:flex;justify-content:space-between;font-size:.88rem;padding:.3rem 0}
.cktot--shipping{color:var(--ink-soft)}
.ck__hint{font-size:.9rem;color:var(--ink-soft);margin:0}
.cktot--free{color:#1E7A3C;font-weight:600}
.cktot--big{font-family:var(--display);font-weight:700;font-size:1.1rem;border-top:1px solid var(--plum-line);
  margin-top:.5rem;padding-top:.7rem}

/* Trust */
.cktrust{display:grid;gap:.5rem;margin-top:1rem}
.cktrust__item{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:var(--ink-soft)}
.cktrust__item svg{flex:0 0 auto;width:18px;height:18px;color:var(--plum)}

/* CTA */
.ck__cta{margin-top:1.2rem}
.ck__legal{font-size:.74rem;color:var(--ink-soft);margin-top:.8rem;line-height:1.5;max-width:50ch}

/* ========= GRACIAS ========= */
.gk{max-width:640px;margin:0 auto;padding:clamp(40px,7vw,72px) clamp(18px,5vw,32px) clamp(48px,7vw,80px);text-align:center}
.gk__icon{width:72px;height:72px;border-radius:50%;background:var(--lime);color:#fff;display:grid;place-items:center;
  margin:0 auto 1.4rem;box-shadow:0 12px 28px -8px rgba(140,198,63,.5)}
.gk__icon svg{width:36px;height:36px}
.gk h1{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:.5rem}
.gk__sub{color:var(--ink-soft);font-size:clamp(.95rem,1.4vw,1.08rem);max-width:44ch;margin:0 auto 1.6rem}

.gk__order{background:#fff;border:1px solid var(--plum-line);border-radius:var(--r);padding:clamp(16px,2.5vw,24px);
  text-align:left;margin-bottom:1.6rem}
.gk__order h2{font-size:1rem;margin-bottom:.8rem}
.gk__order-num{display:inline-block;min-width:8ch;min-height:1.1em;vertical-align:baseline}
.gk__order-num--pending{color:var(--ink-soft);font-weight:500;font-size:.92rem;min-width:0;background:none;animation:none}
@keyframes gkShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* Footer steps */
