/*
 * Huanca: el checkout con el mismo aire que la tienda.
 * Fondo blanco, tinta #17231a, lima #95c233 y títulos en Fraunces (la fuente la carga el tema).
 * Va después de checkout-design.css y delivery-map.css; solo cambia la apariencia.
 */
#stpCheckoutModal {
    --hk-cream: #ffffff;
    --hk-paper: #ffffff;
    --hk-ink: #17231a;
    --hk-ink-soft: #4d5a4f;
    --hk-line: #e5e8e2;
    --hk-line-strong: #d2d7ce;
    --hk-lime: #95c233;
    --hk-lime-soft: #eef5dc;
    --stp-primary: var(--hk-ink) !important;
    --stp-accent: var(--hk-lime) !important;
    --stp-ui-surface: var(--hk-paper) !important;
    --stp-ui-text: var(--hk-ink) !important;
    --stp-ui-muted: #6b7266 !important;
    --stp-ui-border: var(--hk-line) !important;
    --stp-ui-location-bg: var(--hk-lime-soft) !important;
    --stp-ui-map-continue-bg: var(--hk-ink) !important;
    --stp-ui-map-pin: var(--hk-ink) !important;
    --stp-ui-map-cod-bg: var(--hk-lime-soft) !important;
    --stp-ui-map-cod-text: var(--hk-ink) !important;
    --stp-ui-radius: 14px !important;
}

/* Fondo blanco y tarjetas con borde fino */
#stpCheckoutModal .stp-modal-panel,
#stpCheckoutModal .stp-modal-scroll { background: var(--hk-cream) !important; color: var(--hk-ink); }
#stpCheckoutModal .stp-checkout-action-footer { background: rgba(255, 255, 255, .97); box-shadow: 0 -1px 0 var(--hk-line); }
#stpCheckoutModal .stp-customer-card,
#stpCheckoutModal .stp-district-card,
#stpCheckoutModal .stp-location-selected,
#stpCheckoutModal .stp-ship-row,
#stpCheckoutModal .stp-payment-option,
#stpCheckoutModal .stp-order-compact,
#stpCheckoutModal .stp-extra-fields {
    background: var(--hk-paper);
    border-color: var(--hk-line);
    box-shadow: none;
}
#stpCheckoutModal .stp-ticket { background: #f3f5f1; border-radius: 12px; }
#stpCheckoutModal .stp-ticket-total strong,
#stpCheckoutModal .stp-order-compact-total { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.01em; }

/* Títulos de cada paso */
#stpCheckoutModal .stp-numbered-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.15;
    color: var(--hk-ink);
}
#stpCheckoutModal .stp-numbered-title > span {
    background: var(--hk-lime);
    color: var(--hk-ink);
    border-radius: 7px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 700;
}
#stpCheckoutModal .stp-mini-title strong { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 17px; }

/* Barra de progreso fina: tinta lo hecho, arena lo que falta */
#stpCheckoutModal .stp-progress-segment { background: var(--hk-line) !important; height: 4px; }
#stpCheckoutModal .stp-progress-segment.is-filled { background: var(--hk-ink) !important; }
#stpCheckoutModal .stp-progress-segment[hidden] { display: none !important; }

/* Campos */
#stpCheckoutModal .stp-field-shell,
#stpCheckoutModal .stp-field input,
#stpCheckoutModal .stp-field textarea,
#stpCheckoutModal .stp-field select,
#stpCheckoutModal .stp-district-search input {
    background: #fff;
    border-color: var(--hk-line-strong);
    color: var(--hk-ink);
}
#stpCheckoutModal .stp-field-shell:focus-within,
#stpCheckoutModal .stp-field input:focus,
#stpCheckoutModal .stp-field textarea:focus,
#stpCheckoutModal .stp-district-search input:focus {
    border-color: var(--hk-ink);
    box-shadow: 0 0 0 3px rgba(149, 194, 51, .35);
    outline: none;
}

/* Distritos rápidos */
#stpCheckoutModal .stp-quick-district {
    background: var(--hk-paper);
    border: 1px solid var(--hk-line-strong);
    color: var(--hk-ink);
}
#stpCheckoutModal .stp-quick-district:hover { border-color: var(--hk-ink); }

/* Opciones de entrega */
#stpCheckoutModal .stp-ship-row { border-width: 1px; transition: border-color .15s, background-color .15s; }
#stpCheckoutModal .stp-ship-row[aria-pressed="true"] { border: 1.5px solid var(--hk-ink); background: #fff; }
#stpCheckoutModal .stp-ship-row[aria-pressed="true"] .stp-ship-radio { border-color: var(--hk-ink); }
#stpCheckoutModal .stp-ship-row strong { color: var(--hk-ink); }
#stpCheckoutModal .stp-ship-tag {
    background: var(--hk-lime-soft);
    color: #3d5410;
    border-radius: 6px;
    letter-spacing: .06em;
}
#stpCheckoutModal .stp-ship-price { color: var(--hk-ink); }
#stpCheckoutModal .stp-ship-price.is-free { color: #4f7a10; }

/* Botones principales: tinta con flecha lima */
#stpCheckoutModal .stp-next-button,
#stpCheckoutModal .stp-place-order,
#stpCheckoutModal .stp-cod-step2-order {
    background: var(--hk-ink);
    color: var(--hk-cream);
    border-radius: 999px;
    box-shadow: 0 8px 22px -14px rgba(23, 35, 26, .8);
}
#stpCheckoutModal .stp-next-button:disabled,
#stpCheckoutModal .stp-place-order:disabled,
#stpCheckoutModal .stp-cod-step2-order:disabled {
    background: #eceee9 !important;
    color: #858d84 !important;
    box-shadow: none;
}

/* Volver en el último paso: un enlace discreto, no otra tarjeta */
#stpCheckoutModal .stp-final-back:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 0;
    margin: 14px 0 0;
    padding: 6px 2px;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--hk-ink-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Barra "te faltan S/X para envío gratis" */
#stpCheckoutModal .stp-freeship {
    margin: 14px 0 6px;
    padding: 14px 16px;
    background: var(--hk-paper);
    border: 1px dashed var(--hk-line-strong);
    border-radius: 14px;
    color: var(--hk-ink);
}
#stpCheckoutModal .stp-freeship[hidden] { display: none; }
#stpCheckoutModal .stp-freeship-text { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
#stpCheckoutModal .stp-freeship-track { height: 6px; background: #f3f5f1; border-radius: 999px; overflow: hidden; }
#stpCheckoutModal .stp-freeship-track i { display: block; height: 100%; width: 0; background: var(--hk-lime); border-radius: inherit; transition: width .5s ease; }
#stpCheckoutModal .stp-freeship-more {
    margin-top: 10px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--hk-ink);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
