/* =========================================================
   Mini Cart Drawer — Revedoux
   ========================================================= */

   #rvx-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999997;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
    touch-action: none;
}
#rvx-mini-cart-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.rvx-mcd {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 92vw;
    background: #fff;
    z-index: 999998;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    font-family: Inter, Arial, sans-serif;
    overscroll-behavior: contain;
}
.rvx-mcd.is-open {
    transform: translateX(0);
}
html.rvx-mcd-lock { overflow: hidden; overscroll-behavior: none; }
body.rvx-mcd-lock { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
/* ---------- Header ---------- */
.rvx-mcd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.rvx-mcd-header h2 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    color: #111;
}
.rvx-mcd-close {
    background: none;
    border: none;
    line-height: 1;
    cursor: pointer;
    color: #222;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rvx-mcd-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain; 
    -webkit-overflow-scrolling: touch; 
    padding: 0 22px;
    display: flex;
    flex-direction: column;
}

/* ---------- Estado vacío ---------- */
.rvx-mcd-zero-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 36px 60px;
}
.rvx-mcd-zero-icon {
    color: #222;
    margin-bottom: 22px;
}
.rvx-mcd-zero-icon svg {
    display: block;
}
.rvx-mcd-zero-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}
.rvx-mcd-zero-text {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 26px;
    max-width: 280px;
}
.rvx-mcd-zero-btn {
    display: inline-block;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    padding: 15px 34px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 6px;
}

/* ---------- Progreso ---------- */
.rvx-mcd-progress-wrapper {
    padding: 18px 4px 34px;
    margin-bottom: 15px;
}
.rvx-mcd-progress-text {
    text-align: center;
    font-size: 13.5px;
    color: #333;
    margin: 0 0 42px;
}
.rvx-mcd-progress-text strong {
    font-weight: 700;
}
.rvx-mcd-progress-complete {
    color: #1a9c56;
    font-weight: 600;
}

.rvx-mcd-progress-bar {
    position: relative;
    height: 8px;
    background: #e6e6e6;
    border-radius: 4px;
    margin: 0 20px;
}
.rvx-mcd-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #111;
    border-radius: 4px;
    transition: width .3s ease;
}

.rvx-mcd-milestone {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 40px;
}
.rvx-mcd-milestone-icon {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    position: relative;
    color: #9a9fae;
}
.rvx-mcd-milestone-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}
.rvx-mcd-milestone.is-active .rvx-mcd-milestone-icon {
    background: #111;
    border-color: #111;
    color: #fff;
}
.rvx-mcd-milestone-label {
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
    color: #666;
    white-space: nowrap;
}

/* ---------- Items ---------- */
.rvx-mcd-empty {
    text-align: center;
    color: #777;
    padding: 40px 0;
}
.rvx-mcd-item {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 0;
}
.rvx-mcd-item-remove {
    position: absolute;
    top: 10px;
    left: 4px;
    background: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rvx-mcd-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f4;
    margin-left: 14px;
}
.rvx-mcd-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rvx-mcd-item-info {
    flex: 1;
    min-width: 0;
}
.rvx-mcd-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px;
}
.rvx-mcd-gift-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #eafbe7;
    color: #1a9c56;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}
.rvx-mcd-item-meta {
    font-size: 12.5px;
    color: #888;
    margin: 0 0 8px;
}
.rvx-mcd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}
.rvx-mcd-qty button {
    background: #fafafa;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 15px;
    cursor: pointer;
    color: #333;
}
.rvx-mcd-qty-input {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 28px;
    font-size: 13px;
    -moz-appearance: textfield;
}
.rvx-mcd-qty-input::-webkit-outer-spin-button,
.rvx-mcd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.rvx-mcd-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}
.rvx-mcd-gift-price {
    color: #1a9c56;
    font-weight: 700;
}

/* ---------- Cupón ---------- */
.rvx-mcd-coupon {
    margin-top: auto;
    padding: 16px 0;
    margin-top: 6px;
}
.rvx-mcd-coupon-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    font-size: 13.5px;
    color: #222;
    cursor: pointer;
    padding: 0;
}
.rvx-mcd-coupon-arrow {
    transition: transform .2s ease;
}
.rvx-mcd-coupon.is-collapsed .rvx-mcd-coupon-arrow {
    transform: rotate(180deg);
}
.rvx-mcd-coupon-body {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-height: 60px;
    overflow: hidden;
    transition: max-height .25s ease, margin-top .25s ease;
}
.rvx-mcd-coupon.is-collapsed .rvx-mcd-coupon-body {
    max-height: 0;
    margin-top: 0;
}
.rvx-mcd-coupon-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px;
    height: 42px;
    font-size: 13px;
}
.rvx-mcd-coupon-apply {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
}
.rvx-mcd-coupon-message {
    font-size: 12.5px;
    margin: 8px 0 0;
    color: #c0392b;
}
.rvx-mcd-coupon-message.is-success {
    color: #1a9c56;
}

