/*
 * [JD 30/10/2026] IDENTIDAD DEL PAGO v2 — Compra Express, checkout y recarga de billetera.
 * El dueño: «5 fases de identidad visual al express y al checkout». Por la regla de las tres
 * superficies de pago, lo común (campos, medios de pago, botón) llega también a la recarga.
 *
 * Archivo PROPIO: se carga desde AppServiceProvider::registerPagoIdentidad() (checkout por
 * `ecommerce_checkout_header`, express y recarga por el encabezado del tema). Cloudflare guarda
 * /themes diez años: al editar, cambiar el NOMBRE del archivo y la constante JD_PAGO_CSS.
 *
 * Reglas: solo blanco, grises y el color del tema (los tonos se derivan con color-mix);
 * nada de rejilla; nada de :has() con [class*=] ni body:has().
 */

/* ── Tokens ─────────────────────────────────────────────────────────────────────────────── */
body.checkout-page {
    --jdp: var(--primary-color);
    /* Botble pinta el botón y «Aplicar» con un azul propio (#197bbd): se lleva al del tema. */
    --checkout-primary-color: var(--primary-color);
    --checkout-primary-color-rgb: var(--primary-color-rgb);
}
.jd-express-modal, .jd-recarga-pago { --jdp: var(--tp-theme-primary); }
body.checkout-page, .jd-express-modal, .jd-recarga-pago {
    --jdp-borde: #d9dce1;
    --jdp-linea: #e6e8ec;
    --jdp-texto: #0f172a;
    --jdp-gris: #64748b;
    --jdp-tinte: color-mix(in srgb, var(--jdp) 7%, #fff);
    --jdp-oscuro: color-mix(in srgb, var(--jdp) 72%, #000);
    --jdp-anillo: 0 0 0 3px color-mix(in srgb, var(--jdp) 18%, transparent);
    --jdp-candado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3Ccircle cx='12' cy='16' r='1'/%3E%3C/svg%3E");
    --jdp-rayo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3 4 14h7l-1 7 9-11h-7l1-7z'/%3E%3C/svg%3E");
}

/* ── Fase 1 · Base: campos, títulos con paso numerado (tecla «keycap») ─────────────────── */
body.checkout-page { background: #f5f6f8; }
body.checkout-page .form-checkout {
    background: #fff; border: 1px solid var(--jdp-linea); border-radius: 18px;
    padding: 24px 24px 8px; margin-top: 16px; margin-bottom: 24px;
}
body.checkout-page .checkout-form .form-control,
body.checkout-page .checkout-form .form-select {
    border-color: var(--jdp-borde); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
body.checkout-page .checkout-form .form-control:not(textarea) { min-height: 50px; }
body.checkout-page .checkout-form .form-control:focus,
body.checkout-page .checkout-form .form-select:focus { border-color: var(--jdp); box-shadow: var(--jdp-anillo); }
/* El selector de documento trae su propia flecha: la del tema sobraba. */
body.checkout-page .form-input-wrapper .jd-docsel ~ svg.icon { display: none; }

body.checkout-page .checkout-customer-information-title,
body.checkout-page .checkout-payment-title,
.jd-express-modal .jd-express-section-title,
.jd-express-modal #jd-express-pm-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--jdp-texto);
}
body.checkout-page .checkout-customer-information-title::before,
body.checkout-page .checkout-payment-title::before,
.jd-express-modal .jd-express-section-title::before,
.jd-express-modal #jd-express-pm-label::before {
    content: "1"; flex: 0 0 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--jdp); color: #fff; font-size: 13px; font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22);
}
body.checkout-page .checkout-payment-title::before,
.jd-express-modal #jd-express-pm-label::before { content: "2"; }
body.checkout-page .checkout-payment-title { margin-bottom: 14px; }
.jd-express-modal .jd-express-section-title,
.jd-express-modal #jd-express-pm-label { font-size: 15.5px; margin-bottom: 8px; }
.jd-express-modal .jd-express-section-title::before,
.jd-express-modal #jd-express-pm-label::before { flex-basis: 24px; height: 24px; font-size: 12px; }

.jd-express-modal .jd-express-dialog { border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .45); }
.jd-express-modal .jd-express-backdrop { background: rgba(15, 23, 42, .55); }
.jd-express-modal .jd-express-header { padding: 14px 18px; border-bottom-color: var(--jdp-linea); }
.jd-express-modal .jd-express-header h5 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--jdp-texto); }
.jd-express-modal .jd-express-header h5::before {
    content: ""; width: 20px; height: 20px; background: var(--jdp);
    -webkit-mask: var(--jdp-rayo) center / contain no-repeat; mask: var(--jdp-rayo) center / contain no-repeat;
}
.jd-express-modal .jd-express-x {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; background: #f1f5f9; color: #475569;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transition: background .15s;
}
.jd-express-modal .jd-express-x:hover { background: #e2e8f0; color: var(--jdp-texto); }
.jd-express-modal .jd-express-field input:not([type=checkbox]):not([type=radio]),
.jd-express-modal .jd-express-field select,
.jd-express-modal .jd-express-field textarea {
    border-color: var(--jdp-borde); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.jd-express-modal .jd-express-field input:not([type=checkbox]):not([type=radio]) { min-height: 48px; }
.jd-express-modal .jd-express-field input:not([type=checkbox]):not([type=radio]):focus,
.jd-express-modal .jd-express-field select:focus,
.jd-express-modal .jd-express-field textarea:focus { outline: 0; border-color: var(--jdp); box-shadow: var(--jdp-anillo); }
.jd-express-modal .jd-express-field label,
.jd-express-modal .jd-express-field .jd-express-caption { font-size: 12.5px; font-weight: 600; color: #475569; }

/* ── Fase 2 · Medios de pago en tarjetas, anillo del tema al elegir ────────────────────── */
:is(body.checkout-page, .jd-recarga-pago) .list_payment_method { display: flex; flex-direction: column; gap: 10px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item {
    position: relative; margin: 0 !important; padding: 15px 16px !important;
    border: 1px solid var(--jdp-borde) !important; border-radius: 14px !important; background: #fff;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item:hover { border-color: #b8bec7 !important; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item:has(> .magic-radio:checked) {
    border-color: var(--jdp) !important; background: var(--jdp-tinte); box-shadow: var(--jdp-anillo);
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > label {
    font-size: 15px; font-weight: 600 !important; color: var(--jdp-texto); padding-left: 34px; margin-bottom: 0; cursor: pointer;
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > .magic-radio + label::before {
    width: 20px; height: 20px; top: 50%; transform: translateY(-50%); left: 0;
    border: 2px solid #cbd5e1; background: #fff; transition: border-color .15s, border-width .15s;
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > .magic-radio:checked + label::before { border: 6px solid var(--jdp); }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > .magic-radio + label::after { display: none; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment-method-logo { top: 14px; right: 16px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment-method-logo img { max-height: 26px; width: auto; max-width: 118px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment_collapse_wrap { margin-top: 10px !important; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment_collapse_wrap > p.text-muted { font-size: 13px; line-height: 1.5; color: var(--jdp-gris) !important; }

.jd-express-modal .jd-express-methods { gap: 8px; }
.jd-express-modal .jd-express-method-wrap { border-color: var(--jdp-borde); border-radius: 12px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.jd-express-modal .jd-express-method-wrap:hover { border-color: #b8bec7; }
.jd-express-modal .jd-express-method-wrap:has(input[name="jd_payment_method"]:checked) {
    border-color: var(--jdp); background: var(--jdp-tinte); box-shadow: var(--jdp-anillo);
}
.jd-express-modal .jd-express-method input[type=radio] { width: 18px; height: 18px; accent-color: var(--jdp); }
.jd-express-modal .jd-express-method-name { font-size: 14.5px; color: var(--jdp-texto); }

/* ── Fase 3 · Resumen del pedido como tarjeta (fija al bajar en escritorio) ────────────── */
body.checkout-page .checkout-order-info > .bg-light {
    background: #fff !important; border: 1px solid var(--jdp-linea); border-radius: 18px;
    box-shadow: 0 22px 44px -32px rgba(15, 23, 42, .4); overflow: hidden;
}
body.checkout-page .checkout-order-info .bg-light .bg-light { background: transparent !important; }
body.checkout-page .checkout-products-block > .bg-light > p {
    font-size: 11.5px; font-weight: 700 !important; letter-spacing: .07em; text-transform: uppercase; color: var(--jdp-gris);
}
body.checkout-page .checkout-order-info .vendor-information-section {
    background: var(--jdp-tinte) !important; border: 1px solid color-mix(in srgb, var(--jdp) 14%, #fff); border-radius: 12px;
}
body.checkout-page .checkout-order-info img.item-thumb,
body.checkout-page .checkout-order-info .checkout-product-img-wrapper img { border-radius: 10px; }
body.checkout-page .checkout-order-info hr { opacity: .12; }
body.checkout-page .checkout-summary-block { border-top: 1px solid var(--jdp-linea); }
body.checkout-page .ec-checkout-total-row strong { font-size: 15px; color: var(--jdp-texto); }
body.checkout-page .ec-checkout-total-row .total-text { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--jdp-texto); }
body.checkout-page #unified-discount-code { min-height: 48px; border-radius: 10px; border-color: var(--jdp-borde); }
body.checkout-page #unified-discount-code:focus { border-color: var(--jdp); box-shadow: var(--jdp-anillo); }
body.checkout-page #unified-apply-btn {
    /* Botble lo pinta con un azul escrito en el propio botón (style="background:#3b82f6"): de ahí el !important. */
    min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; font-weight: 700;
    background: var(--jdp) !important; color: #fff !important; font-size: 14px !important;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
body.checkout-page #unified-apply-btn:hover { background: var(--jdp-oscuro) !important; }
@media (min-width: 768px) {
    body.checkout-page .checkout-order-info { position: sticky; top: 24px; align-self: flex-start; }
}

.jd-express-modal .jd-express-summary {
    background: #fff; border-color: var(--jdp-linea); border-radius: 14px; padding: 6px 12px;
    box-shadow: 0 14px 30px -26px rgba(15, 23, 42, .5);
}
.jd-express-modal .jd-express-summary img.item-thumb { border-radius: 8px; }

/* ── Fase 4 · Botón de pagar: color del tema, candado y canto de tecla que se hunde ────── */
body.checkout-page .payment-checkout-btn,
.jd-recarga-pago button[type=submit].btn-primary,
.jd-express-modal .jd-express-footer .jd-express-pay {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px !important; padding: 0 28px !important; border: 0 !important; border-radius: 12px !important;
    background: var(--jdp) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 12px 26px -14px color-mix(in srgb, var(--jdp) 75%, transparent) !important;
    transition: background-color .15s, transform .06s, box-shadow .06s;
}
body.checkout-page .payment-checkout-btn::before,
.jd-recarga-pago button[type=submit].btn-primary::before,
.jd-express-modal .jd-express-footer .jd-express-pay::before {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--jdp-candado) center / contain no-repeat; mask: var(--jdp-candado) center / contain no-repeat;
}
body.checkout-page .payment-checkout-btn:hover,
.jd-recarga-pago button[type=submit].btn-primary:hover,
.jd-express-modal .jd-express-footer .jd-express-pay:hover { background: var(--jdp-oscuro) !important; }
body.checkout-page .payment-checkout-btn:active,
.jd-recarga-pago button[type=submit].btn-primary:active,
.jd-express-modal .jd-express-footer .jd-express-pay:active {
    transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .22) !important;
}
body.checkout-page .payment-checkout-btn:focus-visible,
.jd-recarga-pago button[type=submit].btn-primary:focus-visible,
.jd-express-modal .jd-express-footer button:focus-visible { outline: 0; box-shadow: var(--jdp-anillo) !important; }
@media (min-width: 768px) { body.checkout-page .checkout-btn-responsive { min-width: 240px; } }

.jd-express-modal .jd-express-footer {
    display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 16px; border-top-color: var(--jdp-linea);
    background: #fff; border-radius: 0 0 18px 18px;
}
.jd-express-modal .jd-express-footer .jd-express-other {
    min-height: 46px !important; margin: 0 !important; border-radius: 12px !important;
    background: #fff !important; color: var(--jdp) !important; font-size: 14.5px !important; font-weight: 700 !important;
    border: 1px solid color-mix(in srgb, var(--jdp) 30%, #fff) !important; box-shadow: none !important;
}
.jd-express-modal .jd-express-footer .jd-express-other:hover { background: var(--jdp-tinte) !important; }

/* ── Fase 5 · Firma de marca, avisos y teléfono ────────────────────────────────────────── */
body.checkout-page .checkout-section--logo { position: relative; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 0 !important; }
body.checkout-page .checkout-section--logo::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--jdp), var(--jdp-oscuro));
}
/* La raya gris de Botble bajo el logo: la reemplaza la barra del tema. */
body.checkout-page .checkout-section--logo > hr { display: none; }
@media (max-width: 575px) {
    /* En el teléfono el logo va centrado: la barra también. */
    body.checkout-page .checkout-section--logo::after { left: 50%; margin-left: -36px; }
}
body.checkout-page .checkout-form > .row > .form-checkout > .alert-info {
    background: #f8fafc; border: 1px solid var(--jdp-linea); border-left: 3px solid var(--jdp);
    border-radius: 12px; color: #475569; font-size: 13px;
}
body.checkout-page .checkout-section--order-notes textarea { border-radius: 12px; }

@media (max-width: 767px) {
    body.checkout-page .form-checkout { padding: 18px 16px 4px; border-radius: 16px; margin-top: 10px; }
    body.checkout-page .checkout-order-info > .bg-light { border-radius: 16px; }
}
@media (max-width: 575px) {
    /* El express en el teléfono sale como hoja desde abajo. */
    .jd-express-modal.is-open { align-items: flex-end; padding: 0; }
    .jd-express-modal .jd-express-dialog {
        max-width: 100%; margin: 0; border-radius: 20px 20px 0 0;
        max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px);
        animation: jdpSube .24s ease-out;
    }
    .jd-express-modal .jd-express-header { position: relative; padding-top: 20px; }
    .jd-express-modal .jd-express-header::before {
        content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px;
        border-radius: 4px; background: #e2e8f0;
    }
    .jd-express-modal .jd-express-footer { border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@keyframes jdpSube { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
    .jd-express-modal .jd-express-dialog { animation: none; }
    body.checkout-page .payment-checkout-btn, .jd-express-modal .jd-express-footer .jd-express-pay { transition: none; }
}

/* [JD 08/11/2026] PROHIBIDO que la página se mueva hacia los lados (regla del dueño, tercera vez:
   «dejes de poner desplazables mis cosas hacia los lados»). En el iPhone el checkout quedaba corrido
   a la izquierda. «clip» corta lo que se salga SIN crear una caja con scroll, así que los elementos
   fijos o pegajosos siguen funcionando; las tiras que sí deben deslizar tienen su propio overflow. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* ══════════════════════════════════════════════════════════════════════════════════════════
 * [JD 10/11/2026] EL FORMULARIO DEL CHECKOUT EN 5 FASES (v3). El dueño: «5 fases de mejora visual,
 * de funciones y de letras: modernízalo, en móvil y en escritorio, en el checkout completo y en la
 * compra rápida». Los textos se corrigen en las traducciones publicadas (lang/vendor/...) y los
 * pequeños ajustes de comportamiento (ejemplos dentro de los campos, nota plegable) en
 * AppServiceProvider::jdFormularioCheckoutJs().
 * ══════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Fase 1 · Campos iguales: misma altura, borde, radio, letra y etiqueta ───────────────────
   Cada campo tenía su estilo: unas etiquetas dentro (subían al escribir), la del teléfono sobre
   el borde en otro tamaño y color, la del documento más pequeña. Ahora TODAS van sobre el borde,
   con la misma letra, y toman el color del tema cuando el campo está activo. */
body.checkout-page .checkout-form .form-control:not(textarea),
body.checkout-page .checkout-form .jd-docsel-btn {
    min-height: 52px; border-width: 1.5px; border-radius: 12px;
    font-size: 15px; font-weight: 500; color: var(--jdp-texto);
}
body.checkout-page .checkout-form textarea.form-control { border-width: 1.5px; border-radius: 12px; font-size: 15px; }
body.checkout-page .checkout-form .form-control::placeholder { color: #94a3b8; opacity: 1; font-weight: 400; }
body.checkout-page .checkout-form .form-control:hover:not(:focus),
body.checkout-page .checkout-form .jd-docsel-btn:hover { border-color: #b8bec7; }
body.checkout-page :is(.form-input-wrapper, .phone-input-wrapper) { position: relative; }
body.checkout-page :is(.form-input-wrapper, .phone-input-wrapper) > label {
    position: absolute !important; top: -9px !important; left: 12px !important; right: auto !important;
    transform: none !important; margin: 0 !important; padding: 0 6px !important; height: auto !important;
    max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: 11.5px !important; font-weight: 700 !important; line-height: 18px !important; letter-spacing: .01em;
    color: #64748b !important; background: #fff !important; border-radius: 4px; z-index: 3; pointer-events: none;
    transition: color .15s;
}
body.checkout-page :is(.form-input-wrapper, .phone-input-wrapper):focus-within > label,
body.checkout-page .form-input-wrapper .jd-docsel.abierto ~ label { color: var(--jdp) !important; }
/* Con la etiqueta arriba, el texto ya no tiene que dejarle sitio dentro. */
body.checkout-page .form-input-wrapper > .form-control:not(textarea) { padding-top: 12px !important; padding-bottom: 12px !important; }
body.checkout-page .form-input-wrapper .jd-docsel-btn { padding-top: 12px; padding-bottom: 12px; }
body.checkout-page .customer-info-form > .form-group,
body.checkout-page .customer-info-form .form-group.mb-3 { margin-bottom: 16px !important; }
/* El teléfono: el selector de país a juego con el campo. */
body.checkout-page .phone-input-wrapper .iti { width: 100%; }
body.checkout-page .phone-input-wrapper .iti__selected-country,
body.checkout-page .phone-input-wrapper .iti__flag-container { border-radius: 12px 0 0 12px; }

/* ── Fase 2 · Encabezados de sección e «Iniciar sesión» ─────────────────────────────────── */
body.checkout-page .checkout-customer-information-title { margin-bottom: 10px; }
body.checkout-page .checkout-login-prompt { margin-bottom: 18px !important; }
body.checkout-page .checkout-login-prompt p {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    margin: 0; padding: 10px 14px; border-radius: 12px;
    background: var(--jdp-tinte); border: 1px solid color-mix(in srgb, var(--jdp) 16%, #fff);
    font-size: 13.5px; color: #334155;
}
body.checkout-page .checkout-login-prompt p a {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: #fff; border: 1px solid color-mix(in srgb, var(--jdp) 30%, #fff);
    color: var(--jdp) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap;
    transition: background-color .15s;
}
body.checkout-page .checkout-login-prompt p a:hover { background: color-mix(in srgb, var(--jdp) 8%, #fff); }
body.checkout-page .checkout-login-prompt p a::after {
    content: ""; width: 14px; height: 14px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Fase 3 · La nota del pedido, plegada ─────────────────────────────────────────────────
   Un recuadro grande vacío que casi nadie usa (productos digitales). Queda tras un enlace
   «Añadir una nota al pedido»; se abre sola si ya trae texto. El botón lo pone el script. */
body.checkout-page .checkout-section--order-notes.jd-nota-plegada > :not(.jd-nota-abrir) { display: none !important; }
body.checkout-page .jd-nota-abrir {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
    color: var(--jdp); font-size: 14px; font-weight: 700; cursor: pointer;
}
body.checkout-page .jd-nota-abrir::before {
    content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
    background: var(--jdp-tinte); border: 1px solid color-mix(in srgb, var(--jdp) 25%, #fff); font-size: 16px; line-height: 1;
}
body.checkout-page .jd-nota-abrir small { font-weight: 500; color: #94a3b8; font-size: 12.5px; }
body.checkout-page .checkout-section--order-notes:not(.jd-nota-plegada) .jd-nota-abrir { display: none; }
body.checkout-page .checkout-section--order-notes .form-label { font-size: 13px; font-weight: 700; color: #334155; }
body.checkout-page .checkout-section--order-notes textarea { min-height: 84px; }

/* ── Fase 4 · Casillas con el color del tema y el texto legal, discreto ─────────────────── */
body.checkout-page .checkout-form .form-check-input {
    width: 20px; height: 20px; margin-top: 1px; flex: none;
    border: 1.5px solid #cbd5e1; border-radius: 6px; cursor: pointer;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
body.checkout-page .checkout-form .form-check-input:checked { background-color: var(--jdp); border-color: var(--jdp); }
body.checkout-page .checkout-form .form-check-input:focus { box-shadow: var(--jdp-anillo); border-color: var(--jdp); }
body.checkout-page .checkout-form .form-check { display: flex; align-items: flex-start; gap: 10px; padding-left: 0; }
body.checkout-page .checkout-form .form-check .form-check-input { float: none; margin-left: 0; }
body.checkout-page .checkout-form .form-check-label { font-size: 13.5px; line-height: 1.5; color: #334155; cursor: pointer; }
body.checkout-page .checkout-form .form-check-label a { color: var(--jdp); font-weight: 600; text-underline-offset: 2px; }
body.checkout-page .checkout-form label.form-check.form-check-inline { display: flex; margin-right: 0; }
/* El mensaje legal: era una caja gris con mayúsculas raras; ahora una línea pequeña con su escudo. */
body.checkout-page .checkout-form .alert.alert-info {
    position: relative; margin: 6px 0 18px !important; padding: 0 0 0 26px !important;
    background: none !important; border: 0 !important; border-radius: 0 !important;
    font-size: 12.5px !important; line-height: 1.5 !important; color: #64748b !important;
}
body.checkout-page .checkout-form .alert.alert-info::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; background: #16a34a;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6l-8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Fase 5 · El pie: volver al carrito y Finalizar compra ──────────────────────────────── */
body.checkout-page .back-to-cart-btn {
    gap: 8px !important; padding: 10px 2px; color: #475569 !important; font-size: 14px; font-weight: 600;
    transition: color .15s;
}
body.checkout-page .back-to-cart-btn:hover { color: var(--jdp) !important; }
body.checkout-page .back-to-cart-btn svg { width: 18px; height: 18px; }
body.checkout-page .payment-checkout-btn { min-height: 52px !important; border-radius: 12px !important; font-size: 16px !important; }
body.checkout-page .checkout-form .row.align-items-center.mb-5 { margin-bottom: 24px !important; }
@media (max-width: 767px) {
    body.checkout-page .payment-checkout-btn { width: 100% !important; }
}

/* ── Compra rápida: los mismos campos (los del checkout ya los tiene por la regla de arriba) ── */
.jd-express-modal .jd-express-field input:not([type=checkbox]):not([type=radio]),
.jd-express-modal .jd-express-field select,
.jd-express-modal .jd-express-field .jd-docsel-btn {
    min-height: 50px; border-width: 1.5px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--jdp-texto);
}
.jd-express-modal .jd-express-field textarea { border-width: 1.5px; border-radius: 12px; font-size: 15px; }
.jd-express-modal .jd-express-field input::placeholder,
.jd-express-modal .jd-express-field textarea::placeholder { color: #94a3b8; opacity: 1; font-weight: 400; }
.jd-express-modal .jd-express-field > label {
    display: block; margin: 0 0 6px; font-size: 11.5px !important; font-weight: 700 !important;
    letter-spacing: .01em; color: #64748b !important;
}
.jd-express-modal .jd-express-field:focus-within > label { color: var(--jdp) !important; }
.jd-express-modal input[type=checkbox] {
    width: 20px; height: 20px; flex: none; border-radius: 6px; accent-color: var(--jdp); cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════════════════════
 * [JD 11/11/2026] v4 · CHECKOUT Y COMPRA EXPRESS IGUALES, EN 5 FASES QUE SE NOTEN.
 * El dueño: «aun así checkout completo se ve distinto a express, no son iguales; dale 5 fases
 * más, ambos se ven muy básicos, y las fases que te pedí no se notaron».
 * Las MISMAS piezas (clases jdpf-*) en las dos pantallas: el express las trae en su vista
 * (resources/views/jd/express-modal.blade.php) y el checkout las recibe del script
 * AppServiceProvider::jdPagoFasesJs(), que también marca los pasos y pone el total en el botón.
 * Solo blanco, grises y el color del tema; iconos SVG; nada de :has().
 * ══════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Fase 1 · Encabezado: pasos 1-2-3 y lo que respalda la compra ───────────────────────── */
.jdpf-cabeza {
    margin: 0 0 16px; padding: 16px 18px 14px; border-radius: 18px; background: #fff;
    border: 1px solid var(--jdp-linea); box-shadow: 0 18px 40px -34px rgba(15, 23, 42, .4);
}
.jdpf-pasos { display: flex; align-items: center; gap: 8px; }
.jdpf-paso { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.jdpf-paso-n {
    flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center;
    background: #eef1f5; color: #64748b; font-size: 13.5px; font-weight: 800; line-height: 1;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.jdpf-paso-t { font-size: 13.5px; font-weight: 700; color: #64748b; white-space: nowrap; transition: color .2s; }
.jdpf-paso-linea { flex: 1 1 auto; height: 2px; min-width: 14px; border-radius: 2px; background: #e5e9ef; transition: background-color .2s; }
.jdpf-paso.is-actual .jdpf-paso-n { background: var(--jdp); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 0 0 4px color-mix(in srgb, var(--jdp) 16%, transparent); }
.jdpf-paso.is-actual .jdpf-paso-t { color: var(--jdp-texto); }
.jdpf-paso.is-hecho .jdpf-paso-n { background: var(--jdp-tinte); color: var(--jdp); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--jdp) 35%, #fff); font-size: 0; }
.jdpf-paso.is-hecho .jdpf-paso-n::before {
    content: ""; width: 15px; height: 15px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jdpf-paso.is-hecho .jdpf-paso-t { color: var(--jdp-texto); }
.jdpf-paso.is-hecho + .jdpf-paso-linea { background: var(--jdp); }
.jdpf-confia {
    display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px -18px -14px; padding: 10px 18px;
    border-top: 1px solid var(--jdp-linea); border-radius: 0 0 18px 18px; background: #f8fafc;
}
.jdpf-confia span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #475569; white-space: nowrap; }
.jdpf-confia svg { flex: none; width: 15px; height: 15px; color: var(--jdp); }

/* ── Fase 2 · Cada sección en su tarjeta, con cabecera ───────────────────────────────────── */
body.checkout-page { background: #f2f4f7; }
body.checkout-page .form-checkout {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    /* Solo el relleno de la tarjeta vieja: el margen lateral de la columna (gutter) se queda. */
    padding-top: 0 !important; padding-bottom: 0 !important;
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
    margin-top: 0 !important;
}
.jdpf-tarjeta {
    position: relative; margin: 0 0 16px; padding: 0 22px 20px; border-radius: 18px; background: #fff;
    border: 1px solid var(--jdp-linea); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -34px rgba(15, 23, 42, .4);
}
.jdpf-tarjeta .jdpf-cab {
    display: block; margin: 0 -22px 18px; padding: 16px 22px 14px; border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, var(--jdp-tinte), #fff); border-bottom: 1px solid var(--jdp-linea);
}
.jdpf-cab > h5, .jdpf-cab > .jd-express-caption, .jdpf-cab > .jd-express-section-title {
    display: flex !important; align-items: center; gap: 12px; margin: 0 !important;
    font-size: 19px !important; font-weight: 800 !important; letter-spacing: -.015em; color: var(--jdp-texto) !important;
}
body.checkout-page .jdpf-cab > h5::before,
.jd-express-modal .jdpf-cab > .jd-express-section-title::before,
.jd-express-modal .jdpf-cab > #jd-express-pm-label::before {
    flex: 0 0 32px !important; width: 32px; height: 32px !important; border-radius: 10px !important; font-size: 15px !important;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 6px 14px -6px color-mix(in srgb, var(--jdp) 70%, transparent) !important;
}
.jdpf-sub { margin: 4px 0 0 44px; font-size: 13px; line-height: 1.45; color: var(--jdp-gris); }
/* La sección de pago del checkout ya traía margen propio: dentro de la tarjeta sobra. */
body.checkout-page .jdpf-tarjeta .checkout-payment-title { margin-bottom: 0 !important; }
body.checkout-page .checkout-section--payment.jdpf-tarjeta > .position-relative { margin-bottom: 0 !important; }
body.checkout-page .jdpf-tarjeta.jdpf-cierre { padding-top: 20px; }
body.checkout-page .jdpf-cierre .row.align-items-center { margin-bottom: 0 !important; }
body.checkout-page .form-checkout > .digital-product-notice { margin-bottom: 16px; }

.jd-express-modal .jd-express-body { background: #f2f4f7; }
.jd-express-modal .jdpf-tarjeta { padding: 0 16px 16px; border-radius: 16px; margin-bottom: 14px; }
.jd-express-modal .jdpf-tarjeta .jdpf-cab { margin: 0 -16px 16px; padding: 14px 16px 12px; border-radius: 16px 16px 0 0; }
.jd-express-modal .jdpf-tarjeta.jdpf-cierre { padding-top: 14px; }
.jd-express-modal .jdpf-cab > .jd-express-section-title,
.jd-express-modal .jdpf-cab > #jd-express-pm-label { font-size: 17.5px !important; }
.jd-express-modal .jdpf-sub { margin-left: 44px; font-size: 12.5px; }
.jd-express-modal .jdpf-cabeza { padding: 14px 14px 12px; border-radius: 16px; }
.jd-express-modal .jdpf-confia { margin: 12px -14px -12px; padding: 9px 14px; border-radius: 0 0 16px 16px; }
.jd-express-modal .jd-express-logo { margin: 2px 0 12px; }
@media (min-width: 576px) {
    .jd-express-modal .jd-express-dialog { max-width: 460px; }
}
@media (max-width: 575px) {
    .jd-express-modal .jd-express-body { padding: 12px 10px; }
    .jd-express-modal .jdpf-tarjeta { padding: 0 13px 14px; }
    .jd-express-modal .jdpf-tarjeta .jdpf-cab { margin: 0 -13px 14px; padding: 13px 13px 11px; }
    .jdpf-paso-t { font-size: 12.5px; }
    .jdpf-paso-n { width: 27px; height: 27px; border-radius: 9px; font-size: 12.5px; }
    .jdpf-sub { margin-left: 0; }
}
@media (max-width: 767px) {
    body.checkout-page .jdpf-tarjeta { padding: 0 16px 16px; }
    body.checkout-page .jdpf-tarjeta .jdpf-cab { margin: 0 -16px 16px; padding: 14px 16px 12px; }
    body.checkout-page .jdpf-tarjeta.jdpf-cierre { padding-top: 16px; }
    body.checkout-page .jdpf-cabeza { padding: 14px 14px 12px; }
    body.checkout-page .jdpf-confia { margin: 12px -14px -12px; padding: 9px 14px; }
}

/* ── Fase 3 · Medios de pago: tarjetas grandes, logo en su cápsula y marca de elegido ────── */
:is(body.checkout-page, .jd-recarga-pago) .list_payment_method { gap: 12px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item {
    padding: 18px 18px !important; border: 1.5px solid #e2e6ec !important; border-radius: 16px !important;
    transition: border-color .15s, box-shadow .2s, transform .15s, background-color .15s;
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item:hover {
    border-color: color-mix(in srgb, var(--jdp) 35%, #e2e6ec) !important; transform: translateY(-1px);
    box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .45);
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item:has(> .magic-radio:checked) {
    border-color: var(--jdp) !important; background: #fff; transform: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--jdp) 14%, transparent), 0 16px 32px -24px color-mix(in srgb, var(--jdp) 80%, transparent);
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > label { font-size: 15.5px; font-weight: 700 !important; padding-left: 38px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > .magic-radio + label::before {
    width: 24px; height: 24px; border: 2px solid #cbd5e1; background: #fff center / 13px no-repeat;
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > .magic-radio:checked + label::before {
    border: 0; background-color: var(--jdp);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--jdp) 16%, transparent);
}
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment-method-logo { top: 13px; right: 14px; }

.jd-express-modal .jd-express-methods { gap: 10px; }
.jd-express-modal .jd-express-method-wrap {
    border: 1.5px solid #e2e6ec; border-radius: 16px; background: #fff;
    transition: border-color .15s, box-shadow .2s, transform .15s, background-color .15s;
}
.jd-express-modal .jd-express-method-wrap:hover {
    border-color: color-mix(in srgb, var(--jdp) 35%, #e2e6ec); transform: translateY(-1px);
    box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .45);
}
.jd-express-modal .jd-express-method-wrap:has(input[name="jd_payment_method"]:checked) {
    border-color: var(--jdp); background: #fff; transform: none;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--jdp) 14%, transparent), 0 16px 32px -24px color-mix(in srgb, var(--jdp) 80%, transparent);
}
.jd-express-modal .jd-express-method { min-height: 60px; display: flex; align-items: center; padding-left: 48px !important; }
.jd-express-modal .jd-express-method input[type=radio][name=jd_payment_method] { left: 14px !important; }
.jd-express-modal .jd-express-method-name { font-size: 15.5px !important; font-weight: 700 !important; }
.jd-express-modal .jd-express-method input[type=radio][name=jd_payment_method] {
    width: 24px !important; height: 24px !important; border: 2px solid #cbd5e1 !important; background: #fff center / 13px no-repeat !important;
}
.jd-express-modal .jd-express-method input[type=radio][name=jd_payment_method]:checked {
    border: 0 !important; background-color: var(--jdp) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--jdp) 16%, transparent);
}

/* ── Fase 4 · Resumen del pedido: total destacado y lo que respalda la compra ────────────── */
body.checkout-page .ec-checkout-total-row,
.jd-express-modal .jd-express-summary .ec-checkout-total-row {
    margin: 8px 0 4px !important; padding: 14px 16px !important; border: 0 !important; border-radius: 14px;
    background: var(--jdp-tinte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jdp) 16%, #fff);
}
body.checkout-page .ec-checkout-total-row .total-text,
.jd-express-modal .jd-express-summary .ec-checkout-total-row .total-text {
    font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.02em; color: var(--jdp-oscuro) !important;
}
.jd-express-modal .jd-express-summary .ec-checkout-total-row strong { font-size: 15px; color: var(--jdp-texto); }
.jd-express-modal .jdpf-resumen .jd-express-summary { padding: 0; border: 0; box-shadow: none; background: transparent; }
/* La cabecera del resumen: la misma en las dos pantallas. */
body.checkout-page .checkout-order-info > .bg-light > .jdpf-cab-resumen {
    padding: 16px 20px 14px; background: linear-gradient(180deg, var(--jdp-tinte), #fff); border-bottom: 1px solid var(--jdp-linea);
}
.jdpf-cab-resumen > h5, .jdpf-cab > .jdpf-resumen-t {
    display: flex !important; align-items: center; gap: 10px; margin: 0 !important;
    font-size: 19px !important; font-weight: 800 !important; letter-spacing: -.015em; color: var(--jdp-texto) !important;
}
.jdpf-cab-resumen > h5::before, .jdpf-cab > .jdpf-resumen-t::before {
    content: ""; flex: none; width: 22px; height: 22px; background: var(--jdp);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jd-express-modal .jdpf-cab > .jdpf-resumen-t { font-size: 17.5px !important; }
/* «Producto(s)»: con la cabecera nueva ya sobra el rótulo pequeño. */
body.checkout-page .checkout-products-block > .bg-light:first-child > p { display: none; }
.jdpf-garantias { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px dashed #dfe4ea; display: grid; gap: 12px; }
.jdpf-garantias li { display: flex; align-items: flex-start; gap: 12px; margin: 0; }
.jdpf-garantias li > span:first-child {
    flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center;
    background: var(--jdp-tinte); color: var(--jdp); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jdp) 18%, #fff);
}
.jdpf-garantias svg { width: 17px; height: 17px; }
.jdpf-garantias b { display: block; font-size: 13.5px; font-weight: 700; color: var(--jdp-texto); line-height: 1.3; }
.jdpf-garantias small { display: block; font-size: 12.5px; color: var(--jdp-gris); line-height: 1.4; }
body.checkout-page .cart-item-wrapper .jdpf-garantias { margin: 10px 8px 4px; }

/* ── Fase 5 · El botón dice cuánto pagas, y el pie da la tranquilidad ───────────────────── */
body.checkout-page .payment-checkout-btn[data-jdpf-monto]::after,
.jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]::after {
    content: attr(data-jdpf-monto); margin-left: 2px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
body.checkout-page .payment-checkout-btn:disabled::after,
body.checkout-page .payment-checkout-btn.disabled::after,
body.checkout-page .payment-checkout-btn.button-loading::after,
.jd-express-modal .jd-express-footer .jd-express-pay:disabled::after { display: none; }
body.checkout-page .payment-checkout-btn, .jd-express-modal .jd-express-footer .jd-express-pay { min-height: 56px !important; font-size: 16.5px !important; }
@media (max-width: 380px) {
    body.checkout-page .payment-checkout-btn[data-jdpf-monto]::after,
    .jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]::after { font-size: 12.5px; padding: 2px 8px; }
}
.jdpf-seguro {
    display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0;
    font-size: 12px; font-weight: 600; color: #64748b; text-align: center;
}
.jdpf-seguro svg { flex: none; width: 14px; height: 14px; color: #16a34a; }
.jd-express-modal .jd-express-footer .jdpf-seguro { margin: 2px 0 0; }
body.checkout-page .jdpf-cierre .jdpf-seguro { justify-content: flex-end; }
@media (max-width: 767px) { body.checkout-page .jdpf-cierre .jdpf-seguro { justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
    .jdpf-paso-n, .jdpf-paso-linea, :is(body.checkout-page, .jd-recarga-pago) .payment-method-item,
    .jd-express-modal .jd-express-method-wrap { transition: none; }
}

/* El botón del checkout con el total cabe en una línea: la columna se ajusta a él. */
@media (min-width: 768px) {
    body.checkout-page .jdpf-cierre .row.align-items-center { justify-content: space-between; flex-wrap: nowrap; }
    body.checkout-page .jdpf-cierre .row.align-items-center > .col-md-6 { flex: 0 1 auto; width: auto; max-width: none; }
}
body.checkout-page .payment-checkout-btn, .jd-express-modal .jd-express-footer .jd-express-pay { white-space: nowrap; }
body.checkout-page .ec-checkout-total-row p { margin-bottom: 0 !important; }
body.checkout-page .ec-checkout-total-row > [class*="col-"] { display: flex; align-items: center; }
body.checkout-page .ec-checkout-total-row > [class*="col-"]:last-child { justify-content: flex-end; }

/* El botón del express es el del tema, que usa ::after para un destello animado (absoluto y girado):
   con el total dentro, ese hueco es la cápsula del monto y no se mueve. */
body.checkout-page .payment-checkout-btn[data-jdpf-monto]::after,
body.checkout-page .payment-checkout-btn[data-jdpf-monto]:hover::after,
.jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]::after,
.jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]:hover::after {
    position: static !important; display: inline-block !important; inset: auto !important;
    width: auto !important; height: auto !important; transform: none !important; opacity: 1 !important;
    animation: none !important; transition: none !important; filter: none !important; z-index: auto !important;
    background: rgba(255, 255, 255, .18) !important; border-radius: 999px !important;
}
@media (max-width: 575px) {
    body.checkout-page .payment-checkout-btn, .jd-express-modal .jd-express-footer .jd-express-pay { padding: 0 16px !important; gap: 8px !important; }
}

/* ── [JD 11/11/2026] «Tu cuenta», la misma tarjeta en checkout y express (jdPagoFasesPieza('cuenta')) ── */
body.checkout-page .checkout-login-prompt.jdpf-con-cuenta { display: block !important; }
.jdpf-cuenta {
    display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px;
    background: var(--jdp-tinte); border: 1px solid color-mix(in srgb, var(--jdp) 16%, #fff);
}
.jdpf-cuenta-ini {
    flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    background: var(--jdp); color: #fff; font-size: 17px; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
}
.jdpf-cuenta-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.jdpf-cuenta-txt small { font-size: 11.5px; font-weight: 600; color: var(--jdp-gris); }
.jdpf-cuenta-txt b { font-size: 15px; font-weight: 700; color: var(--jdp-texto) !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jdpf-cuenta-txt > span { font-size: 13px; color: #475569; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jdpf-cuenta-salir {
    flex: none; align-self: center; padding: 6px 11px; border-radius: 999px; background: #fff; white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--jdp) 30%, #fff); color: var(--jdp) !important;
    font-size: 12px; font-weight: 700; text-decoration: none !important;
}
.jdpf-cuenta-salir:hover { background: color-mix(in srgb, var(--jdp) 8%, #fff); }
.jd-express-modal .jd-express-login-prompt .jdpf-cuenta { margin-bottom: 16px; }
@media (max-width: 420px) {
    .jdpf-cuenta { flex-wrap: wrap; }
    .jdpf-cuenta-salir { margin-left: 52px; }
}

/* ── [JD 11/11/2026] El botón del checkout con el total ya no se desborda (el dueño: «finalizar compra se
   desborda con el monto»). En el pie del móvil comparte fila con el carrito y el cupón: el total va debajo
   del texto, sin candado. En pantallas medianas el botón ocupa toda la fila. ── */
body.checkout-page .payment-checkout-btn { max-width: 100%; overflow: hidden; }
body.checkout-page .mobile-checkout-btn[data-jdpf-monto] {
    flex-direction: column !important; gap: 0 !important; padding: 4px 12px !important;
    font-size: 15px !important; line-height: 1.15 !important; min-width: 0;
}
body.checkout-page .mobile-checkout-btn[data-jdpf-monto]::before { display: none !important; }
body.checkout-page .mobile-checkout-btn[data-jdpf-monto]::after {
    margin: 2px 0 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important;
    font-size: 12.5px !important; font-weight: 700 !important; opacity: .92 !important;
}
@media (max-width: 1199.98px) {
    body.checkout-page .jdpf-cierre .row.align-items-center { flex-wrap: wrap !important; row-gap: 10px; }
    body.checkout-page .jdpf-cierre .row.align-items-center > .col-md-6 { flex: 1 1 100% !important; width: 100% !important; text-align: center !important; }
    body.checkout-page .jdpf-cierre .row.align-items-center > .col-md-6:last-child { order: -1; }
    body.checkout-page .jdpf-cierre .payment-checkout-btn { width: 100% !important; float: none !important; }
    body.checkout-page .jdpf-cierre .jdpf-seguro { justify-content: center; }
}

/* ── [JD 11/11/2026] «Pago seguro · Entrega digital · Garantía legal» (el dueño: «mejóralo, se ve feo»): en el
   móvil se partía en dos líneas sueltas. Ahora tres columnas iguales, separadas, con el icono en su círculo. ── */
.jdpf-confia {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 !important;
    padding-top: 12px !important; padding-bottom: 12px !important; background: #fff !important;
}
.jdpf-confia span {
    flex-direction: column; justify-content: center; gap: 6px !important; padding: 0 6px; white-space: normal !important;
    text-align: center; font-size: 12px !important; font-weight: 700 !important; line-height: 1.2; color: var(--jdp-texto) !important;
}
.jdpf-confia span + span { border-left: 1px solid var(--jdp-linea); }
.jdpf-confia svg {
    box-sizing: content-box; width: 16px !important; height: 16px !important; padding: 7px; border-radius: 50%;
    background: var(--jdp-tinte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jdp) 18%, #fff);
}

/* La lista del resumen: en su recuadro, cada garantía separada por una línea fina. */
.jdpf-garantias {
    gap: 0 !important; margin-top: 14px !important; padding: 4px 14px !important; border: 1px solid var(--jdp-linea) !important;
    border-radius: 14px; background: #f8fafc;
}
.jdpf-garantias li { padding: 11px 0; align-items: center !important; }
.jdpf-garantias li + li { border-top: 1px solid var(--jdp-linea); }
.jdpf-garantias li > span:first-child { width: 32px !important; height: 32px !important; border-radius: 50% !important; background: #fff !important; }

/* ── [JD 11/11/2026] Correcciones del dueño tras subir la v4:
   «pago seguro procesado dejó de estar pegado al borde y perdió tamaño de los lados; quiero la pantalla más
   completa» y «el logo de Nequi, Daviplata y Bre-B está muy arriba, céntralo».
   · El sello del checkout se mide contra un relleno de 15/16 px (jd/medios-pasarela-css): la v4 lo había subido a
     18 y el sello quedaba suelto. Vuelve a 15/16, y el redondeo casa con el del sello (borde 1,5 + 13 = 14,5).
   · En el express el sello se redondea a 11: el recuadro, a 12,5 con su borde de 1,5.
   · Los logos se centran con el nombre del medio: el nombre ocupa la misma altura que el logo (35 px).
   · Menos relleno a los lados en el móvil: tarjetas y medios más anchos. ── */
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item { padding: 15px 16px !important; border-radius: 14.5px !important; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item > label { display: flex !important; align-items: center; min-height: 35px; }
:is(body.checkout-page, .jd-recarga-pago) .payment-method-item .payment-method-logo { top: 15px !important; right: 16px !important; }
.jd-express-modal .jd-express-method-wrap { border-radius: 12.5px; }

@media (max-width: 767px) {
    body.checkout-page .checkout-content-wrap { padding-left: 8px !important; padding-right: 8px !important; }
    body.checkout-page .form-checkout { padding-left: 0 !important; padding-right: 0 !important; }
    body.checkout-page .checkout-order-info { padding-left: 0 !important; padding-right: 0 !important; }
    body.checkout-page .jdpf-tarjeta { padding: 0 12px 14px; border-radius: 16px; }
    body.checkout-page .jdpf-tarjeta .jdpf-cab { margin: 0 -12px 14px; padding: 13px 12px 11px; border-radius: 16px 16px 0 0; }
    body.checkout-page .jdpf-tarjeta.jdpf-cierre { padding-top: 14px; }
    body.checkout-page .jdpf-cabeza { padding: 12px 12px 10px; border-radius: 16px; }
    body.checkout-page .jdpf-confia { margin: 10px -12px -10px; padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 575px) {
    .jd-express-modal .jd-express-body { padding: 10px 6px; }
    .jd-express-modal .jdpf-tarjeta { padding: 0 10px 12px; border-radius: 14px; }
    .jd-express-modal .jdpf-tarjeta .jdpf-cab { margin: 0 -10px 12px; padding: 12px 10px 10px; border-radius: 14px 14px 0 0; }
    .jd-express-modal .jdpf-tarjeta.jdpf-cierre { padding-top: 12px; }
    .jd-express-modal .jdpf-cabeza { padding: 12px 10px 10px; border-radius: 14px; }
    .jd-express-modal .jdpf-confia { margin: 10px -10px -10px; padding-left: 2px; padding-right: 2px; border-radius: 0 0 14px 14px; }
}
@media (max-width: 575px) {
    /* En el móvil la ventana va de borde a borde, como una hoja desde abajo: el estilo propio del express le ponía
       16/12 px de margen y le ganaba a la regla de la v3 por cargarse después. */
    .jd-express-modal.is-open { padding: 0 !important; align-items: flex-end !important; }
    .jd-express-modal .jd-express-dialog { max-width: 100% !important; width: 100% !important; }
}

/* ── [JD 11/11/2026] El resumen ARRIBA también en el checkout del móvil (el dueño: «en express el resumen de
   pedido sale abajo y en completo arriba, todavía está desfasado»). En escritorio ya va arriba (columna derecha).
   En el teléfono la columna del formulario se «abre» (display: contents) para ordenar sus piezas una a una, en el
   mismo orden que el express: logo → pasos → resumen y cupón → tus datos → pago → cierre. ── */
@media (max-width: 767px) {
    body.checkout-page #main-checkout-product-info { display: flex; flex-direction: column; flex-wrap: nowrap; }
    body.checkout-page #main-checkout-product-info > .form-checkout { display: contents !important; }
    body.checkout-page #main-checkout-product-info > .form-checkout > *,
    body.checkout-page #main-checkout-product-info > .checkout-order-info {
        order: 3; flex: 0 0 auto; width: 100%; max-width: 100%;
    }
    body.checkout-page #main-checkout-product-info > .form-checkout > .checkout-section--logo { order: 1; }
    body.checkout-page #main-checkout-product-info > .form-checkout > .jdpf-cabeza { order: 1; }
    body.checkout-page #main-checkout-product-info > .checkout-order-info { order: 2; position: static; }
    body.checkout-page .checkout-order-info > .bg-light { margin-top: 0 !important; margin-bottom: 12px !important; }
    body.checkout-page .checkout-order-info > .mt-3.mb-5 { margin-top: 0 !important; margin-bottom: 16px !important; }
}
@media (max-width: 767px) {
    /* Abierta la columna, la fila conservaba su margen negativo (-12 px) y las tarjetas tocaban el borde de la
       pantalla, con «Entrega de Producto Digital» cortado (el dueño: «muy pegado a los bordes y se oculta»). */
    body.checkout-page #main-checkout-product-info { margin-left: 0 !important; margin-right: 0 !important; }
    body.checkout-page #main-checkout-product-info > .checkout-order-info { padding-left: 0 !important; padding-right: 0 !important; }
    body.checkout-page .checkout-content-wrap { padding-left: 10px !important; padding-right: 10px !important; }
    body.checkout-page .digital-product-notice { max-width: 100%; overflow: hidden; }
}

/* ── [JD 11/11/2026] LAS DOS CASILLAS DEL CIERRE (términos y ofertas) con la identidad de la tienda, en 3 fases
   (el dueño: «fases a esos 2 botones de identidad visual de la tienda»). Iguales en checkout y express.
   · Fase 1: cada casilla en su tarjeta; toda la fila se pulsa.
   · Fase 2: su icono a la derecha, en un círculo del color del tema (documento = términos, campana = ofertas).
   · Fase 3: marcada → borde y tinte del tema, círculo relleno con el icono en blanco y un pequeño rebote. ── */
body.checkout-page .jdpf-cierre .form-check,
.jd-express-modal .jdpf-cierre .jd-express-terms {
    position: relative; display: flex !important; align-items: center !important; gap: 12px !important;
    margin: 10px 0 0 !important; padding: 12px 58px 12px 14px !important; min-height: 58px; border-radius: 14px;
    border: 1.5px solid #e2e6ec; background: #fff; cursor: pointer;
    font-size: 13.5px !important; line-height: 1.45 !important; color: #334155 !important;
    transition: border-color .15s, background-color .15s, box-shadow .2s;
}
body.checkout-page .jdpf-cierre .form-check:hover,
.jd-express-modal .jdpf-cierre .jd-express-terms:hover { border-color: color-mix(in srgb, var(--jdp) 40%, #e2e6ec); }
body.checkout-page .jdpf-cierre .form-check > .form-check-input,
.jd-express-modal .jdpf-cierre .jd-express-terms > input[type=checkbox] { margin: 0 !important; align-self: center; flex: none; }
body.checkout-page .jdpf-cierre .form-check > label.form-check-label { flex: 1 1 auto; margin: 0; cursor: pointer; }
/* El círculo (::after) y su icono (::before), a la derecha. */
body.checkout-page .jdpf-cierre .form-check::after,
.jd-express-modal .jdpf-cierre .jd-express-terms::after {
    content: ""; position: absolute; right: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
    background: var(--jdp-tinte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jdp) 20%, #fff);
    transition: background-color .2s, box-shadow .2s;
}
body.checkout-page .jdpf-cierre .form-check::before,
.jd-express-modal .jdpf-cierre .jd-express-terms::before {
    content: ""; position: absolute; right: 22px; top: 50%; z-index: 1; width: 16px; height: 16px; margin-top: -8px;
    background: var(--jdp); transition: background-color .2s;
    -webkit-mask: var(--jdpf-ico-term) center / contain no-repeat; mask: var(--jdpf-ico-term) center / contain no-repeat;
}
body.checkout-page .jdpf-cierre, .jd-express-modal .jdpf-cierre {
    --jdpf-ico-term: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
    --jdpf-ico-ofertas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
}
body.checkout-page .jdpf-cierre .form-check:has(> #jd-acepta-comercial-f)::before,
.jd-express-modal .jdpf-cierre .jd-express-terms:has(> #jd-acepta-comercial)::before {
    -webkit-mask-image: var(--jdpf-ico-ofertas); mask-image: var(--jdpf-ico-ofertas);
}
/* Fase 3 · marcada. */
body.checkout-page .jdpf-cierre .form-check:has(> input:checked),
.jd-express-modal .jdpf-cierre .jd-express-terms:has(> input:checked) {
    border-color: var(--jdp); background: var(--jdp-tinte); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jdp) 14%, transparent);
}
body.checkout-page .jdpf-cierre .form-check:has(> input:checked)::after,
.jd-express-modal .jdpf-cierre .jd-express-terms:has(> input:checked)::after {
    background: var(--jdp); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
}
body.checkout-page .jdpf-cierre .form-check:has(> input:checked)::before,
.jd-express-modal .jdpf-cierre .jd-express-terms:has(> input:checked)::before { background: #fff; }
body.checkout-page .jdpf-cierre .form-check > input:checked,
.jd-express-modal .jdpf-cierre .jd-express-terms > input:checked { animation: jdpfRebote .28s ease-out; }
@keyframes jdpfRebote { 0% { transform: scale(.82); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    body.checkout-page .jdpf-cierre .form-check > input:checked,
    .jd-express-modal .jdpf-cierre .jd-express-terms > input:checked { animation: none; }
}

/* ── [JD 11/11/2026] Sin repetir «1 Tus datos» (el dueño: «cámbialo, está repetido»): los NÚMEROS solo van en los
   pasos de arriba. Las cabeceras de las tarjetas llevan un icono en su tecla del color del tema (persona = datos,
   tarjeta = pago) y la sección se llama «Datos de contacto» (es.json, «Customer information»). ── */
body.checkout-page, .jd-express-modal {
    --jdpf-ico-persona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
    --jdpf-ico-pago: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2.5'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E");
}
body.checkout-page .jdpf-cab > h5.checkout-customer-information-title::before,
.jd-express-modal .jdpf-cab > .jd-express-section-title::before {
    content: "" !important; background: var(--jdp) var(--jdpf-ico-persona) center / 17px no-repeat !important;
}
body.checkout-page .jdpf-cab > h5.checkout-payment-title::before,
.jd-express-modal .jdpf-cab > #jd-express-pm-label::before {
    content: "" !important; background: var(--jdp) var(--jdpf-ico-pago) center / 17px no-repeat !important;
}

.jd-express-modal .jd-express-summary .checkout-products-block > .bg-light:first-child > p { display: none; }

/* ── [JD 12/11/2026] «Finalizar compra» en el iPhone (el dueño: «el candado y el monto se siguen desbordando en
   checkout completo… en mi iPhone sale todo en una sola línea»). A ese iPhone le llega el botón grande (candado +
   texto + cápsula del total en una fila) y a 375 px no cabe. En pantallas de teléfono el total baja a su propia
   línea, debajo del candado y el texto; igual en el express. El botón del pie del móvil ya tiene su arreglo. ── */
@media (max-width: 575px) {
    body.checkout-page .payment-checkout-btn[data-jdpf-monto]:not(.mobile-checkout-btn),
    .jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto] {
        flex-wrap: wrap !important; row-gap: 1px !important; column-gap: 8px !important;
        padding: 9px 14px !important; height: auto !important; line-height: 1.2 !important; white-space: nowrap;
    }
    body.checkout-page .payment-checkout-btn[data-jdpf-monto]:not(.mobile-checkout-btn)::after,
    body.checkout-page .payment-checkout-btn[data-jdpf-monto]:not(.mobile-checkout-btn):hover::after,
    .jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]::after,
    .jd-express-modal .jd-express-footer .jd-express-pay[data-jdpf-monto]:hover::after {
        flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
        background: none !important; border-radius: 0 !important; text-align: center;
        font-size: 13px !important; font-weight: 700 !important; opacity: .92 !important;
    }
}

/* ── [JD 13/11/2026] UN SOLO RESUMEN DEL PEDIDO para el checkout (móvil) y la Compra Express ───────────────────────
   El dueño: «el recuadro del resumen, donde sale Juego Digital Store verificado y el producto, que adopte la pantalla
   completa, se ve muy ajustado» y «los precios se pintan debajo de la imagen en express y en checkout al lado». El
   express inyecta el MISMO .cart-item-wrapper del checkout pero dentro de una caja gris con margen: ahí el precio
   bajaba bajo la imagen, la cantidad salía enorme y el total se partía. Ahora las dos pantallas usan estas reglas:
   tienda, producto y total de borde a borde de la tarjeta; foto 72 px, nombre y cantidad al lado, precio a la derecha. */
.jd-express-modal .jd-express-summary {
    margin: 0 -16px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: #fff !important; font-size: 14px;
}
@media (max-width: 575px) { .jd-express-modal .jd-express-summary { margin: 0 -13px !important; } }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item-wrapper { padding: 0 !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .checkout-products-block > .bg-light.py-2,
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .checkout-products-block > .jdpf-vacio { display: none !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .checkout-products-marketplace > .bg-light { margin: 0 !important; background: #fff !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .vendor-information-section {
    padding: 10px 16px !important; background: color-mix(in srgb, var(--jdp, #0C55AA) 6%, #fff) !important; border-bottom: 1px solid #e6e9ef;
}
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .checkout-products-marketplace .py-3 { padding: 14px 16px !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item {
    display: flex !important; flex-wrap: nowrap !important; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 0 !important; border: 0 !important;
}
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item > .col-3 { flex: 0 0 72px !important; width: 72px !important; max-width: 72px !important; padding: 0 !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item > .col { flex: 1 1 auto !important; min-width: 0; padding: 0 !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item > .col-auto { flex: 0 0 auto !important; padding: 0 !important; text-align: right !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .cart-item .col > p { margin: 0 !important; font-size: 14px !important; line-height: 1.35; color: #0f172a !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-item-price { margin: 0 !important; font-size: 14px !important; font-weight: 600; white-space: nowrap; color: #0f172a !important; text-align: right !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-quantity {
    display: inline-flex !important; align-items: center; width: auto !important; height: 34px; margin-top: 8px !important;
    border: 1px solid #d6dbe3 !important; border-radius: 10px !important; overflow: hidden; background: #fff;
}
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-quantity > * { position: static !important; inset: auto !important; transform: none !important; flex: none !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-quantity-control {
    width: 32px !important; height: 32px !important; padding: 0 !important; border: 0 !important; background: #fff !important; display: grid !important; place-items: center;
}
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-quantity input {
    width: 32px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important;
    text-align: center; font-size: 14px !important; background: #fff !important; box-shadow: none !important;
}
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) hr.border-dark-subtle { display: none !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .checkout-summary-block > div { margin: 0 !important; padding: 0 16px 14px !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-total-row { flex-wrap: nowrap !important; align-items: center; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-total-row > [class*="col-"] { width: auto !important; flex: 0 0 auto !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-total-row > [class*="col-"]:last-child { flex: 1 1 auto !important; min-width: 0; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-total-row p { margin: 0 !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .ec-checkout-total-row .total-text { white-space: nowrap; text-align: right !important; font-size: clamp(19px, 6vw, 24px) !important; }
/* Detalles del express para que quede igual que el checkout. */
.jd-express-modal .jdpf-tarjeta .jd-express-summary { margin-top: -16px !important; }
@media (max-width: 575px) { .jd-express-modal .jdpf-tarjeta .jd-express-summary { margin-top: -14px !important; } }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .vendor-information-section a,
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .vendor-information-section strong { color: #0f172a !important; text-decoration: none !important; }
.jd-express-modal .jd-express-summary .checkout-summary-block { border-top: 1px solid #e6e9ef; padding-top: 14px; }
.jd-express-modal .jd-express-coupon .jd-coupon-row input#jd-coupon { font-size: 16px !important; }
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .vendor-information-section .jd-store-head,
:is(body.checkout-page .form-checkout > .checkout-section--cart, .jd-express-modal .jd-express-summary) .vendor-information-section [data-jd-oficial] { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; background: none !important; font-weight: 600 !important; }
/* El cupón del express separado del resumen por la misma línea que en el checkout. */
.jd-express-modal .jd-express-summary + .jd-express-field.jd-express-coupon,
.jd-express-modal .jd-express-summary ~ .jd-express-coupon { margin: 0 -16px !important; padding: 14px 16px 2px !important; border-top: 1px solid #e6e9ef; }
@media (max-width: 575px) { .jd-express-modal .jd-express-summary ~ .jd-express-coupon { margin: 0 -13px !important; padding: 14px 13px 2px !important; } }

/* ── [JD 13/11/2026] Cabecera con el logo · Fase 1 de 3: la misma en el checkout y en la Compra Express ──────────────
   (el dueño: «mejora la parte donde está el logo en ambos en 3 fases»). Logo centrado a 42 px de alto, sin la raya
   suelta de debajo y con el mismo aire hasta los pasos. */
body.checkout-page .checkout-section--logo { padding: 6px 0 0 !important; margin: 0 0 14px !important; }
body.checkout-page .checkout-section--logo::after { display: none !important; }
body.checkout-page .checkout-section--logo .checkout-logo { text-align: center !important; }
body.checkout-page .checkout-section--logo .checkout-logo img,
.jd-express-modal .jd-express-logo img { height: 42px !important; max-height: 42px !important; width: auto !important; max-width: 100% !important; }
.jd-express-modal .jd-express-logo { margin: 6px 0 14px !important; text-align: center; }
body.checkout-page .checkout-section--logo .checkout-logo { margin: 0 !important; padding: 0 !important; }
body.checkout-page .checkout-section--logo .checkout-logo a { display: inline-block; line-height: 0; }

/* ── [JD 13/11/2026] Cabecera con el logo · Fase 2 de 3: el logo y los pasos en UNA tarjeta, igual en el checkout y en
   la Compra Express. El logo es la parte de arriba de la tarjeta de los pasos (sin aire ni borde entre las dos). ── */
body.checkout-page .form-checkout > .checkout-section--logo,
.jd-express-modal .jd-express-logo {
    margin: 0 !important; padding: 16px 12px 4px !important; background: #fff;
    border: 1px solid var(--jdp-linea, #e6e9ef); border-bottom: 0; border-radius: 16px 16px 0 0;
}
body.checkout-page .form-checkout > .checkout-section--logo + [data-jdpf-cabeza],
.jd-express-modal .jd-express-logo + .jdpf-cabeza {
    margin-top: 0 !important; border-top: 0 !important; border-radius: 0 0 16px 16px !important; padding-top: 10px !important;
}
body.checkout-page .form-checkout > .checkout-section--logo { margin-top: 10px !important; }

/* ── [JD 13/11/2026] Cabecera · Fase 3 de 3: el checkout con la misma barra que la Compra Express (título con icono a la
   izquierda, botón redondo a la derecha: ahí la ×, aquí volver al carrito). ── */
.jdpf-barra {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 12px; padding: 12px 4px 12px 2px; border-bottom: 1px solid var(--jdp-linea, #e6e9ef);
}
.jdpf-barra-t { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--jdp-texto, #0f172a); }
.jdpf-barra-t::before {
    content: ""; flex: none; width: 20px; height: 20px; background: var(--jdp);
    -webkit-mask: var(--jdp-candado) center / contain no-repeat; mask: var(--jdp-candado) center / contain no-repeat;
}
.jdpf-barra-x {
    flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; color: #475569 !important;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; transition: background .15s;
}
.jdpf-barra-x:hover { background: #e2e8f0; color: var(--jdp-texto, #0f172a) !important; }
body.checkout-page .form-checkout > .jdpf-barra + .checkout-section--logo { margin-top: 0 !important; }
@media (max-width: 767px) { body.checkout-page #main-checkout-product-info > .form-checkout > .jdpf-barra { order: 0; } }
@media (max-width: 767px) { body.checkout-page .form-checkout > .jdpf-barra { margin: 0 calc(50% - 50vw) 12px; padding: 14px 18px; background: #fff; } }
@media (min-width: 768px) { body.checkout-page .form-checkout > .jdpf-barra { background: #fff; border: 1px solid var(--jdp-linea, #e6e9ef); border-radius: 16px; padding: 12px 16px; margin-top: 10px; } }