#stpCheckoutModal .stp-freeship-more[hidden] { display: none; }
#stpCheckoutModal .stp-freeship.is-done { border-style: solid; border-color: var(--hk-lime); background: var(--hk-lime-soft); }

/* Al pulsar "Agregar otra bolsa" se resalta el pedido de arriba */
#stpCheckoutModal .stp-order-preview.stp-needs-attention { animation: hk-flash .9s ease; border-radius: 14px; }
@keyframes hk-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(149, 194, 51, 0); } 35% { box-shadow: 0 0 0 4px rgba(149, 194, 51, .55); } }
@media (prefers-reduced-motion: reduce) {
    #stpCheckoutModal .stp-freeship-track i { transition: none; }
    #stpCheckoutModal .stp-order-preview.stp-needs-attention { animation: none; }
}

/* Ajustes que necesitan ganarle a reglas con !important del diseño base */
html body #stpCheckoutModal .stp-modal-panel :is(.stp-next-button, .stp-place-order, .stp-cod-step2-order):disabled,
html body #stpCheckoutModal :is(.stp-agency-dialog, .stp-delivery-map-footer, .stp-smart-footer) :is(.stp-agency-continue, .stp-delivery-map-continue, .stp-smart-continue):disabled {
    background: #eceee9 !important;
    color: #858d84 !important;
}
html body #stpCheckoutModal .stp-modal-panel :is(.stp-next-button, .stp-place-order, .stp-cod-step2-order):disabled::after,
html body #stpCheckoutModal :is(.stp-agency-dialog, .stp-delivery-map-footer, .stp-smart-footer) :is(.stp-agency-continue, .stp-delivery-map-continue, .stp-smart-continue):disabled::after {
    background-color: #d6dbd2 !important;
}
@media (hover: hover) {
    html body #stpCheckoutModal .stp-modal-panel :is(.stp-next-button, .stp-place-order, .stp-cod-step2-order):not(:disabled):hover,
    html body #stpCheckoutModal :is(.stp-agency-dialog, .stp-delivery-map-footer, .stp-smart-footer) :is(.stp-agency-continue, .stp-delivery-map-continue, .stp-smart-continue):not(:disabled):hover {
        background: #2b3a2e !important;
    }
}
html body #stpCheckoutModal .stp-final-back:not([hidden]) {
    width: auto !important;
    min-height: 0 !important;
    padding: 6px 2px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* Al final ya eligió entrega y pago: no repetir "paga al recibir" */
#stpCheckoutModal.stp-delivery-first .stp-trust-badges { display: none !important; }

/* "Usar mi ubicación": botón grande arriba, estilo app de delivery */
#stpCheckoutModal .stp-location-picker { display: flex; flex-direction: column; }
html body #stpCheckoutModal .stp-use-location {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    margin: 0 0 4px;
    padding: 12px 16px;
    background: var(--hk-ink) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 16px !important;
    text-align: left;
    box-shadow: 0 10px 24px -16px rgba(23, 35, 26, .9);
    cursor: pointer;
}
html body #stpCheckoutModal .stp-use-location:disabled { opacity: .8; cursor: progress; }
#stpCheckoutModal .stp-use-location-icon {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    background: var(--hk-lime); color: var(--hk-ink); border-radius: 12px;
}
#stpCheckoutModal .stp-use-location-icon svg { width: 22px; height: 22px; }
#stpCheckoutModal .stp-use-location.is-loading .stp-use-location-icon svg { animation: hk-spin 1.1s linear infinite; }
@keyframes hk-spin { to { transform: rotate(360deg); } }
#stpCheckoutModal .stp-use-location-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
#stpCheckoutModal .stp-use-location-copy strong { font-size: 16px; font-weight: 700; color: #fff; }
#stpCheckoutModal .stp-use-location-copy small { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
#stpCheckoutModal .stp-use-location-arrow { font-size: 20px; color: var(--hk-lime); }
#stpCheckoutModal .stp-location-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; color: #7a8178; font-size: 12.5px; }
#stpCheckoutModal .stp-location-or::before,
#stpCheckoutModal .stp-location-or::after { content: ""; flex: 1; height: 1px; background: var(--hk-line); }

/* Pestañas A domicilio / Recoger */
html body #stpCheckoutModal .stp-delivery-tabs:not([hidden]) {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 0 14px;
}
html body #stpCheckoutModal .stp-delivery-tab {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    background: #fff !important;
    color: var(--hk-ink) !important;
    border: 1.5px solid var(--hk-line-strong) !important;
    border-radius: 14px !important;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer;
}
html body #stpCheckoutModal .stp-delivery-tab[aria-pressed="true"] {
    border-color: var(--hk-ink) !important;
    box-shadow: inset 0 0 0 1px var(--hk-ink) !important;
    background: #f7fbef !important;
}
#stpCheckoutModal .stp-delivery-tab svg { flex: 0 0 26px; width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#stpCheckoutModal .stp-delivery-tab > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 700; line-height: 1.15; }
#stpCheckoutModal .stp-delivery-tab-note { font-size: 12px; font-weight: 500; color: #6b7266; }
#stpCheckoutModal .stp-delivery-tab-note:empty { display: none; }
#stpCheckoutModal .stp-delivery-tab-logos { display: none !important; }
#stpCheckoutModal .stp-inline-map.is-loading .stp-inline-map-canvas { background: #f3f5f1; }

/* Le gana a las reglas viejas del enlace pequeño "Usar mi ubicación" */
html body #stpCheckoutModal .stp-location-picker .stp-use-location {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    width: 100% !important; min-height: 68px !important; gap: 14px !important;
    margin: 0 0 4px !important; padding: 12px 16px !important;
    background: var(--hk-ink) !important; border: 0 !important; border-radius: 16px !important;
    box-shadow: 0 10px 24px -16px rgba(23, 35, 26, .9) !important;
}
html body #stpCheckoutModal .stp-location-picker .stp-use-location:hover { background: #2b3a2e !important; }
html body #stpCheckoutModal .stp-location-picker .stp-use-location-icon {
    width: 40px !important; height: 40px !important; flex: 0 0 40px;
    background: var(--hk-lime) !important; color: var(--hk-ink) !important; border-radius: 12px !important;
    display: grid !important; place-items: center;
}
html body #stpCheckoutModal .stp-location-picker .stp-use-location-icon svg { width: 22px; height: 22px; }
html body #stpCheckoutModal .stp-location-picker .stp-use-location strong { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; text-decoration: none !important; }
html body #stpCheckoutModal .stp-location-picker .stp-use-location small { color: rgba(255, 255, 255, .72) !important; font-size: 12.5px !important; }

