/**
 * inloff — Cart page styles (override /carrito/)
 *
 * Layout 2-col desktop (items | sticky summary), 1-col mobile.
 * Reusa variables CSS del sidecart cuando es posible (--sc-*).
 */

.inloff-cart-page {
    --c-navy: #1B2540;
    --c-navy-deep: #131A2E;
    --c-heart: #C5A184;
    --c-heart-light: #D7B89E;
    --c-cream: #FAF7F2;
    --c-cream-warm: #F5EFE5;
    --c-text: #2C2C2C;
    --c-text-soft: #4A4A4A;
    --c-muted: #6B6B6B;
    --c-border: #E8E1D4;
    --c-border-soft: #F0EBE0;
    --c-success-bg: #E8F5EC;
    --c-success-border: #B8E0C2;
    --c-success-text: #1B5E20;
    --c-warn-bg: #FFF4E5;
    --c-warn-text: #A65500;
    --c-danger: #d04848;

    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    font-family: inherit;
    color: var(--c-text);
    position: relative;
}

/* Kill defensivo de los estilos default de WC table layout */
.inloff-cart-page .shop_table,
.inloff-cart-page table.cart {
    display: block !important;
}
.inloff-cart-page form.woocommerce-cart-form {
    margin: 0;
}

/* ============================================================
   Hero (header del carrito)
   ============================================================ */
.inloff-cart-page__hero {
    margin: 0 0 32px;
    text-align: center;
}
.inloff-cart-page__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(36px, 4.5vw, 52px);
    line-height: 1.1;
    color: var(--c-navy);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.inloff-cart-page__subtitle {
    font-size: 14px;
    color: var(--c-text-soft);
    margin: 0;
    line-height: 1.5;
}
.inloff-cart-page__subtitle strong {
    color: var(--c-navy);
    font-weight: 600;
}
.inloff-cart-page__subtitle-sep {
    color: var(--c-heart);
    margin: 0 6px;
}

/* ============================================================
   Free shipping bar (mismo concepto que sidecart)
   ============================================================ */
.inloff-cart-page__shipping-bar {
    background: var(--c-cream-warm);
    border: 1px solid rgba(27, 37, 64, 0.06);
    border-radius: 12px;
    padding: 16px 24px 18px;
    margin: 0 0 32px;
    text-align: center;
    transition: background 0.4s ease, border-color 0.4s ease;
}
.inloff-cart-page__shipping-bar--unlocked {
    background: var(--c-success-bg);
    border-color: var(--c-success-border);
}
.inloff-cart-page__shipping-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--c-text-soft);
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.inloff-cart-page__shipping-text strong {
    color: var(--c-navy);
    font-weight: 700;
}
.inloff-cart-page__shipping-emoji {
    font-size: 22px;
    display: inline-flex;
    transition: transform 0.4s cubic-bezier(.22, .61, .36, 1);
}
/* Iconos SVG (inloff_home_icon) en el carrito: heredan color del texto/acento. */
.inloff-cart-page__shipping-emoji .inloff-ico { width: 22px; height: 22px; }
.inloff-cart-page__item-pending-icon .inloff-ico,
.inloff-cart-page__delivery-icon .inloff-ico,
.inloff-cart-page__trust-flag .inloff-ico { width: 16px; height: 16px; }
.inloff-cart-page__shipping-bar--hot .inloff-cart-page__shipping-emoji {
    animation: inloff-cp-shake 1.2s ease-in-out infinite;
}
.inloff-cart-page__shipping-bar--unlocked .inloff-cart-page__shipping-emoji {
    animation: inloff-cp-bounce 0.6s cubic-bezier(.22, .61, .36, 1);
}
@keyframes inloff-cp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px) rotate(-3deg); }
    75% { transform: translateX(2px) rotate(3deg); }
}
@keyframes inloff-cp-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(10deg); }
}
.inloff-cart-page__shipping-text--won {
    color: var(--c-success-text) !important;
    font-weight: 700;
}
.inloff-cart-page__shipping-text--won strong {
    color: var(--c-success-text);
}
.inloff-cart-page__shipping-track {
    height: 6px;
    background: rgba(27, 37, 64, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.inloff-cart-page__shipping-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-heart) 0%, var(--c-heart-light) 100%);
    border-radius: 3px;
    transition: width .5s cubic-bezier(.22, .61, .36, 1), background 0.4s ease;
    position: relative;
}
.inloff-cart-page__shipping-bar--unlocked .inloff-cart-page__shipping-fill {
    background: linear-gradient(90deg, #2E7D32 0%, #4CAF50 100%);
}
.inloff-cart-page__shipping-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: inloff-cp-shimmer 2s ease-in-out infinite;
}
@keyframes inloff-cp-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   Grid layout 2 cols (items | summary sticky)
   ============================================================ */
.inloff-cart-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 980px) {
    .inloff-cart-page__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ============================================================
   Items column
   ============================================================ */
.inloff-cart-page__items-col {
    min-width: 0;
}

.inloff-cart-page__items {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(19, 26, 46, 0.03);
}

.inloff-cart-page__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 22px;
    padding: 24px;
    border-bottom: 1px solid var(--c-border-soft);
    transition: background 0.15s ease;
    animation: inloff-cp-fadeIn 0.3s ease;
}
.inloff-cart-page__item:hover {
    background: rgba(250, 247, 242, 0.4);
}
.inloff-cart-page__item:last-child {
    border-bottom: 0;
}
.inloff-cart-page__item.is-removing {
    animation: inloff-cp-removeItem 0.32s ease forwards;
    pointer-events: none;
}
@keyframes inloff-cp-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes inloff-cp-removeItem {
    0%   { opacity: 1; max-height: 400px; transform: translateX(0); }
    100% { opacity: 0; max-height: 0; transform: translateX(40px); padding: 0; margin: 0; border-bottom-width: 0; }
}

