/* input(496,14): run-time error CSS1030: Expected identifier, found '.'
input(496,27): run-time error CSS1025: Expected comma or open brace, found ')' */
/* ==========================================================================
   LISTA COMPARTIDA — lo que ve el cliente al abrir la liga de un carrito a la medida
   (Views/ShoppingCart/Wishlistname.cshtml, 2026-10-20). Prefijo vvl-.
   La tarjeta del LIV (vv-liv) y la pregunta de reemplazar o agregar (vv-choice) siguen en
   modern-refresh.css. La vista trae estilos viejos en línea (.wishlist-page h2 en blanco con
   sombra, .buttons, tbody…): aquí se pisan los que tocan a esta pantalla.
   ========================================================================== */

.vvl-page .vvl {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 16px 56px;
    font-family: var(--mr-font);
    color: var(--mr-text);
}

.vvl-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- encabezado --- */
.vvl-head {
    margin: 0 0 24px;
}

.vvl-head__eyeb {
    display: inline-block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mr-purple-light);
}

.vvl-page .vvl-head__title {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mr-text);
    text-transform: none;
    word-break: break-word;
}

.vvl-head__intro {
    max-width: 640px;
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mr-text-muted);
}

.vvl-alert {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: var(--mr-radius-sm);
    background: #fdecec;
    color: #b42318;
    font-size: 14px;
}

.vvl-alert ul {
    margin: 0;
    padding-left: 18px;
}

/* --- dos columnas: productos y resumen --- */
.vvl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.vvl-items__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.vvl-page .vvl-items__title {
    position: static !important;
    display: block !important;
    margin: 0;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--mr-text) !important;
    text-shadow: none !important;
    text-transform: none;
}

.vvl-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mr-text);
    cursor: pointer;
}

.vvl-all input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--mr-purple);
}

/* --- cada producto --- */
.vvl-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vvl-item {
    display: grid;
    grid-template-columns: auto 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    background: var(--mr-surface);
    box-shadow: var(--mr-shadow-sm);
    transition: border-color .2s, box-shadow .2s;
}

.vvl-item:hover {
    box-shadow: var(--mr-shadow);
}

.vvl-item.is-warn {
    border-color: #f3c6c6;
}

.vvl-item.is-off .vvl-item__pic,
.vvl-item.is-off .vvl-item__body,
.vvl-item.is-off .vvl-item__nums {
    opacity: .45;
}

/* casilla propia: grande para el pulgar */
.vvl-item__pick {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -10px -6px -10px -10px;
    cursor: pointer;
}

.vvl-item__pick input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.vvl-item__box {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid #c9c4d3;
    border-radius: 7px;
    background: #fff;
    transition: background .15s, border-color .15s;
}

.vvl-item__pick input:checked + .vvl-item__box {
    border-color: var(--mr-purple);
    background: var(--mr-purple);
}

.vvl-item__pick input:checked + .vvl-item__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.vvl-item__pick input:disabled,
.vvl-item__pick input:disabled + .vvl-item__box {
    cursor: not-allowed;
}

.vvl-item__pick input:disabled + .vvl-item__box {
    border-color: #e3dfe9;
    background: #f5f3f8;
}

/* el aviso se lee entero aunque el producto salga apagado */
.vvl-item.is-warn .vvl-item__body {
    opacity: 1;
}

.vvl-item.is-warn .vvl-item__name,
.vvl-item.is-warn .vvl-item__attrs {
    opacity: .6;
}

.vvl-item__pick input:focus-visible + .vvl-item__box {
    box-shadow: 0 0 0 3px rgba(106, 63, 181, .35);
}

.vvl-item__pic {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    background: var(--mr-surface-alt);
    overflow: hidden;
}

.vvl-item__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vvl-item__body {
    min-width: 0;
}

.vvl-item__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mr-purple);
    text-decoration: none;
}

.vvl-item__name:hover {
    color: var(--mr-purple-light);
}

.vvl-item__attrs,
.vvl-item__sku {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mr-text-muted);
}

.vvl-item__warn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fdecec;
    color: #b42318;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
}

.vvl-item__warn svg {
    flex: none;
}