/* ---------- Footer ---------- */
.rvx-mcd-footer {
    flex-shrink: 0;
    padding: 18px 22px 22px;
    border-top: 1px solid #eee;
}
.rvx-mcd-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    color: #111;
    margin-bottom: 8px;
}
.rvx-mcd-subtotal strong {
    font-weight: 700;
}
.rvx-mcd-note {
    font-size: 11.5px;
    color: #999;
    margin: 0 0 16px;
    line-height: 1.4;
}
.rvx-mcd-note-link {
    color: #2b6cb0; /* cambia este hex al color que quieras */
    text-decoration: underline;
}
.rvx-mcd-note-link:hover {
    color: #1a4d85;
}


.rvx-mcd-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    padding: 15px 0;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 6px;
    box-sizing: border-box;
}
.rvx-mcd-continue {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: #333;
    font-size: 12.5px;
    text-decoration: underline;
    margin-top: 14px;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .rvx-mcd { width: 100%; max-width: 100vw; }
}


:root {
    --rvx-badge-color: #21c4dd;
}

.rvx-mcd-icon-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.rvx-mcd-icon-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50%;
    background: var(--rvx-badge-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}

.rvx-mcd-icon-badge.is-zero {
    display: none; /* oculta el badge si el carrito está vacío; quita esta regla si prefieres mostrar el "0" siempre */
}


.rvx-mcd-icon-trigger svg {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 480px) {
    .rvx-mcd-icon-trigger svg {
        width: 24px;
        height: 24px;
    }
}


/* Precio con descuento por producto */
.rvx-mcd-item-price-now {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}
.rvx-mcd-item-price-was {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
    margin-top: 2px;
}

/* Filas de Descuentos y Total en el footer */
.rvx-mcd-discount-row,
.rvx-mcd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #111;
    margin-bottom: 8px;
}
.rvx-mcd-discount-row strong {
    color: #1a9c56; /* verde, igual que en tu referencia */
    font-weight: 700;
}
.rvx-mcd-total-row strong {
    font-weight: 700;
}


/* ---------- Fila de envío ---------- */
.rvx-mcd-shipping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #111;
    margin-bottom: 8px;
}
.rvx-mcd-shipping-label {
    display: inline-flex;
    align-items: center;
}
.rvx-mcd-shipping-free {
    color: #1a9c56;
    font-weight: 700;
}

/* ---------- Ícono + tooltip de info ---------- */
.rvx-mcd-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    color: #999;
    cursor: pointer;
    vertical-align: middle;
}
.rvx-mcd-info-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.rvx-mcd-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    transform: translateY(4px);
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 8px;
    width: 180px;
    max-width: min(230px, calc(100vw - 60px));
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 5;
}
.rvx-mcd-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

/* Hover (desktop) */
.rvx-mcd-info-icon:hover .rvx-mcd-tooltip,
/* Tap (móvil, vía JS) */
.rvx-mcd-info-icon.is-active .rvx-mcd-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* ---------- Aviso de cantidad no disponible ---------- */
.rvx-mcd-toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 420px;
    margin: 0 auto;
    background: #FF595E;
    color: #fff;
    padding: 16px 42px 16px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    z-index: 1000000;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.rvx-mcd-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.rvx-mcd-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 480px) {
    .rvx-mcd-toast { max-width: none; }
}


/* =====================================================================
   Mini carrito — animación de abrir/cerrar con @keyframes
   Misma técnica que el buscador lateral (rvx-search-drawer.css).

   Por qué keyframes y no transition: una transición solo corre si el
   elemento YA estaba pintado en su estado "cerrado". Cuando WooCommerce
   reemplaza el carrito (fragments) y se añade .is-open en el mismo
   instante, no hay estado previo y el panel aparece sin animar.
   Un @keyframes arranca siempre que se aplica la clase.
===================================================================== */