/* Thumb */
.inloff-cart-page__item-thumb {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-cream);
    flex-shrink: 0;
}
.inloff-cart-page__item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.25s ease;
}
.inloff-cart-page__item-thumb a:hover {
    transform: scale(1.04);
}
.inloff-cart-page__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Body */
.inloff-cart-page__item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inloff-cart-page__item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.inloff-cart-page__item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-navy);
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    transition: color 0.15s ease;
}
.inloff-cart-page__item-name:hover {
    color: var(--c-heart);
}
.inloff-cart-page__item-remove {
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: #8a92a8;
    border-radius: 50%;
    transition: color .15s ease, background .15s ease, transform .15s ease;
    line-height: 0;
    flex-shrink: 0;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
}
.inloff-cart-page__item-remove:hover {
    color: var(--c-danger);
    background: rgba(208, 72, 72, 0.08);
    transform: scale(1.1);
}

/* EPO options */
.inloff-cart-page__item-epo {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
}
.inloff-cart-page__item-epo li {
    font-size: 12.5px;
    color: var(--c-text-soft);
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.inloff-cart-page__item-epo-key {
    font-weight: 500;
    color: var(--c-text-soft);
}
.inloff-cart-page__item-epo-val {
    color: var(--c-muted);
}

/* Stock indicator */
.inloff-cart-page__item-stock {
    margin: 0;
    padding: 6px 12px;
    background: var(--c-warn-bg);
    border-radius: 6px;
    color: var(--c-warn-text);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}
.inloff-cart-page__item-stock strong {
    font-weight: 700;
}
.inloff-cart-page__item-stock--oos {
    background: #FEF2F2;
    color: #991B1B;
    font-weight: 600;
}
.inloff-cart-page__item-stock--insufficient {
    background: #FFF4E6;
    color: #92400E;
    font-weight: 600;
}

/* Footer del item (qty + precio) */
.inloff-cart-page__item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

/* Qty stepper */
.inloff-cart-page__item-qty {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid #E0D8C8;
    border-radius: 999px;
    background: #FFFFFF;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inloff-cart-page__item-qty:focus-within {
    border-color: var(--c-heart);
    box-shadow: 0 0 0 3px rgba(197, 161, 132, 0.15);
}
.inloff-cart-page__item-qty-btn,
.inloff-cart-page .inloff-cart-page__item-qty-btn {
    box-sizing: border-box !important;
    width: 40px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--c-navy) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, transform 0.08s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}
.inloff-cart-page__item-qty-btn:hover {
    background: var(--c-cream) !important;
    color: var(--c-heart) !important;
}
.inloff-cart-page__item-qty-btn:active {
    transform: scale(0.92);
}
.inloff-cart-page__item-qty-input {
    box-sizing: border-box !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-left: 1px solid var(--c-border-soft) !important;
    border-right: 1px solid var(--c-border-soft) !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-navy);
    line-height: 38px !important;
    -webkit-appearance: none !important;
    appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
}
.inloff-cart-page__item-qty-input::-webkit-inner-spin-button,
.inloff-cart-page__item-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0;
}

.inloff-cart-page__item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-navy);
    white-space: nowrap;
}
.inloff-cart-page__item-price .amount {
    color: inherit;
}

/* Savings callout */
.inloff-cart-page__item-savings {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 14px;
    background: var(--c-success-bg);
    color: var(--c-success-text);
    border: 1px solid var(--c-success-border);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 100%;
}
.inloff-cart-page__item-savings svg {
    flex-shrink: 0;
    color: #2E7D32;
}
.inloff-cart-page__item-savings strong {
    font-weight: 700;
}
.inloff-cart-page__item-savings small {
    opacity: 0.85;
    font-size: 11.5px;
    margin-left: 2px;
}

/* ---------------------------------------------------------------------------
 * Acciones terciarias del item (inyectadas vía woocommerce_after_cart_item_name):
 * "Guardar en favoritos" (inloff-wishlist.php) + "Editar opciones" (EPO).
 * Por defecto el auto-placement del grid las metía en la columna del thumbnail
 * (120px) → el corazón se estiraba a 120px. Las reubicamos a la columna del body
 * como una fila de acciones discreta bajo una hairline. Fix C3.1.
 * ------------------------------------------------------------------------- */
.inloff-cart-page__item > .inloff-wl-cart-save,
.inloff-cart-page__item > .tm-cart-edit-options {
    grid-column: 2;
    align-self: start;
}
.inloff-cart-page__item > .inloff-wl-cart-save {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border-soft);
}
/* Defensivo: garantiza el tamaño del icono aunque cambie el orden de carga de CSS. */
.inloff-cart-page__item .inloff-wl-cart-save {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--inloff-bronze-text, #7E5E3B);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.inloff-cart-page__item .inloff-wl-cart-save:hover { color: var(--c-navy); }
.inloff-cart-page__item .inloff-wl-cart-save .inloff-ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
.inloff-cart-page__item > .tm-cart-edit-options {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--inloff-ink-soft, #4A4A4A);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.inloff-cart-page__item > .tm-cart-edit-options:hover { color: var(--c-navy); }

/* Actions (continuar comprando) */
.inloff-cart-page__actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.inloff-cart-page__continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-soft);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.inloff-cart-page__continue:hover {
    color: var(--c-heart);
    transform: translateX(-2px);
}
.inloff-cart-page__continue svg {
    transition: transform 0.2s ease;
}
.inloff-cart-page__continue:hover svg {
    transform: translateX(-2px);
}

/* ============================================================
   Summary column (sticky desktop)
   ============================================================ */
.inloff-cart-page__summary-col {
    position: sticky;
    top: 24px;
    min-width: 0;
}

@media (max-width: 980px) {
    .inloff-cart-page__summary-col {
        position: static;
    }
}

.inloff-cart-page__summary {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 4px 24px rgba(19, 26, 46, 0.06);
}

.inloff-cart-page__summary-title {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-navy);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border-soft);
}