.vvl-item__nums {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    white-space: nowrap;
}

.vvl-item__total {
    font-size: 16px;
    font-weight: 600;
    color: var(--mr-text);
}

.vvl-item__unit,
.vvl-item__disc {
    font-size: 12.5px;
    color: var(--mr-text-muted);
}

.vvl-item__disc {
    color: #1f7a4d;
}

/* --- columna derecha: LIV y resumen --- */
.vvl-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 16px;
}

.vvl-side .vv-liv {
    margin: 0;
}

.vvl-sum {
    padding: 20px;
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    background: var(--mr-surface);
    box-shadow: var(--mr-shadow-sm);
}

.vvl-sum__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.vvl-sum__label {
    font-size: 14px;
    color: var(--mr-text-muted);
}

.vvl-sum__row--total {
    margin: 10px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--mr-border);
}

.vvl-sum__row--total .vvl-sum__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--mr-text);
}

.vvl-sum__total {
    font-size: 22px;
    font-weight: 700;
    color: var(--mr-purple-dark);
    white-space: nowrap;
}

.vvl-sum__note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--mr-text-muted);
}

.vvl-sum__note a {
    color: var(--mr-purple-light);
}

.vvl-sum__stuck {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--mr-radius-sm);
    background: #fff6e5;
    color: #8a4b00;
    font-size: 13px;
    line-height: 1.5;
}

.vvl-sum__cta {
    margin: 16px 0 0;
}

.vvl-sum__mini {
    display: none;
}

.vvl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--mr-purple);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.vvl-btn:hover {
    background: var(--mr-purple-dark);
}

.vvl-btn:active {
    transform: scale(.98);
}

.vvl-btn:focus-visible {
    outline: 3px solid rgba(106, 63, 181, .45);
    outline-offset: 2px;
}

.vvl-sum__none {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #b42318;
}

.vvl-empty {
    padding: 40px 20px;
    border: 1px dashed var(--mr-border);
    border-radius: var(--mr-radius);
    text-align: center;
    color: var(--mr-text-muted);
}

/* --- tableta: una columna, el resumen debajo --- */
@media (max-width: 991px) {
    .vvl-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* la tarjeta del LIV sube arriba de los productos; el resumen se queda abajo */
    .vvl-side {
        display: contents;
    }

    .vvl-side .vv-liv {
        order: -1;
    }

    /* el total y el botón, siempre a la mano abajo */
    .vvl-page .vvl {
        padding-bottom: 120px;
    }

    .vvl-sum__cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--mr-border);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    }

    .vvl-sum__mini {
        display: flex;
        flex-direction: column;
        flex: none;
        line-height: 1.2;
    }

    .vvl-sum__mini .vvl-sum__label {
        font-size: 12px;
    }

    .vvl-sum__mini .vvl-sum__total {
        font-size: 18px;
    }

    .vvl-sum__cta .vvl-btn {
        flex: 1;
        width: auto;
        padding: 0 18px;
        white-space: nowrap;
    }

    /* la burbuja de ayuda del sitio (.mr-dock) sube encima de la barra en vez de taparle el botón */
    body:has(.vvl-sum__cta) .mr-dock {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .vvl-sum__none {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 100%;
        margin: 0 0 8px;
        padding: 8px 12px;
        border-radius: var(--mr-radius-sm);
        background: #fdecec;
    }
}

/* --- teléfono: la tarjeta en dos renglones --- */
@media (max-width: 599px) {
    .vvl-page .vvl {
        padding-top: 20px;
    }

    .vvl-page .vvl-head__title {
        font-size: 24px;
    }

    .vvl-head__intro {
        font-size: 14px;
    }

    .vvl-item {
        grid-template-columns: auto 64px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 12px;
    }

    .vvl-item__pic {
        width: 64px;
        height: 64px;
    }

    .vvl-item__nums {
        grid-column: 3;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 4px 10px;
        margin-top: -6px;
    }

    .vvl-item__total {
        order: 2;
    }

    .vvl-item__unit {
        order: 1;
    }

    .vvl-sum__mini .vvl-sum__total {
        font-size: 17px;
    }
}