/* ---------- Fondo oscuro ---------- */
#rvx-mini-cart-overlay {
    opacity: 0;
    visibility: hidden;
    transition: none;
}
#rvx-mini-cart-overlay.is-open,
#rvx-mini-cart-overlay.is-closing { visibility: visible; }
#rvx-mini-cart-overlay.is-open    { animation: rvx-mcd-fade-in .4s ease both; }
#rvx-mini-cart-overlay.is-closing { animation: rvx-mcd-fade-out .35s ease both; pointer-events: none; }

/* ---------- Panel ---------- */
.rvx-mcd {
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    transition: none;
    will-change: transform;
}
.rvx-mcd.is-open,
.rvx-mcd.is-closing {
    visibility: visible;
    box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .35);
}
.rvx-mcd.is-open {
    transform: translate3d(0, 0, 0);
    animation: rvx-mcd-in .55s cubic-bezier(.22, 1, .36, 1) both;
}
.rvx-mcd.is-closing {
    animation: rvx-mcd-out .42s cubic-bezier(.4, 0, .2, 1) both;
    pointer-events: none;
}

/* Contenedor interno: es lo que reemplazan los fragments (el panel nunca se
   reemplaza, así que no se reinicia la animación ni se pierde is-open). */
.rvx-mcd-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

@keyframes rvx-mcd-in  { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes rvx-mcd-out {
    from { transform: translate3d(0, 0, 0); opacity: 1; }
    to   { transform: translate3d(100%, 0, 0); opacity: .35; }
}
@keyframes rvx-mcd-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rvx-mcd-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Escritorio: al bloquear el scroll desaparece la barra y la página "salta"
   unos píxeles a la derecha. Reservar el espacio evita ese salto. */
html.rvx-mcd-lock { scrollbar-gutter: stable; }

/* Accesibilidad: con "reducir movimiento" activo en el sistema, el panel sigue
   deslizándose desde la derecha, solo que más rápido.
   (Antes aquí había solo un fundido: por eso en algunos equipos de escritorio
   no se veía el deslizamiento.) Si prefieres que se vea igual para todos,
   borra este bloque completo. */
@media (prefers-reduced-motion: reduce) {
    .rvx-mcd.is-open    { animation-duration: .25s; }
    .rvx-mcd.is-closing { animation-duration: .2s; }
    #rvx-mini-cart-overlay.is-open    { animation-duration: .2s; }
    #rvx-mini-cart-overlay.is-closing { animation-duration: .2s; }
}


/* =====================================================================
   Scroll fino y botón de cerrar (estilo de la referencia)
   - Scroll: 7 px, pulgar redondeado gris cálido (#dad9d6), pista transparente,
     sin flechas, pegado al borde derecho del panel.
   - Botón X: cuadrado de 30 px, fondo #f2f2f2, esquinas de 6 px, X fina gris.
===================================================================== */

/* ---------- Scroll del cuerpo del carrito ---------- */
.rvx-mcd-body::-webkit-scrollbar          { width: 7px; height: 7px; }
.rvx-mcd-body::-webkit-scrollbar-track    { background: transparent; }
.rvx-mcd-body::-webkit-scrollbar-thumb    { background: #dad9d6; border-radius: 4px; }
.rvx-mcd-body::-webkit-scrollbar-thumb:hover { background: #c4c3bf; }
.rvx-mcd-body::-webkit-scrollbar-button   { display: none; width: 0; height: 0; } /* quita las flechas */

/* Firefox (y navegadores sin ::-webkit-scrollbar). Se separa con @supports porque
   Chrome ignora ::-webkit-scrollbar si encuentra scrollbar-width/scrollbar-color. */
@supports not selector(::-webkit-scrollbar) {
    .rvx-mcd-body {
        scrollbar-width: thin;
        scrollbar-color: #dad9d6 transparent;
    }
}

/* ---------- Botón de cerrar ---------- */
/* Doble clase (.rvx-mcd .rvx-mcd-close) para ganarle a los estilos de botón
   de Hello Elementor ([type=button]:hover, etc.). */
.rvx-mcd .rvx-mcd-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f2f2f2;
    color: #848482;
    box-shadow: none;
    transition: background-color .2s ease, color .2s ease;
}
.rvx-mcd .rvx-mcd-close svg {
    width: 18px;   /* la X mide ~12 px, como en la referencia */
    height: 18px;
    display: block;
}
.rvx-mcd .rvx-mcd-close:hover,
.rvx-mcd .rvx-mcd-close:focus {
    background: #e8e8e8;
    color: #333;
}
.rvx-mcd .rvx-mcd-close:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}


/* =====================================================================
   Fondo gris claro del cuerpo + barra de progreso dentro de una tarjeta
   (estilo de la referencia: cabecera y pie blancos, cuerpo #f9f9f9,
   tarjeta blanca con borde #ececec y esquinas redondeadas)
===================================================================== */

/* ---------- Fondo del cuerpo ---------- 
.rvx-mcd-body {
    background: #f9f9f9;
}
*/
/* ---------- Tarjeta de la barra de progreso ---------- */
.rvx-mcd-progress-wrapper {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 18px 14px 54px;   /* abajo: sitio para las etiquetas de los hitos ("Envío Gratis", etc.) */
    margin: 16px 0 6px;
}
.rvx-mcd-progress-bar {
    margin: 0 26px;            /* margen para que los íconos de los extremos no toquen el borde */
}

/* ---------- Controles que antes eran casi blancos sobre blanco ---------- */
.rvx-mcd-qty,
.rvx-mcd-qty button,
.rvx-mcd-qty-input,
.rvx-mcd-coupon-input {
    background: #fff;
}

/* =========================================================
   FOOTER — nuevo diseño (Envío → línea → Total → botón con precio)
   ========================================================= */
.rvx-mcd-footer {
    padding: 16px 22px 20px;
}
.rvx-mcd-summary {
    margin-bottom: 18px;
}
.rvx-mcd-summary .rvx-mcd-shipping-row,
.rvx-mcd-summary .rvx-mcd-discount-row {
    font-size: 14px;
    color: #444;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5; /* línea separadora bajo Envío / Descuentos */
}
.rvx-mcd-summary .rvx-mcd-shipping-row strong,
.rvx-mcd-summary .rvx-mcd-discount-row strong {
    font-weight: 700;
}
.rvx-mcd-summary .rvx-mcd-discount-row {
    padding-top: 8px;
}
/* si hay descuento, solo la última fila antes del total lleva línea */
.rvx-mcd-summary .rvx-mcd-shipping-row:has(+ .rvx-mcd-discount-row) {
    border-bottom: 0;
    padding-bottom: 0;
}
.rvx-mcd-shipping-calc {
    font-size: 13px;
    color: #777;
}
.rvx-mcd-summary .rvx-mcd-total-row {
    font-size: 17px;
    color: #333;
    margin: 0;
    padding-top: 12px;
}
.rvx-mcd-summary .rvx-mcd-total-row strong {
    font-size: 17px;
    color: #111;
    font-weight: 700;
}

/* Nota del cupón con ícono */
.rvx-mcd-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.4;
}
.rvx-mcd-note-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: #111;
}
.rvx-mcd-note-icon svg {
    width: 18px;
    height: 18px;
}