.inloff-cart-page__summary-rows {
    margin: 0 0 18px;
    padding: 0;
}
.inloff-cart-page__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--c-text-soft);
}
.inloff-cart-page__summary-row dt {
    margin: 0;
    font-weight: 500;
}
.inloff-cart-page__summary-row dd {
    margin: 0;
    color: var(--c-navy);
    font-weight: 600;
    text-align: right;
}
.inloff-cart-page__summary-row--coupon dd {
    color: var(--c-success-text);
}
.inloff-cart-page__summary-row--coupon dd a {
    color: inherit;
    text-decoration: underline;
    font-size: 11px;
    margin-left: 8px;
}
.inloff-cart-page__summary-free {
    color: var(--c-success-text);
    font-weight: 700;
}
.inloff-cart-page__summary-tbd {
    color: var(--c-muted);
    font-weight: 500;
    font-size: 12.5px;
    font-style: italic;
}

/* ============================================================
   PENDING_PERSONALIZATION — estado pendiente por línea
   Un paso pendiente, no una alarma. Fondo cream-warm muy ligero (el
   "papel" de la marca), glifo pen heart, label navy, link heart con
   flecha micro. Mismo lenguaje que el sidecart, con más aire para el
   layout más amplio del /carrito/.
   ============================================================ */
.inloff-cart-page__item-pending {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    padding: 9px 12px;
    background: rgba(245, 239, 229, 0.6); /* cream-warm a 60% — apenas un velo */
    border: 0;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--c-navy, #1B2540);
}
.inloff-cart-page__item-pending-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--c-heart, #C5A184);
    opacity: 0.95;
}
.inloff-cart-page__item-pending-icon .inloff-ico { width: 14px; height: 14px; }
.inloff-cart-page__item-pending-text {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--c-navy, #1B2540);
    font-weight: 500;
    letter-spacing: 0.005em;
}
.inloff-cart-page__item-pending-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    color: var(--c-heart, #C5A184);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 2px;
    transition: color 160ms cubic-bezier(0.2, 0, 0, 1),
                transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
.inloff-cart-page__item-pending-cta:hover {
    color: #A4845F;
    text-decoration: none;
}
.inloff-cart-page__item-pending-cta:hover .inloff-cart-page__item-pending-arrow {
    transform: translateX(2px);
}
.inloff-cart-page__item-pending-cta:focus-visible {
    outline: 2px solid var(--c-heart, #C5A184);
    outline-offset: 3px;
    color: var(--c-heart, #C5A184);
}
.inloff-cart-page__item-pending-arrow {
    flex: 0 0 auto;
    transition: transform 160ms cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
    .inloff-cart-page__item-pending-cta,
    .inloff-cart-page__item-pending-arrow { transition: none; }
}

/* CTA "Finalizar compra" deshabilitado cuando hay pending */
.inloff-cart-page__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--c-text-soft, #8A8A8A) !important;
}

/* ============================================================
   Delivery widget (estimaciones de entrega via inloff-shipping-engine)
   ============================================================ */
.inloff-cart-page__delivery {
    list-style: none;
    margin: 14px 0 16px;
    padding: 14px 16px;
    background: var(--c-cream, #FAF7F2);
    border: 1px solid var(--c-border-soft);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.inloff-cart-page__delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text);
}
.inloff-cart-page__delivery-row + .inloff-cart-page__delivery-row {
    padding-top: 10px;
    border-top: 1px dashed var(--c-border-soft);
}
.inloff-cart-page__delivery-icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.2;
}
.inloff-cart-page__delivery-text {
    flex: 1;
}
.inloff-cart-page__delivery-text strong {
    color: var(--c-navy, #1B2540);
    font-weight: 700;
}
.inloff-cart-page__delivery-text small {
    display: inline;
    color: var(--c-text-soft);
    font-size: 11px;
    margin-left: 2px;
}
.inloff-cart-page__delivery-row--urgent .inloff-cart-page__delivery-text strong:first-child,
.inloff-cart-page__delivery-row--seasonal .inloff-cart-page__delivery-text strong:first-child {
    color: var(--inloff-bronze-text, #7E5E3B);
}
.inloff-cart-page__delivery-row--blocked {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    margin: -4px 0;
    padding: 8px 10px;
    color: #7F1D1D;
}
.inloff-cart-page__delivery-row--blocked .inloff-cart-page__delivery-text strong:first-child {
    color: #991B1B;
}

.inloff-cart-page__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-top: 2px solid var(--c-border-soft);
    margin-bottom: 18px;
}
.inloff-cart-page__klarna:empty {
    display: none;
}
.inloff-cart-page__klarna .inloff-klarna-msg {
    margin: -6px 0 18px;
}
.inloff-cart-page__summary-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-navy);
}
.inloff-cart-page__summary-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-navy);
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.inloff-cart-page__summary-total-value .amount {
    color: inherit;
}
.inloff-cart-page__summary-total-value small {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   Buttons
   ============================================================ */
.inloff-cart-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .12s ease, box-shadow .2s ease;
    line-height: 1.2;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    min-height: 0 !important;
}
.inloff-cart-page__btn--primary {
    background: var(--c-navy);
    color: #FFFFFF;
    border-color: var(--c-navy);
    box-shadow: 0 8px 22px rgba(27, 37, 64, 0.25);
}
.inloff-cart-page__btn--primary:hover {
    background: var(--c-navy-deep);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 37, 64, 0.3);
}
.inloff-cart-page__btn--primary:active {
    transform: translateY(0);
}
.inloff-cart-page__btn--primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}
.inloff-cart-page__btn--primary:hover::before {
    left: 130%;
}
.inloff-cart-page__btn--primary svg {
    transition: transform 0.25s cubic-bezier(.22, .61, .36, 1);
}
.inloff-cart-page__btn--primary:hover svg {
    transform: translateX(4px);
}
.inloff-cart-page__btn--cta {
    padding: 20px 24px;
    font-size: 14px;
}