/* Pestañas A domicilio / Recoger: le ganan al diseño viejo (azul y textos fijos) */
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-shipping-stage .stp-delivery-tabs:before { content: "¿Cómo lo quieres recibir?" !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; font-weight: 700 !important; color: var(--hk-ink) !important; grid-column: 1 / -1; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab {
    display: flex !important; align-items: center !important; gap: 10px !important;
    min-height: 64px !important; padding: 10px 12px !important;
    background: #fff !important; color: var(--hk-ink) !important;
    border: 1.5px solid var(--hk-line-strong) !important; border-radius: 14px !important; box-shadow: none !important;
}
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab[aria-pressed="true"] {
    background: #f7fbef !important; border-color: var(--hk-ink) !important; box-shadow: inset 0 0 0 1px var(--hk-ink) !important; color: var(--hk-ink) !important;
}
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab svg {
    width: 26px !important; height: 26px !important; padding: 0 !important; background: none !important; color: var(--hk-ink) !important; stroke: currentColor !important; border-radius: 0 !important;
}
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab[aria-pressed="true"] svg { color: #4f7a10 !important; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab > span {
    display: flex !important; flex-direction: column !important; gap: 2px !important; font-size: 15px !important; font-weight: 700 !important; color: var(--hk-ink) !important;
}
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab > span:after,
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab > span:before { content: none !important; display: none !important; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab-note { display: block; font-size: 12px !important; font-weight: 500 !important; color: #6b7266 !important; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab-note:empty { display: none !important; }

/* Mapa del domicilio: botón "Usar mi ubicación" grande y visible sobre el mapa */
html body #stpCheckoutModal button.stp-inline-map-locate {
    left: 50% !important; right: auto !important; bottom: 12px !important; transform: translateX(-50%);
    min-height: 44px !important; padding: 0 18px !important; gap: 8px !important;
    background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
    font-size: 14px !important; font-weight: 700 !important; white-space: nowrap;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .55) !important;
}
html body #stpCheckoutModal button.stp-inline-map-locate svg { stroke: var(--hk-lime) !important; }
#stpCheckoutModal .stp-inline-map.is-gps button.stp-inline-map-locate { display: none !important; }
#stpCheckoutModal .stp-inline-map.is-gps .stp-inline-map-status { color: #3d5410; font-weight: 600; }

/* Agencias cercanas */
#stpCheckoutModal .stp-agency-nearby { display: grid; gap: 8px; margin: 4px 0 6px; }
#stpCheckoutModal .stp-agency-nearby[hidden] { display: none; }
#stpCheckoutModal .stp-agency-nearby .stp-agency-inline-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
#stpCheckoutModal .stp-agency-nearby .stp-agency-inline-head strong { font-size: 15px; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-nearby .stp-agency-inline-head small { font-size: 12px; color: #6b7266; }
#stpCheckoutModal .stp-agency-nearby-list { display: grid; gap: 8px; }
html body #stpCheckoutModal button.stp-agency-nearby-row.is-selected { border-color: var(--hk-ink) !important; box-shadow: inset 0 0 0 1px var(--hk-ink) !important; background: #f7fbef !important; }
#stpCheckoutModal .stp-agency-nearby-row em { font-style: normal; font-size: 11px; font-weight: 700; color: #3d5410; background: var(--hk-lime-soft); padding: 3px 7px; border-radius: 6px; }
#stpCheckoutModal .stp-agency-nearby-manual { justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--hk-ink); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#stpCheckoutModal .stp-agency-nearby-manual[hidden] { display: none; }

/* Con el mapa a la vista, el botón para abrir otro mapa sobra */
html body #stpCheckoutModal .stp-address-fields .stp-open-delivery-map { display: none !important; }

/* Distritos vecinos para corregir la ubicación */
#stpCheckoutModal .stp-geo-alternatives { margin-top: 10px; text-align: center; }
#stpCheckoutModal .stp-geo-alternatives[hidden] { display: none; }
#stpCheckoutModal .stp-geo-alternatives small { display: block; margin-bottom: 6px; font-size: 12.5px; color: #4d5a4f; }
#stpCheckoutModal .stp-geo-alternatives-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
html body #stpCheckoutModal .stp-geo-alt { min-height: 36px; padding: 0 14px; background: #fff !important; border: 1px solid var(--hk-line-strong) !important; border-radius: 999px !important; color: var(--hk-ink) !important; font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* Fila "Recoger en una agencia cercana" con logos */
#stpCheckoutModal .stp-ship-row.is-agency-group { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
#stpCheckoutModal .stp-ship-logos { display: flex; gap: 4px; }
#stpCheckoutModal .stp-ship-logos img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; background: #fff; border: 1px solid var(--hk-line); }
#stpCheckoutModal .stp-ship-row.is-agency-group.is-selected { border: 1.5px solid var(--hk-ink); background: #fff; }

/* Buscador de agencias */
#stpCheckoutModal .stp-agency-finder { display: grid; gap: 10px; margin: 10px 0 4px; padding: 14px; border: 1px solid var(--hk-line); border-radius: 14px; background: #fff; }
#stpCheckoutModal .stp-agency-finder-head strong { display: block; font-size: 15px; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-finder-head small { font-size: 12px; color: #6b7266; }
#stpCheckoutModal .stp-agency-finder-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
html body #stpCheckoutModal .stp-agency-finder-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%;
    padding: 12px; text-align: left; background: #fff !important; border: 1px solid var(--hk-line-strong) !important; border-radius: 12px !important; cursor: pointer; color: var(--hk-ink) !important;
}
html body #stpCheckoutModal .stp-agency-finder-row.is-selected { border-color: var(--hk-ink) !important; box-shadow: inset 0 0 0 1px var(--hk-ink); background: #f7fbef !important; }
#stpCheckoutModal .stp-agency-finder-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#stpCheckoutModal .stp-agency-finder-copy strong { font-size: 14.5px; }
#stpCheckoutModal .stp-agency-finder-copy small { font-size: 12.5px; color: #59625a; }
#stpCheckoutModal .stp-agency-finder-copy em { font-style: normal; font-size: 12px; color: #6b7266; }
#stpCheckoutModal .stp-agency-finder-near { align-self: flex-start; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 700; color: #3d5410; background: var(--hk-lime-soft); padding: 2px 7px; border-radius: 6px; }
#stpCheckoutModal .stp-agency-finder-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#stpCheckoutModal .stp-agency-finder-side img { width: 38px; height: 38px; object-fit: contain; border-radius: 9px; border: 1px solid var(--hk-line); background: #fff; }
#stpCheckoutModal .stp-agency-finder-side b { font-size: 12px; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-finder-search { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--hk-line-strong); }
#stpCheckoutModal .stp-agency-finder-search label { font-size: 13.5px; font-weight: 700; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-finder-search-row { display: flex; gap: 6px; }
#stpCheckoutModal .stp-agency-finder-search-row input,
#stpCheckoutModal .stp-agency-finder-search-row select { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--hk-line-strong); border-radius: 10px; font-size: 15px; background: #fff; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-finder-search-row select { flex: 0 0 auto; }
html body #stpCheckoutModal .stp-agency-finder-go,
html body #stpCheckoutModal .stp-agency-finder-use { min-height: 44px; padding: 0 16px; background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; font-weight: 700; cursor: pointer; }
#stpCheckoutModal .stp-agency-finder-manual { display: grid; gap: 6px; }
#stpCheckoutModal .stp-agency-finder-manual[hidden] { display: none; }
#stpCheckoutModal .stp-agency-finder-manual small { font-size: 12.5px; color: #59625a; }
#stpCheckoutModal .stp-agency-finder-manual-toggle { justify-self: start; padding: 2px 0; background: none; border: 0; color: var(--hk-ink); font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }
#stpCheckoutModal .stp-agency-finder-manual-toggle[hidden] { display: none; }