/* Botón principal con precio */
.rvx-mcd-checkout-btn {
    padding: 14px 0;
    font-size: 14px;
    letter-spacing: .02em;
    border-radius: 6px;
}
.rvx-mcd-checkout-btn .amount,
.rvx-mcd-checkout-btn .woocommerce-Price-amount,
.rvx-mcd-checkout-btn bdi {
    color: inherit;
    font-weight: inherit;
}
.rvx-mcd-checkout-dot {
    margin: 0 4px;
    opacity: .6;
}

/* Continuar comprando (misma posición/espaciado que "Ver carrito" de la referencia) */
.rvx-mcd-footer .rvx-mcd-continue {
    margin-top: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}
.rvx-mcd-footer .rvx-mcd-continue:hover { opacity: .7; }

/* Compra segura */
.rvx-mcd-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 22px 0 0;
    font-size: 12px;
    color: #777;
}
.rvx-mcd-secure svg { flex: 0 0 auto; color: #555; }


/* =========================================================
   Efecto gris (cuerpo) / blanco (header y footer)
   ========================================================= */
//*.rvx-mcd-body {
    background: #f7f7f7;
}
    */
.rvx-mcd-header {
    background: #fff;
}
.rvx-mcd-footer {
    position: relative;
    z-index: 1;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -8px 18px -10px rgba(0, 0, 0, .12);
}

.rvx-mcd-note strong {
    font-weight: 700;
    color: #111;
}


/* =========================================================
   Spinner de carga SOLO en la tarjeta del producto que cambia
   (al sumar/restar cantidad o quitar). El resto del carrito no se bloquea.
   ========================================================= */