/* ============================================================
   Express checkout (Apple Pay + Google Pay)
   ============================================================ */
.inloff-cart-page__express {
    margin: 0 0 14px;
}
/* (Link de Stripe oculto globalmente en inloff-tokens.css — Fix C3.3/O2.5.) */
/* El ECE inyecta divs placeholder (applePay/googlePay/link) AUNQUE no haya wallet
   disponible → :empty no basta. Keyeamos en la presencia de <iframe> de Apple/Google
   (Link queda oculto y NO debe contar para mantener el bloque abierto). CSS :has() es
   reactivo, así que colapsa/expande al vuelo. Fix C3.2. */
.inloff-cart-page__express:not(:has(#wc-stripe-express-checkout-element-applePay iframe, #wc-stripe-express-checkout-element-googlePay iframe)) {
    display: none;
}
.inloff-cart-page__express > * {
    min-height: 48px;
    border-radius: 10px;
    overflow: hidden;
}
/* Divider "o paga con tarjeta" — solo visible si hay express buttons encima */
.inloff-cart-page__express-divider {
    display: none;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--c-text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.inloff-cart-page__express:has(#wc-stripe-express-checkout-element-applePay iframe, #wc-stripe-express-checkout-element-googlePay iframe) + .inloff-cart-page__express-divider {
    display: flex;
}
.inloff-cart-page__express-divider::before,
.inloff-cart-page__express-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--c-border-soft);
}

/* ============================================================
   Coupon
   ============================================================ */
.inloff-cart-page__coupon {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--c-border-soft);
}
.inloff-cart-page__coupon-toggle {
    background: transparent;
    border: 0;
    color: var(--c-text-soft);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: color 0.15s ease;
}
.inloff-cart-page__coupon-toggle:hover {
    color: var(--c-heart);
}
.inloff-cart-page__coupon-form {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.inloff-cart-page__coupon-input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1px solid var(--c-border) !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    font-size: 13px;
    font-family: inherit;
    color: var(--c-navy);
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease;
}
.inloff-cart-page__coupon-input:focus {
    border-color: var(--c-heart) !important;
    box-shadow: 0 0 0 3px rgba(197, 161, 132, 0.15) !important;
}
.inloff-cart-page__coupon-apply,
.inloff-cart-page .inloff-cart-page__coupon-apply {
    box-sizing: border-box !important;
    height: 42px !important;
    min-height: 0 !important;
    padding: 0 18px !important;
    margin: 0 !important;
    background: var(--c-heart) !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    line-height: 1 !important;
    transition: background 0.15s ease;
    font-family: inherit;
}
.inloff-cart-page__coupon-apply:hover,
.inloff-cart-page .inloff-cart-page__coupon-apply:hover {
    background: var(--c-heart-light) !important;
}

/* ============================================================
   Trust badges
   ============================================================ */
.inloff-cart-page__trust {
    list-style: none;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--c-border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.inloff-cart-page__trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--c-text-soft);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.inloff-cart-page__trust svg {
    color: var(--c-heart);
    flex-shrink: 0;
}
.inloff-cart-page__trust-flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================================
   Empty state
   ============================================================ */