/* Recojo en botica: mini mapa + Recoger aquí */
#stpCheckoutModal .stp-pickup-card { display: grid; gap: 10px; margin: 10px 0 4px; padding: 12px; border: 1px solid var(--hk-line); border-radius: 14px; background: #fff; }
#stpCheckoutModal .stp-pickup-map { width: 100%; height: 170px; border: 0; border-radius: 10px; background: #f3f5f1; }
#stpCheckoutModal .stp-pickup-info { display: flex; flex-direction: column; gap: 2px; color: var(--hk-ink); }
#stpCheckoutModal .stp-pickup-info strong { font-size: 15px; }
#stpCheckoutModal .stp-pickup-info span { font-size: 13.5px; }
#stpCheckoutModal .stp-pickup-info small { font-size: 12.5px; color: #6b7266; }
#stpCheckoutModal .stp-pickup-info a { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--hk-ink); text-decoration: underline; }
html body #stpCheckoutModal .stp-pickup-here { min-height: 50px; background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; font-size: 15.5px; font-weight: 700; cursor: pointer; }
#stpCheckoutModal .stp-agency-finder-manual .stp-agency-finder-search-row { flex-direction: column; }
#stpCheckoutModal .stp-agency-finder-manual select { width: 100%; }

/* Recoger en agencia (Tracking Perú): bloque propio debajo de la botica */
#stpCheckoutModal .stp-agency-section { display: grid; gap: 8px; margin-top: 12px; padding: 14px; border: 1px solid var(--hk-line-strong); border-radius: 16px; background: #fff; }
#stpCheckoutModal .stp-agency-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#stpCheckoutModal .stp-agency-section-head strong { display: block; font-size: 16px; color: var(--hk-ink); }
#stpCheckoutModal .stp-agency-section-head small { font-size: 12.5px; color: #6b7266; }
#stpCheckoutModal .stp-agency-section-hint { margin: 0; font-size: 12.5px; color: #4d5a4f; }
#stpCheckoutModal .stp-agency-section-list { display: grid; gap: 8px; }
#stpCheckoutModal .stp-agency-section-more { justify-self: center; padding: 6px 4px; background: none; border: 0; color: var(--hk-ink); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#stpCheckoutModal .stp-agency-section-more[hidden] { display: none; }

/* A domicilio: el bloque del mapa resalta y se entiende de un vistazo */
html body #stpCheckoutModal .stp-address-fields:not([hidden]) {
    display: grid; gap: 10px; margin-top: 10px; padding: 14px !important;
    border: 2px solid var(--hk-ink) !important; border-radius: 16px !important; background: #fff !important;
}
html body #stpCheckoutModal .stp-home-address-head strong {
    display: flex; align-items: center; gap: 8px;
    font-family: "Fraunces", Georgia, serif; font-size: 19px !important; font-weight: 600; color: var(--hk-ink);
}
html body #stpCheckoutModal .stp-home-address-head strong::before {
    content: ""; flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--hk-lime) no-repeat center / 16px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath fill='%2317231a' d='M12 31S2 19.6 2 12a10 10 0 0 1 20 0c0 7.6-10 19-10 19Z'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%2395c233'/%3E%3C/svg%3E");
}
html body #stpCheckoutModal .stp-inline-map-frame { border-radius: 12px !important; overflow: hidden; }
html body #stpCheckoutModal .stp-inline-map-canvas { height: 250px !important; min-height: 250px !important; }
html body #stpCheckoutModal .stp-inline-map-status {
    margin: 8px 0 0 !important; padding: 9px 12px; border-radius: 10px; background: var(--hk-lime-soft); color: #33470e !important; font-size: 13px !important; line-height: 1.4;
}
html body #stpCheckoutModal .stp-inline-map-status.is-error { background: #fdecea; color: #8a1f17 !important; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-address-fields .stp-open-delivery-map { display: none !important; }
/* Un solo marco alrededor del mapa */
html body #stpCheckoutModal .stp-ship-list .stp-extra-fields { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }

/* Agencias: plegadas solo cuando también existe la botica */
#stpCheckoutModal .stp-agency-section.is-collapsed { padding: 0; border: 0; background: none; }
#stpCheckoutModal .stp-agency-section.is-collapsed .stp-agency-section-hint,
#stpCheckoutModal .stp-agency-section.is-collapsed .stp-agency-section-list,
#stpCheckoutModal .stp-agency-section.is-collapsed .stp-agency-section-more { display: none !important; }
#stpCheckoutModal .stp-agency-section-toggle { display: grid !important; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; text-align: left; }
#stpCheckoutModal .stp-agency-section.is-open:has(.stp-agency-section-toggle) { padding: 0 0 4px; border: 0; background: none; }
#stpCheckoutModal .stp-agency-section-toggle.is-selected { border: 1.5px solid var(--hk-ink) !important; }