.rvx-mcd-item.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 247, .72);  /* mismo gris del cuerpo */
    border-radius: 8px;
    z-index: 4;
    pointer-events: none;     /* se puede seguir pulsando +/- sin esperar */
    opacity: 0;
    animation: rvx-mcd-veil-in .15s ease .08s forwards; /* leve retraso: evita parpadeo en respuestas rápidas */
}
.rvx-mcd-item.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #d9d9d9;
    border-top-color: #111;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation:
        rvx-mcd-veil-in .15s ease .08s forwards,
        rvx-mcd-spin .7s linear infinite;
}
@keyframes rvx-mcd-veil-in { to { opacity: 1; } }
@keyframes rvx-mcd-spin    { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .rvx-mcd-item.is-loading::after {
        animation: rvx-mcd-veil-in .15s ease .08s forwards, rvx-mcd-spin 1.6s linear infinite;
    }
}

/* =====================================================================
   NUEVO DISEÑO — Selector de cantidad (pastilla) y barra de ENVÍO GRATIS
   ===================================================================== */

/* ---------- Cantidad: pastilla redondeada con botones circulares ---------- */
.rvx-mcd-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    overflow: visible;
    width: fit-content;
}
.rvx-mcd-qty .rvx-mcd-qty-minus,
.rvx-mcd-qty .rvx-mcd-qty-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    background: #e8e8ea;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.rvx-mcd-qty .rvx-mcd-qty-minus:hover,
.rvx-mcd-qty .rvx-mcd-qty-plus:hover {
    background: #dcdcdf;
}
.rvx-mcd-qty .rvx-mcd-qty-minus:active,
.rvx-mcd-qty .rvx-mcd-qty-plus:active {
    transform: scale(.92);
}
.rvx-mcd-qty .rvx-mcd-qty-input {
    width: 34px;
    height: 30px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* ---------- Envío gratis: caja gris + barra amarilla con camión ---------- */
.rvx-mcd-freeship {
    background: #efefef;
    border-radius: 8px;
    padding: 14px 16px 16px;
    margin: 16px 0 6px;
}
.rvx-mcd-freeship-text {
    margin: 0 0 14px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.35;
    color: #222;
}
.rvx-mcd-freeship-text strong {
    font-weight: 700;
}
.rvx-mcd-freeship-track {
    position: relative;
    height: 10px;
    margin: 0 18px;               /* espacio para que el camión no se salga en los extremos */
    background: #e3e5ea;
    border-radius: 999px;
}
.rvx-mcd-freeship-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #21C4DD 0%, #00AFCB 100%);
    border-radius: 999px;
    transition: width .35s ease;
}
.rvx-mcd-freeship-knob {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: left .35s ease;
}
.rvx-mcd-freeship-knob svg {
    width: 15px;
    height: 15px;
    display: block;
}
.rvx-mcd-freeship.is-complete .rvx-mcd-freeship-text {
    color: #1a9c56;
    font-weight: 600;
}

/* Íconos SVG de + y − dentro de la pastilla de cantidad */
.rvx-mcd-qty .rvx-mcd-qty-minus svg,
.rvx-mcd-qty .rvx-mcd-qty-plus svg {
    width: 14px;
    height: 14px;
    display: block;
    pointer-events: none; /* el clic siempre llega al botón (el JS usa e.target.closest) */
}

/* =========================================================
   Ventana flotante de carrito vacío (pastilla compacta)
   ========================================================= */
   .rvx-ep {
    --ep-bg: #fff;
    --ep-ink: #111;

    position: fixed;
    top: var(--ep-top, 70px);
    right: var(--ep-right, 12px);
    z-index: 999990;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 24px);
    background: var(--ep-bg);
    color: var(--ep-ink);
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .18);
    font-family: inherit;
    outline: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.rvx-ep.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.rvx-ep-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
}

.rvx-ep-inner svg {
    display: block;
    flex: none;
    width: 22px;
    height: 22px;
}

.rvx-ep-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---- Versión OSCURA: descomenta ----
.rvx-ep {
    --ep-bg: #000;
    --ep-ink: #fff;
}
*/

/* ---- Si en móvil la quieres pegada al borde IZQUIERDO de la pantalla: descomenta ----
@media (max-width: 640px) {
    .rvx-ep { right: auto; left: 12px; }
}
*/

@media (prefers-reduced-motion: reduce) {
    .rvx-ep { transition: none; }
}