.inloff-cart-page__empty {
    text-align: center;
    padding: 80px 24px;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 14px;
}
.inloff-cart-page__empty-icon {
    color: var(--c-heart);
    margin-bottom: 24px;
    opacity: 0.75;
    animation: inloff-cp-floatY 3s ease-in-out infinite;
}
@keyframes inloff-cp-floatY {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}
.inloff-cart-page__empty-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    color: var(--c-navy);
    margin: 0 0 12px;
    line-height: 1.2;
}
.inloff-cart-page__empty-text {
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.5;
    margin: 0 0 30px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.inloff-cart-page__empty .inloff-cart-page__btn {
    width: auto;
    min-width: 240px;
}

/* Sugerencias en estado vacío — grid de bestsellers/featured */
.inloff-cart-page__empty-suggestions {
    margin: 56px 0 0;
    padding: 0;
    text-align: center;
}
.inloff-cart-page__empty-suggestions-title {
    font-family: var(--f-serif, "DM Serif Display", Georgia, serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--c-navy, #1B2540);
    margin: 0 0 24px;
}
.inloff-cart-page__empty-suggestions-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.inloff-cart-page__empty-suggestions-item {
    margin: 0;
}
.inloff-cart-page__empty-suggestions-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.inloff-cart-page__empty-suggestions-link:hover,
.inloff-cart-page__empty-suggestions-link:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}
.inloff-cart-page__empty-suggestions-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--c-cream, #FAF7F2);
}
.inloff-cart-page__empty-suggestions-name {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-text, #1B2540);
    font-weight: 500;
    margin-bottom: 4px;
}
.inloff-cart-page__empty-suggestions-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-heart, #C5A184);
}
.inloff-cart-page__empty-suggestions-price del {
    color: var(--c-text-soft, #8A8A8A);
    font-weight: 400;
    margin-right: 4px;
}

/* ============================================================
   Sticky bottom bar mobile
   ============================================================ */
.inloff-cart-page__sticky-mobile {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #FFFFFF;
    border-top: 1px solid var(--c-border);
    padding: 12px 18px max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(19, 26, 46, 0.12);
    align-items: center;
    gap: 14px;
}
@media (max-width: 980px) {
    .inloff-cart-page__sticky-mobile {
        display: flex;
    }
    .inloff-cart-page {
        padding-bottom: 100px;
    }
}
.inloff-cart-page__sticky-mobile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}
.inloff-cart-page__sticky-mobile-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    font-weight: 600;
}
.inloff-cart-page__sticky-mobile-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-navy);
}
.inloff-cart-page__sticky-mobile .inloff-cart-page__btn {
    flex: 1;
    max-width: 200px;
    padding: 14px 16px;
    font-size: 13px;
}

/* ============================================================
   Cross-sells (woocommerce_cart_collaterals)
   ============================================================ */
.inloff-cart-page__collaterals {
    margin-top: 56px;
}
.inloff-cart-page__collaterals .cross-sells {
    background: transparent;
}
.inloff-cart-page__collaterals .cross-sells > h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--c-navy);
    margin: 0 0 24px;
    text-align: center;
}
.inloff-cart-page__collaterals .cross-sells ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   Confeti (compartido con sidecart, host independiente)
   ============================================================ */
.inloff-cart-page__confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}
.inloff-cart-page__confetti-piece {
    position: absolute;
    border-radius: 1px;
    opacity: 0;
    will-change: transform, opacity;
}
.inloff-cart-page__confetti--active .inloff-cart-page__confetti-piece {
    animation: inloff-cp-confetti 1.8s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes inloff-cp-confetti {
    0%   { opacity: 1; transform: translate(0, 0) rotate(0deg); }
    100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 100vh)) rotate(var(--rot, 720deg)); }
}

/* ============================================================
   is-updating state (qty/remove en progreso) — optimistic UI
   ============================================================ */

/* Feedback visual al cambiar total / line-total tras AJAX.
   Transición sutil del color del texto al beige heart y vuelta al navy.
   Sin background, sin scale → no rompe layout, no es agresivo. */