/* ===== 1.7: menos bordes, más limpio; selección muy notoria ===== */
#stpCheckoutModal .stp-ship-row.is-agency-group.is-auto-open { display: none !important; }
html body #stpCheckoutModal .stp-agency-section.is-open,
html body #stpCheckoutModal .stp-agency-finder { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; margin-top: 8px; }
html body #stpCheckoutModal .stp-address-fields:not([hidden]),
html body #stpCheckoutModal .stp-pickup-card { border: 0 !important; background: #f5f7f2 !important; border-radius: 18px !important; padding: 14px !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-inline-map-frame { box-shadow: 0 1px 2px rgba(23, 35, 26, .08), 0 8px 24px -16px rgba(23, 35, 26, .35); }
#stpCheckoutModal .stp-agency-section-head strong,
#stpCheckoutModal .stp-agency-finder-head strong { font-size: 15px; }
#stpCheckoutModal .stp-agency-section-hint { color: #6b7266; }

/* Filas de agencias y opciones: tarjeta blanca suave */
html body #stpCheckoutModal .stp-agency-finder-row,
html body #stpCheckoutModal .stp-ship-row {
    position: relative;
    border: 1px solid #e6e9e3 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(23, 35, 26, .04) !important;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
html body #stpCheckoutModal .stp-agency-finder-row { padding: 14px 14px 14px 16px !important; }
@media (hover: hover) {
    html body #stpCheckoutModal .stp-agency-finder-row:hover,
    html body #stpCheckoutModal .stp-ship-row:hover { border-color: #c5ccbf !important; }
}
/* Seleccionado: borde tinta grueso, fondo lima suave y check */
html body #stpCheckoutModal .stp-agency-finder-row.is-selected,
html body #stpCheckoutModal .stp-ship-row.is-selected {
    border: 2px solid var(--hk-ink) !important;
    background: #f3f9e6 !important;
    box-shadow: 0 6px 18px -12px rgba(23, 35, 26, .55) !important;
}
html body #stpCheckoutModal .stp-agency-finder-row.is-selected::after {
    content: "✓"; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; background: var(--hk-ink); color: var(--hk-lime); font-size: 14px; font-weight: 800;
    box-shadow: 0 0 0 3px #fff;
}
#stpCheckoutModal .stp-agency-finder-copy strong { font-size: 15px; font-weight: 700; color: var(--hk-ink); text-transform: uppercase; letter-spacing: .01em; }
#stpCheckoutModal .stp-agency-where { font-size: 12.5px; font-weight: 600; color: #3f4a41; }
#stpCheckoutModal .stp-agency-finder-copy small { font-size: 12.5px; color: #6b7266; line-height: 1.35; }
#stpCheckoutModal .stp-agency-finder-copy em { font-size: 12px; color: #858d84; line-height: 1.35; }
#stpCheckoutModal .stp-agency-finder-side img { width: 40px; height: 40px; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
/* Pestañas y tarjetas con el mismo lenguaje */
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab { border: 1px solid #e6e9e3 !important; border-radius: 16px !important; }
html body #stpCheckoutModal .stp-step[data-step="2"].is-classic-flow .stp-delivery-tab[aria-pressed="true"] { border: 2px solid var(--hk-ink) !important; box-shadow: none !important; background: #f3f9e6 !important; }
html body #stpCheckoutModal .stp-district-card,
html body #stpCheckoutModal .stp-location-selected { border-color: #e6e9e3 !important; box-shadow: none !important; }

/* Contenedor de extras vacío (todo su contenido oculto): no se muestra */
html body #stpCheckoutModal .stp-extra-fields:not(:has(> :not([hidden]):not(input):not(script):not(template))) { display: none !important; }

/* Envío gratis con productos para agregar sin salir */
html body #stpCheckoutModal .stp-freeship { border: 0 !important; background: #f5f7f2 !important; border-radius: 18px !important; padding: 14px !important; }
#stpCheckoutModal .stp-freeship.is-done { background: var(--hk-lime-soft) !important; }
#stpCheckoutModal .stp-freeship.is-bump { animation: hk-bump .6s ease; }
@keyframes hk-bump { 30% { transform: scale(1.015); box-shadow: 0 0 0 3px rgba(149, 194, 51, .5); } }
#stpCheckoutModal .stp-freeship-products { margin-top: 12px; }
#stpCheckoutModal .stp-freeship-products[hidden] { display: none; }
#stpCheckoutModal .stp-freeship-hint { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--hk-ink); }
#stpCheckoutModal .stp-freeship-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
#stpCheckoutModal .stp-freeship-cards::-webkit-scrollbar { display: none; }
#stpCheckoutModal .stp-freeship-card {
    flex: 0 0 150px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px;
    padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(23, 35, 26, .06), 0 6px 16px -12px rgba(23, 35, 26, .3);
}
#stpCheckoutModal .stp-freeship-cards:has(.stp-freeship-card:only-child) .stp-freeship-card { flex: 1 1 auto; flex-direction: row; align-items: center; }
#stpCheckoutModal .stp-freeship-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3f5f1; }
#stpCheckoutModal .stp-freeship-cards:has(.stp-freeship-card:only-child) .stp-freeship-card img { width: 56px; flex: 0 0 56px; }
#stpCheckoutModal .stp-freeship-card-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#stpCheckoutModal .stp-freeship-card-copy strong { font-size: 13px; line-height: 1.25; color: var(--hk-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#stpCheckoutModal .stp-freeship-card-copy span { font-size: 13px; font-weight: 700; color: var(--hk-ink); }
#stpCheckoutModal .stp-freeship-card-copy em { font-style: normal; font-size: 11.5px; color: #6b7266; }
html body #stpCheckoutModal .stp-freeship-add {
    min-height: 38px; padding: 0 12px; border: 0 !important; border-radius: 999px !important;
    background: var(--hk-ink) !important; color: #fff !important; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
html body #stpCheckoutModal .stp-freeship-add:disabled { opacity: .6; cursor: progress; }
/* Tarjetas compactas: foto pequeña al lado */
#stpCheckoutModal .stp-freeship-card { flex: 0 0 236px; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 10px; align-items: center; }
#stpCheckoutModal .stp-freeship-card img { width: 56px; height: 56px; aspect-ratio: auto; grid-row: 1; }
#stpCheckoutModal .stp-freeship-card .stp-freeship-add { grid-column: 1 / -1; }
#stpCheckoutModal .stp-freeship-cards:has(.stp-freeship-card:only-child) .stp-freeship-card { flex: 1 1 auto; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto; }
#stpCheckoutModal .stp-freeship-cards:has(.stp-freeship-card:only-child) .stp-freeship-card .stp-freeship-add { grid-column: auto; }

/* ¿Quién recibe? + resumen en el pago */
#stpCheckoutModal .stp-receiver-hint { margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: #59625a; }
#stpCheckoutModal .stp-step3-receiver {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    margin: 0 0 10px; padding: 12px 14px; background: #fff; border: 1px solid #e6e9e3; border-radius: 16px;
}
#stpCheckoutModal .stp-step3-receiver[hidden] { display: none; }
#stpCheckoutModal .stp-step3-receiver-icon {
    width: 40px; height: 40px; border-radius: 12px; background: var(--hk-lime-soft) no-repeat center / 20px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317231a' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='3.4'/%3E%3Cpath d='M5 20c.9-4 3.4-6 7-6s6.1 2 7 6'/%3E%3C/svg%3E");
}
#stpCheckoutModal .stp-step3-receiver small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #6b7266; }
#stpCheckoutModal .stp-step3-receiver strong { display: block; font-size: 15px; color: var(--hk-ink); }
#stpCheckoutModal .stp-step3-receiver em { font-style: normal; font-size: 12.5px; color: #59625a; }
html body #stpCheckoutModal .stp-step3-receiver-edit { padding: 8px 12px; background: #f3f5f1 !important; border: 0 !important; border-radius: 10px !important; color: var(--hk-ink) !important; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== Paso de pago (1.10) ===== */
/* Sin resumen repetido arriba ni en la columna derecha */
html body #stpCheckoutModal #stpMobilePaymentSummary,
html body #stpCheckoutModal #stpDesktopPaymentSummary,
html body #stpCheckoutModal .stp-desktop-payment-slot { display: none !important; }

/* Opciones: tarjetas limpias con logo */
html body #stpCheckoutModal .stp-payment-methods { display: grid !important; gap: 10px !important; }
html body #stpCheckoutModal .stp-payment-entry { margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-payment-option {
    position: relative; display: flex !important; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px !important;
    background: #fff !important; border: 1px solid #e6e9e3 !important; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(23, 35, 26, .04) !important; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
@media (hover: hover) { html body #stpCheckoutModal .stp-payment-option:hover { border-color: #c5ccbf !important; } }
html body #stpCheckoutModal .stp-payment-entry.is-selected .stp-payment-option {
    border: 2px solid var(--hk-ink) !important; background: #f3f9e6 !important; border-radius: 16px 16px 16px 16px !important;
}
html body #stpCheckoutModal .stp-payment-icon img,
html body #stpCheckoutModal .stp-payment-icon svg { width: 42px !important; height: 42px !important; border-radius: 11px; object-fit: contain; }
html body #stpCheckoutModal .stp-payment-copy strong { font-size: 15.5px !important; font-weight: 700 !important; color: var(--hk-ink) !important; }
html body #stpCheckoutModal .stp-payment-copy small,
html body #stpCheckoutModal .stp-payment-copy span { font-size: 12.5px !important; color: #6b7266 !important; }

/* Instrucciones: un solo panel debajo de las 3 opciones */
html body #stpCheckoutModal .stp-payment-stage > .stp-payment-details:not([hidden]) {
    display: block !important; position: relative; margin: 14px 0 4px !important; padding: 16px !important;
    background: #f5f7f2 !important; border: 0 !important; border-radius: 20px !important; box-shadow: none !important;
}
html body #stpCheckoutModal .stp-payment-stage > .stp-payment-details:not([hidden])::before {
    content: ""; position: absolute; top: -7px; left: 34px; width: 14px; height: 14px; background: #f5f7f2; transform: rotate(45deg); border-radius: 2px;
}
html body #stpCheckoutModal .stp-payment-details .stp-payment-popup-backdrop,
html body #stpCheckoutModal .stp-payment-details .stp-payment-popup-close { display: none !important; }
html body #stpCheckoutModal .stp-payment-details .stp-payment-dialog { position: static !important; transform: none !important; max-height: none !important; width: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
html body #stpCheckoutModal .stp-payment-details .stp-payment-dialog-body { max-height: none !important; overflow: visible !important; padding: 0 !important; }
html body #stpCheckoutModal .stp-payment-details-head { padding: 0 0 12px !important; border: 0 !important; background: none !important; }
html body #stpCheckoutModal .stp-payment-details-title { font-family: "Fraunces", Georgia, serif; font-size: 19px !important; font-weight: 600 !important; color: var(--hk-ink) !important; }

/* Monto a pagar destacado */
html body #stpCheckoutModal .stp-pay-total-mini { background: #fff !important; border: 0 !important; border-radius: 14px !important; padding: 14px !important; box-shadow: 0 1px 2px rgba(23, 35, 26, .05); }
html body #stpCheckoutModal .stp-current-pay-amount { font-family: "Fraunces", Georgia, serif; font-size: 24px !important; color: var(--hk-ink) !important; }

/* Pasos 1·2·3 dentro de las instrucciones */
html body #stpCheckoutModal .stp-pay-guide-label { font-size: 14.5px !important; font-weight: 700 !important; color: var(--hk-ink) !important; }
html body #stpCheckoutModal .stp-pay-guide-label > span:first-child,
html body #stpCheckoutModal .stp-pay-guide-label b { background: var(--hk-ink) !important; color: var(--hk-lime) !important; }
html body #stpCheckoutModal .stp-pay-origin-option { background: #fff !important; border: 1px solid #e6e9e3 !important; border-radius: 14px !important; }
html body #stpCheckoutModal .stp-pay-origin-option.is-selected { border: 2px solid var(--hk-ink) !important; background: #fff !important; }
html body #stpCheckoutModal .stp-pay-origin-panel { background: #fff !important; border: 0 !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(23, 35, 26, .05) !important; }
/* El número ya va en el botón de copiar: no repetirlo */
html body #stpCheckoutModal .stp-payment-data-surface:has(+ .stp-payment-copy-action) .stp-payment-number { display: none !important; }
html body #stpCheckoutModal .stp-copy-pay { border-radius: 14px !important; }
html body #stpCheckoutModal .stp-receipt-upload { border-radius: 14px !important; }