.inloff-cart-page__summary-total-value.is-just-updated,
.inloff-cart-page__item-price.is-just-updated {
    animation: inloff-cart-text-shift 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes inloff-cart-text-shift {
    0%, 100% { color: inherit; }
    45%      { color: var(--c-heart, #C5A184); }
}

/* Stepper buttons disabled durante AJAX del item activo (data-busy=1). */
.inloff-cart-page__item[data-busy="1"] .inloff-cart-page__item-qty-btn,
.inloff-cart-page__item[data-busy="1"] [data-cart-remove] {
    pointer-events: none;
    opacity: 0.4;
    cursor: progress;
}
.inloff-cart-page__item[data-busy="1"] .inloff-cart-page__item-qty-input {
    color: var(--c-text-soft, #8A8A8A);
    cursor: progress;
}

/* ============================================================
   Email capture guest (recovery via Mautic)
   ============================================================ */
.inloff-cart-page__recovery {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #E6DECE;
}
.inloff-cart-page__recovery-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--c-navy, #1B2540);
    font-size: 13px;
    font-weight: 500;
    /* Override Flatsome button text-transform heredado en summary cards. */
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: color 0.14s ease;
}
.inloff-cart-page__recovery-toggle:hover {
    color: var(--c-heart, #C5A184);
}
.inloff-cart-page__recovery-form {
    margin-top: 8px;
}
.inloff-cart-page__recovery-help {
    font-size: 12px;
    color: #6E6759;
    margin: 0 0 8px;
    line-height: 1.4;
}
.inloff-cart-page__recovery-help a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.inloff-cart-page__recovery-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
    /* Permitir wrap si el sidebar es estrecho (input baja, botón debajo). */
    flex-wrap: wrap;
}
.inloff-cart-page__recovery-input {
    flex: 1 1 160px;
    /* min-width:0 deja que el input shrinkee dentro del flex y el botón
       siempre se vea entero. Sin esto el input default es min-content. */
    min-width: 0;
    padding: 8px 11px;
    border: 1px solid #DDD4C5;
    border-radius: 8px;
    background: #FFF;
    font-size: 13px;
    color: var(--c-navy, #1B2540);
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.inloff-cart-page__recovery-input:focus {
    outline: 0;
    border-color: var(--c-navy, #1B2540);
    box-shadow: 0 0 0 3px rgba(27, 37, 64, 0.08);
}
.inloff-cart-page__recovery-submit {
    appearance: none;
    border: 0;
    background: var(--c-navy, #1B2540);
    color: #FFF;
    padding: 0 14px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    /* Idéntico fix Flatsome — botón summary heredaría uppercase si no. */
    text-transform: none;
    letter-spacing: normal;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background-color 0.14s ease;
}
.inloff-cart-page__recovery-submit:hover {
    background: #2A3759;
}
.inloff-cart-page__recovery-submit:disabled {
    opacity: 0.6;
    cursor: progress;
}
.inloff-cart-page__recovery-status {
    margin: 8px 0 0;
    font-size: 12px;
    min-height: 16px;
    line-height: 1.4;
    color: #6E6759;
}
.inloff-cart-page__recovery-status[data-status="error"] {
    color: #B73838;
}
.inloff-cart-page__recovery-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    background: #F4EFE6;
    border-radius: 8px;
    font-size: 12px;
    color: var(--c-navy, #1B2540);
    line-height: 1.4;
}
.inloff-cart-page__recovery-saved svg {
    color: var(--c-heart, #C5A184);
    flex-shrink: 0;
}
.inloff-cart-page__recovery-saved strong {
    font-weight: 600;
}

/* Toast efímero para errores AJAX */
.inloff-cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    background: #7F1D1D;
    color: #FFF;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: calc(100vw - 32px);
    z-index: 99999;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transform: translateX(-50%) translateY(140%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}
.inloff-cart-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}

/* Toast undo (10s con botón "Deshacer" + countdown bar).
   Variante navy del toast — no es error, es acción reversible.
   Pointer-events restaurados porque tiene un botón clicable. */
.inloff-cart-toast--undo {
    background: var(--c-navy, #1B2540);
    padding: 0;
    overflow: hidden;
    min-width: 280px;
    pointer-events: auto;
}
.inloff-cart-toast--undo .inloff-cart-toast__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px 12px 18px;
}
.inloff-cart-toast--undo .inloff-cart-toast__msg {
    flex: 1 1 auto;
    color: #FFF;
    font-size: 13px;
    font-weight: 500;
}
.inloff-cart-toast--undo .inloff-cart-toast__undo-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: transparent;
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}
.inloff-cart-toast--undo .inloff-cart-toast__undo-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.48);
}
.inloff-cart-toast--undo .inloff-cart-toast__undo-btn:disabled {
    opacity: 0.5;
    cursor: progress;
}
.inloff-cart-toast--undo .inloff-cart-toast__undo-btn svg {
    flex-shrink: 0;
}
.inloff-cart-toast--undo .inloff-cart-toast__progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.inloff-cart-toast--undo .inloff-cart-toast__progress-fill {
    height: 100%;
    width: 100%;
    background: var(--c-heart, #C5A184);
    transition: width 10s linear;
    transform-origin: left;
}

/* ============================================================
   Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .inloff-cart-page {
        padding: 24px 16px 100px;
    }
    .inloff-cart-page__hero {
        margin: 0 0 22px;
    }
    .inloff-cart-page__title {
        font-size: 30px;
    }
    .inloff-cart-page__shipping-bar {
        padding: 14px 18px 16px;
        border-radius: 10px;
        margin-bottom: 22px;
    }
    .inloff-cart-page__item {
        grid-template-columns: 88px 1fr;
        column-gap: 14px;
        padding: 18px;
    }
    .inloff-cart-page__item-thumb {
        width: 88px;
        height: 88px;
    }
    .inloff-cart-page__item-name {
        font-size: 14.5px;
    }
    .inloff-cart-page__item-price {
        font-size: 16px;
    }
    .inloff-cart-page__summary {
        padding: 22px;
    }
    .inloff-cart-page__summary-total-value {
        font-size: 22px;
    }
}

/* ============================================================
   Cross-sells del cart — Amazon-style (.inloff-cs-section--cart)
   ============================================================
   Variante simplificada de los estilos PDP (inloff-pdp.css:1080-1442+).
   Sin .is-main ni .inloff-cs-item-thismark — en cart todos los items
   son recomendaciones puras. Paleta navy / cream / heart compartida.
*/
.inloff-cs-section--cart {
    margin: 48px 0 24px;
    padding: 0;
}
.inloff-cs-section--cart .inloff-cs-container {
    background: #FAF7F2;
    border: 1px solid #EDE6DB;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 2px rgba(27, 37, 64, 0.04);
}
.inloff-cs-section--cart .inloff-cs-title {
    font-family: var(--ff-display, 'Playfair Display', serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--c-navy, #1B2540);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}
.inloff-cs-section--cart .inloff-cs-top {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px dashed #E6DECE;
    margin-bottom: 14px;
}
.inloff-cs-section--cart .inloff-cs-images-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    flex-wrap: wrap;
}
.inloff-cs-section--cart .inloff-cs-plus {
    color: var(--c-heart, #C5A184);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    user-select: none;
}
.inloff-cs-section--cart .inloff-cs-image-card {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #FFF;
    transition: border-color 0.18s ease, transform 0.18s ease;
    text-decoration: none;
}
.inloff-cs-section--cart .inloff-cs-image-card:hover {
    border-color: var(--c-heart, #C5A184);
    transform: translateY(-2px);
}
.inloff-cs-section--cart .inloff-cs-image-card.is-checked {
    border-color: var(--c-navy, #1B2540);
}
.inloff-cs-section--cart .inloff-cs-image-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inloff-cs-section--cart .inloff-cs-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
    align-items: stretch;
}
.inloff-cs-section--cart .inloff-cs-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.inloff-cs-section--cart .inloff-cs-total-label {
    font-size: 12px;
    color: #6E6759;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.inloff-cs-section--cart .inloff-cs-total-amount,
.inloff-cs-section--cart .inloff-cs-total-amount .woocommerce-Price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-navy, #1B2540);
    font-variant-numeric: tabular-nums;
}
.inloff-cs-section--cart .inloff-cs-add-btn {
    appearance: none;
    border: 0;
    background: var(--c-navy, #1B2540);
    color: #FFF;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    transition: background-color 0.16s ease, opacity 0.16s ease;
    line-height: 1.25;
}
.inloff-cs-section--cart .inloff-cs-add-btn:hover {
    background: #2A3759;
}
.inloff-cs-section--cart .inloff-cs-add-btn.is-loading {
    opacity: 0.75;
    cursor: progress;
}
.inloff-cs-section--cart .inloff-cs-add-btn.is-disabled,
.inloff-cs-section--cart .inloff-cs-add-btn:disabled {
    background: #BDB6A8;
    cursor: not-allowed;
}
.inloff-cs-section--cart .inloff-cs-add-btn .btn-count {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.02em;
}
.inloff-cs-section--cart .inloff-cs-list {
    display: flex;
    flex-direction: column;
}
.inloff-cs-section--cart .inloff-cs-item {
    border-bottom: 1px solid #EDE6DB;
    transition: background-color 0.16s ease;
}
.inloff-cs-section--cart .inloff-cs-item:last-child {
    border-bottom: 0;
}
.inloff-cs-section--cart .inloff-cs-item:hover {
    background: #F4EFE6;
}
.inloff-cs-section--cart .inloff-cs-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    cursor: pointer;
    user-select: none;
}
.inloff-cs-section--cart .inloff-cs-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.inloff-cs-section--cart .inloff-cs-checkbox-visual {
    width: 18px;
    height: 18px;
    border: 1.5px solid #BDB6A8;
    border-radius: 4px;
    flex-shrink: 0;
    background: #FFF;
    position: relative;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}
.inloff-cs-section--cart .inloff-cs-checkbox-visual::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.16s ease;
}
.inloff-cs-section--cart .inloff-cs-item.is-checked .inloff-cs-checkbox-visual {
    background: var(--c-navy, #1B2540);
    border-color: var(--c-navy, #1B2540);
}
.inloff-cs-section--cart .inloff-cs-item.is-checked .inloff-cs-checkbox-visual::after {
    opacity: 1;
}
.inloff-cs-section--cart .inloff-cs-item-content {
    flex: 1 1 auto;
    min-width: 0;
}
.inloff-cs-section--cart .inloff-cs-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.inloff-cs-section--cart .inloff-cs-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-navy, #1B2540);
    line-height: 1.4;
}
.inloff-cs-section--cart .inloff-cs-perso-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--c-heart, #C5A184);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.inloff-cs-section--cart .inloff-cs-quantity-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.inloff-cs-section--cart .inloff-cs-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #BDB6A8;
    background: #FFF;
    color: var(--c-navy, #1B2540);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.14s ease, background-color 0.14s ease;
}
.inloff-cs-section--cart .inloff-cs-qty-btn:hover {
    border-color: var(--c-navy, #1B2540);
    background: #F4EFE6;
}
.inloff-cs-section--cart .inloff-cs-qty-input {
    width: 38px;
    text-align: center;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-navy, #1B2540);
    appearance: none;
    -moz-appearance: textfield;
    padding: 2px 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.inloff-cs-section--cart .inloff-cs-qty-input::-webkit-outer-spin-button,
.inloff-cs-section--cart .inloff-cs-qty-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}
.inloff-cs-section--cart .inloff-cs-item-price,
.inloff-cs-section--cart .inloff-cs-item-price .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-navy, #1B2540);
    flex-shrink: 0;
    min-width: 64px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.inloff-cs-section--cart .inloff-cs-item-price del {
    color: #9C9385;
    margin-right: 4px;
    font-weight: 500;
}
.inloff-cs-section--cart .inloff-cs-item-price ins {
    background: transparent;
    text-decoration: none;
}
.inloff-cs-section--cart .inloff-cs-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    background: #FFF;
    border: 1px solid #EDE6DB;
    border-radius: 8px;
    font-size: 12px;
    color: #6E6759;
    line-height: 1.5;
}
.inloff-cs-section--cart .inloff-cs-info-icon {
    color: var(--c-heart, #C5A184);
    flex-shrink: 0;
}

/* Modal personalización pendiente (compartido con PDP) */
.inloff-cs-section--cart .inloff-cs-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.inloff-cs-section--cart .inloff-cs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 37, 64, 0.55);
    backdrop-filter: blur(4px);
}
.inloff-cs-section--cart .inloff-cs-modal-content {
    position: relative;
    background: #FFF;
    border-radius: 14px;
    padding: 28px 28px 22px;
    max-width: 480px;
    width: calc(100% - 32px);
    z-index: 1;
    box-shadow: 0 16px 48px rgba(27, 37, 64, 0.25);
}
.inloff-cs-section--cart .inloff-cs-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #6E6759;
    cursor: pointer;
    padding: 6px;
}
.inloff-cs-section--cart .inloff-cs-modal-content h4 {
    margin: 0 0 8px;
    font-family: var(--ff-display, 'Playfair Display', serif);
    font-size: 20px;
    color: var(--c-navy, #1B2540);
}
.inloff-cs-section--cart .inloff-cs-modal-content p {
    color: #4A4538;
    font-size: 14px;
    margin: 0 0 14px;
    line-height: 1.5;
}
.inloff-cs-section--cart .inloff-cs-modal-pending {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.inloff-cs-section--cart .inloff-cs-pending-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #FAF7F2;
    border: 1px solid #EDE6DB;
    border-radius: 8px;
}
.inloff-cs-section--cart .inloff-cs-pending-title {
    font-size: 14px;
    color: var(--c-navy, #1B2540);
    font-weight: 500;
}
.inloff-cs-section--cart .inloff-cs-pending-cta {
    background: var(--c-navy, #1B2540);
    color: #FFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.16s ease;
}
.inloff-cs-section--cart .inloff-cs-pending-cta:hover {
    background: #2A3759;
}
.inloff-cs-section--cart .inloff-cs-modal-help {
    font-size: 12px !important;
    color: #6E6759 !important;
    margin: 0 !important;
}
body.inloff-cs-modal-open {
    overflow: hidden;
}

/* Toast (cross-sells del cart específicamente) */
.inloff-cs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 24px);
    z-index: 99999;
    background: var(--c-navy, #1B2540);
    color: #FFF;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(27, 37, 64, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 32px);
}
.inloff-cs-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.inloff-cs-toast.inloff-cs-toast-error {
    background: #B73838;
}

/* Mobile: top row stack, qty selector más compacto */
@media (max-width: 640px) {
    .inloff-cs-section--cart .inloff-cs-container {
        padding: 18px 16px;
    }
    .inloff-cs-section--cart .inloff-cs-top {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .inloff-cs-section--cart .inloff-cs-summary {
        align-items: stretch;
        min-width: 0;
    }
    .inloff-cs-section--cart .inloff-cs-total {
        align-items: flex-start;
    }
    .inloff-cs-section--cart .inloff-cs-image-card {
        width: 64px;
        height: 64px;
    }
    .inloff-cs-section--cart .inloff-cs-title {
        font-size: 18px;
    }
}

/* Reduced motion: reuso del bloque global de abajo. */

/* ============================================================
   Quote founder reposicionada en /carrito/ (item 18 V2)
   ============================================================
   Aparece entre items+summary y cross-sells. Estilos paralelos a los del
   footer editorial pero sin invertir colores (cart tiene fondo claro).
*/
.inloff-cart-page__editorial {
    margin: 56px auto 32px;
    max-width: 720px;
    padding: 0 24px;
    text-align: center;
    color: var(--c-navy, #1B2540);
}
.inloff-cart-page__editorial-flourish {
    display: block;
    margin: 0 auto 18px;
    opacity: 0.85;
}
.inloff-cart-page__editorial-quote {
    position: relative;
    margin: 0 auto;
    padding: 0 32px;
    font-family: var(--ff-display, 'Playfair Display', serif);
    font-size: 20px;
    line-height: 1.55;
    font-style: italic;
    color: #2A3759;
    font-weight: 400;
    letter-spacing: -0.005em;
    quotes: none;
}
.inloff-cart-page__editorial-quote-mark {
    position: absolute;
    top: -16px;
    left: 0;
    font-family: var(--ff-display, 'Playfair Display', serif);
    font-size: 56px;
    line-height: 1;
    color: var(--inloff-bronze-text, #7E5E3B);
    opacity: 0.7;
    font-style: normal;
}
.inloff-cart-page__editorial-signature {
    margin: 16px 0 0;
    font-family: var(--ff-display, 'Playfair Display', serif);
    font-size: 13px;
    font-style: italic;
    color: #6E6759;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.inloff-cart-page__editorial-dash {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--c-heart, #C5A184);
}

@media (max-width: 640px) {
    .inloff-cart-page__editorial {
        margin: 40px auto 24px;
        padding: 0 16px;
    }
    .inloff-cart-page__editorial-quote {
        font-size: 17px;
        padding: 0 18px;
    }
    .inloff-cart-page__editorial-quote-mark {
        font-size: 42px;
        top: -10px;
    }
}


/* ============================================================
   Mobile cart — ocultar flotantes que colisionan con sticky bar
   ============================================================
   En /carrito/ mobile la sticky bar inferior ocupa ~80px del viewport.
   El bubble de Chatwoot y el botón revisit de CookieYes flotan en bottom-
   right/left y se solapan visualmente con la sticky bar + dificultan el
   click del CTA. Ocultos sólo en /carrito/ mobile (resto del site intactos).

   `!important` necesario porque ambos plugins inyectan inline styles via JS.
*/
@media (max-width: 980px) {
    body.woocommerce-cart .woot-widget-bubble,
    body.woocommerce-cart #cw-widget-holder,
    body.woocommerce-cart .woot--bubble-holder,
    body.woocommerce-cart .cky-revisit-bottom-left,
    body.woocommerce-cart .cky-revisit-bottom-right,
    body.woocommerce-cart .cky-btn-revisit-wrapper {
        display: none !important;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .inloff-cart-page__shipping-fill::after,
    .inloff-cart-page__shipping-emoji,
    .inloff-cart-page__empty-icon,
    .inloff-cart-page__confetti-piece,
    .inloff-cart-page__item {
        animation: none !important;
    }
    .inloff-cart-page__item-thumb a,
    .inloff-cart-page__btn,
    .inloff-cart-page__item-remove,
    .inloff-cart-page__shipping-bar {
        transition: none !important;
    }
    .inloff-cs-section--cart .inloff-cs-image-card,
    .inloff-cs-section--cart .inloff-cs-add-btn,
    .inloff-cs-section--cart .inloff-cs-checkbox-visual {
        transition: none !important;
    }
}