/* Izipay u otro pago con tarjeta: nota simple */
#stpCheckoutModal .stp-gateway-note { padding: 14px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(23, 35, 26, .05); }
#stpCheckoutModal .stp-gateway-note p { margin: 0 0 6px; font-size: 14px; color: var(--hk-ink); }
#stpCheckoutModal .stp-gateway-note small { font-size: 12.5px; color: #6b7266; }
html body #stpCheckoutModal .stp-payment-methods .stp-payment-entry .stp-payment-option { background: #fff !important; border: 1px solid #e3e7df !important; border-radius: 16px !important; box-shadow: 0 1px 2px rgba(23, 35, 26, .05) !important; }
html body #stpCheckoutModal .stp-payment-methods .stp-payment-entry.is-selected .stp-payment-option { border: 2px solid var(--hk-ink) !important; background: #f3f9e6 !important; }
html body #stpCheckoutModal .stp-payment-stage > .stp-payment-details:not([hidden])::before { display: none; }

/* ===== 1.11: descripción en cada opción + instrucciones ordenadas ===== */
html body #stpCheckoutModal .stp-payment-copy { display: flex !important; flex-direction: column; gap: 3px; min-width: 0; }
html body #stpCheckoutModal .stp-payment-copy .stp-payment-tagline { display: block !important; font-size: 12.5px !important; line-height: 1.35; color: #6b7266 !important; font-weight: 500; }

/* Panel: espacios iguales entre bloques */
html body #stpCheckoutModal .stp-guided-pay { display: grid !important; gap: 14px !important; }
html body #stpCheckoutModal .stp-guided-pay > * { margin: 0 !important; }
/* Monto en una sola línea */
html body #stpCheckoutModal .stp-pay-total-mini { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px !important; }
html body #stpCheckoutModal .stp-pay-total-mini > span { font-size: 13px; color: #4d5a4f; }
html body #stpCheckoutModal .stp-current-pay-note { display: none !important; }
/* Títulos de cada paso: pequeños y claros */
html body #stpCheckoutModal .stp-pay-guide-label { display: flex !important; align-items: center; gap: 8px; margin: 0 0 8px !important; }
html body #stpCheckoutModal .stp-pay-guide-label > b { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: var(--hk-ink) !important; color: var(--hk-lime) !important; }
html body #stpCheckoutModal .stp-pay-guide-label strong { font-size: 14px !important; }
html body #stpCheckoutModal .stp-pay-guide-label small { display: block; font-size: 12px; font-weight: 500; color: #6b7266; }
/* Desde dónde pagas: dos opciones compactas */
html body #stpCheckoutModal .stp-pay-origin-options { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin: 0 !important; }
html body #stpCheckoutModal .stp-pay-origin-option { display: flex !important; align-items: center; gap: 8px; min-height: 0 !important; padding: 10px !important; }
html body #stpCheckoutModal .stp-pay-origin-option strong { font-size: 13px !important; line-height: 1.2; }
html body #stpCheckoutModal .stp-pay-origin-option small { font-size: 11.5px !important; }
html body #stpCheckoutModal .stp-pay-origin-option .stp-wallet-brand img,
html body #stpCheckoutModal .stp-pay-origin-option .stp-payment-logo-cluster img { max-width: 30px; max-height: 30px; }

/* Realiza el pago: número grande a la izquierda y botón Copiar delgado a la derecha */
html body #stpCheckoutModal .stp-pay-origin-panel { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px !important; }
html body #stpCheckoutModal .stp-pay-origin-panel[hidden] { display: none !important; }
html body #stpCheckoutModal .stp-pay-origin-panel > .stp-pay-guide-label,
html body #stpCheckoutModal .stp-pay-origin-panel > details,
html body #stpCheckoutModal .stp-pay-origin-panel > p { grid-column: 1 / -1; }
html body #stpCheckoutModal .stp-payment-data-surface { display: flex !important; flex-direction: column; gap: 2px; padding: 0 !important; background: none !important; border: 0 !important; min-width: 0; }
html body #stpCheckoutModal .stp-payment-data-surface:has(+ .stp-payment-copy-action) .stp-payment-number,
html body #stpCheckoutModal .stp-payment-data-surface .stp-payment-number { display: block !important; font-size: 22px !important; font-weight: 800 !important; letter-spacing: .02em; color: var(--hk-ink) !important; }
html body #stpCheckoutModal .stp-pay-holder { font-size: 12px !important; color: #6b7266 !important; }
html body #stpCheckoutModal .stp-payment-copy-action { margin: 0 !important; }
html body #stpCheckoutModal .stp-copy-pay {
    display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; min-height: 36px !important; height: 36px; padding: 0 14px !important;
    background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
    font-size: 13px !important; font-weight: 700 !important; white-space: nowrap;
}
html body #stpCheckoutModal .stp-copy-pay .stp-copy-value { display: none !important; }
html body #stpCheckoutModal .stp-copy-pay .stp-copy-label,
html body #stpCheckoutModal .stp-copy-pay .stp-copy-brand { color: #fff !important; font-size: 13px !important; }
html body #stpCheckoutModal .stp-copy-pay svg { width: 15px !important; height: 15px !important; stroke: var(--hk-lime) !important; position: static !important; }
html body #stpCheckoutModal .stp-pay-help summary { font-size: 12.5px; color: #4d5a4f; cursor: pointer; }
html body #stpCheckoutModal .stp-pay-help { margin-top: 6px !important; padding-top: 8px !important; border-top: 1px solid #eef0ea !important; }

/* Comprobante: un botón delgado; el avance se ve dentro del mismo botón */
html body #stpCheckoutModal .stp-receipt-toolbar { display: none !important; }
html body #stpCheckoutModal .stp-receipt-upload { padding: 0 !important; border: 0 !important; background: none !important; }
html body #stpCheckoutModal .stp-receipt-trigger {
    position: relative; overflow: hidden; display: flex !important; align-items: center; justify-content: center; width: 100% !important;
    min-height: 46px !important; height: 46px; padding: 0 16px !important;
    background: #fff !important; border: 1.5px dashed #9aa594 !important; border-radius: 999px !important; box-shadow: none !important; cursor: pointer; color: var(--hk-ink) !important;
}
html body #stpCheckoutModal .stp-receipt-content { position: relative; z-index: 1; display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; min-width: 0; }
html body #stpCheckoutModal .stp-receipt-icon { display: grid !important; place-items: center; width: 24px !important; height: 24px !important; border-radius: 50%; background: var(--hk-ink) !important; color: var(--hk-lime) !important; font-size: 13px !important; line-height: 1; margin: 0 !important; }
html body #stpCheckoutModal .stp-receipt-title { font-size: 14px !important; font-weight: 700 !important; color: var(--hk-ink) !important; margin: 0 !important; white-space: nowrap; }
html body #stpCheckoutModal .stp-receipt-desc,
html body #stpCheckoutModal .stp-receipt-status { display: none !important; }
html body #stpCheckoutModal .stp-receipt-filename { font-size: 12px !important; color: #6b7266 !important; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 !important; }
html body #stpCheckoutModal .stp-receipt-progress:not([hidden]) { position: absolute !important; inset: 0; z-index: 0; display: block !important; margin: 0 !important; }
html body #stpCheckoutModal .stp-receipt-progress > span { position: absolute; inset: 0; display: block; background: none !important; height: auto !important; border-radius: 0 !important; }
html body #stpCheckoutModal .stp-receipt-progress i { display: block; height: 100%; background: var(--hk-lime-soft) !important; transition: width .25s ease; border-radius: 0 !important; }
html body #stpCheckoutModal .stp-receipt-progress b { display: none !important; }
html body #stpCheckoutModal .stp-receipt-upload.is-uploading .stp-receipt-icon { animation: hk-spin 1s linear infinite; }
html body #stpCheckoutModal .stp-receipt-upload.is-success .stp-receipt-trigger { border: 2px solid #4f7a10 !important; background: #f3f9e6 !important; }
html body #stpCheckoutModal .stp-receipt-upload.is-success .stp-receipt-icon { background: #4f7a10 !important; color: #fff !important; }
html body #stpCheckoutModal .stp-receipt-upload.is-error .stp-receipt-trigger { border: 2px solid #c0392b !important; background: #fdecea !important; }
html body #stpCheckoutModal .stp-receipt-note { margin: 6px 0 0 !important; font-size: 12px !important; color: #6b7266 !important; text-align: center; }
html body #stpCheckoutModal .stp-payment-option .stp-payment-radio { flex: 0 0 20px !important; width: 20px !important; height: 20px !important; }
html body #stpCheckoutModal .stp-payment-option .stp-payment-icon { flex: 0 0 42px !important; width: 42px !important; height: 42px !important; display: grid !important; place-items: center; overflow: hidden; border-radius: 11px; }
html body #stpCheckoutModal .stp-payment-option .stp-payment-icon img, html body #stpCheckoutModal .stp-payment-option .stp-payment-icon svg { width: 42px !important; height: 42px !important; max-width: none !important; object-fit: contain; }
html body #stpCheckoutModal .stp-guided-pay .stp-copy-pay.is-branded:not(.is-copied):not(.is-copy-error), html body #stpCheckoutModal .stp-guided-pay .stp-copy-pay { background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; opacity: 1 !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-copy-pay.is-copied { background: #4f7a10 !important; color: #fff !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-copy-pay * { color: #fff !important; opacity: 1 !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-section, html body #stpCheckoutModal .stp-guided-pay .stp-pay-receipt-step { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload .stp-receipt-icon { background: var(--hk-ink) !important; color: var(--hk-lime) !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload .stp-receipt-title { color: var(--hk-ink) !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-success .stp-receipt-icon { background: #4f7a10 !important; color: #fff !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload, html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-uploading, html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-success, html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-error { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-content { position: static !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-content > :not(.stp-receipt-progress) { position: relative; z-index: 1; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-progress:not([hidden]) { position: absolute !important; inset: 0 !important; z-index: 0 !important; width: auto !important; height: auto !important; }
/* Si falla la subida, el motivo se ve dentro del botón (que crece un poco) */
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-error .stp-receipt-trigger { height: auto !important; padding: 8px 16px !important; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-error .stp-receipt-content { flex-wrap: wrap; justify-content: center; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-error .stp-receipt-status { display: block !important; flex-basis: 100%; text-align: center; font-size: 12px !important; color: #a3261b !important; white-space: normal; }
html body #stpCheckoutModal .stp-guided-pay .stp-receipt-upload.is-success .stp-receipt-filename { display: inline-block !important; }
/* Transferencia: número de cuenta en una línea y botón debajo */
html body #stpCheckoutModal .stp-guided-bank .stp-pay-origin-panel { grid-template-columns: minmax(0, 1fr) !important; }
html body #stpCheckoutModal .stp-guided-bank .stp-payment-data-surface .stp-payment-number { font-size: 19px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #stpCheckoutModal .stp-guided-bank .stp-payment-copy-action { justify-self: start; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-bank .stp-copy-pay:not(.is-copied):not(.is-copy-error), html body #stpCheckoutModal .stp-modal-panel .stp-guided-wallet .stp-copy-pay:not(.is-copied):not(.is-copy-error) { background: var(--hk-ink) !important; color: #fff !important; border: 0 !important; }
html body #stpCheckoutModal .stp-guided-bank .stp-pay-destination-name, html body #stpCheckoutModal .stp-guided-bank .stp-bank-destination { display: flex; align-items: center; gap: 8px; font-size: 13px; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-pay-receipt-step, html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-section, html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-upload { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-upload:not(.is-success):not(.is-error) .stp-receipt-trigger { background: #fff !important; border: 1.5px dashed #9aa594 !important; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-upload:not(.is-success) .stp-receipt-icon { background: var(--hk-ink) !important; color: var(--hk-lime) !important; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-title { color: var(--hk-ink) !important; }
#stpCheckoutModal { --stp-ui-receipt-bg: transparent !important; --stp-ui-receipt-text: #17231a !important; --stp-ui-bank-bg: #17231a !important; --stp-ui-bank-text: #ffffff !important; --stp-ui-wallet-bg: #17231a !important; --stp-ui-wallet-text: #ffffff !important; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-upload:not(.is-success):not(.is-error):not(.is-uploading) { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body #stpCheckoutModal .stp-modal-panel .stp-guided-pay .stp-receipt-upload:not(.is-success):not(.is-error):not(.is-uploading) .stp-receipt-icon { background: var(--hk-ink) !important; color: var(--hk-lime) !important; }
