/* ── FRONTEND SEATING CHART CSS (MODERN & PREMIUM) ───────────────────────────── */

.wa-seating-frontend-wrapper {
    position: relative;
    max-width: 100%;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.wa-seating-viewport {
    width: 100%;
    height: 550px;
    overflow: auto;
    position: relative;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: grab;
    touch-action: none;
    overscroll-behavior: contain;
}

.wa-seating-viewport:active {
    cursor: grabbing;
}

.wa-seating-canvas {
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transform-origin: top left;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.wa-seating-stage {
    position: relative;
    min-width: 1px;
    min-height: 1px;
}

.wa-seating-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}

.wa-seating-zoom {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Barra dinámica de zoom */
.wa-seating-zoom .wa-zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 6px;
    margin: 0 2px;
    background: #e2e8f0;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    accent-color: #2271b1;
}

.wa-seating-zoom .wa-zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.wa-seating-zoom .wa-zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.wa-seating-zoom .wa-zoom-slider::-moz-range-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
}

@media (max-width: 700px) {
    /* La barra de zoom usa todo el ancho disponible (dedo > precisión) */
    .wa-seating-zoom {
        flex: 1 1 100%;
    }

    .wa-seating-zoom .wa-zoom-slider {
        flex: 1 1 auto;
        width: auto;
        min-width: 90px;
    }

    /* FIX del bottom-sheet dentro del POPUP: un transform en el ancestro
       (la animación de entrada del content) convierte el position:fixed del
       panel "Tus Asientos" en relativo al popup → el sheet caía al fondo del
       contenido y el botón de compra quedaba inalcanzable. En móvil el content
       nunca lleva transform (la animación de escala es prescindible) para que
       el sheet se ancle al viewport como fue diseñado. */
    .wa-seating-popup-modal .wa-seating-popup-content {
        transform: none !important;
    }
}

.wa-seating-zoom button {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.wa-seating-zoom .btn-zoom-reset {
    width: auto;
    min-width: 58px;
    padding: 0 10px;
    font-size: 12px;
}

.wa-seating-zoom button:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

.wa-seating-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.wa-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-block;
}

/* ── Cart Panel ── */
.wa-seating-cart-panel {
    padding: 24px;
    background: #ffffff;
}

.wa-seating-cart-panel h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wa-seating-cart-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: #f8fafc;
}

.wa-seating-cart-list li {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #334155;
    animation: slideInCart 0.2s ease-out;
}

.wa-seating-cart-list li:last-child {
    border-bottom: none;
}

.wa-seating-cart-list li.empty-msg {
    color: #94a3b8;
    font-style: italic;
    justify-content: center;
    padding: 24px;
}

.wa-seat-remove {
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.15s ease;
    display: inline-block;
    padding: 0 4px;
    border: 0;
    background: transparent;
    font-family: inherit;
}

.wa-seat-remove:hover {
    transform: scale(1.2);
}

.wa-seating-cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.wa-seating-total {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.wa-seating-total b {
    color: #2563eb;
    font-weight: 700;
}

.wa-seating-add-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
}

.wa-seating-add-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.wa-seating-add-btn:not(:disabled):hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
    transform: translateY(-1px);
}

.wa-seating-add-btn:not(:disabled):active {
    transform: translateY(0);
}

/* ── Interactive Seats ── */
.wa-front-seat {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
    transform: rotate(var(--wa-rotation, 0deg));
    will-change: transform;
}

.wa-front-seat:hover:not(.status-taken) {
    transform: rotate(var(--wa-rotation, 0deg)) scale(1.18);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    z-index: 100 !important;
}

.wa-front-seat[data-type="seat"] {
    width: 45px;
    height: 30px;
    border-radius: 6px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.15));
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.1), 
        inset 0 2px 0 rgba(255, 255, 255, 0.3), 
        inset 0 -5px 0 rgba(0, 0, 0, 0.2);
}

.wa-front-seat[data-type="standing"] {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0.7;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    text-shadow: none;
}

.wa-front-seat[data-type="text"] {
    width: auto;
    height: auto;
    color: #1e293b;
    background: transparent !important;
    text-shadow: none;
    box-shadow: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}

.wa-front-seat[data-type="text"]:hover {
    transform: rotate(var(--wa-rotation, 0deg)) !important;
    box-shadow: none !important;
}

.wa-front-seat.wa-table-buy-trigger {
    cursor: pointer;
    font-weight: 700;
    outline: 2px solid rgba(34, 113, 177, 0.25);
    outline-offset: 2px;
}

.wa-front-seat.wa-table-buy-trigger.status-taken {
    cursor: not-allowed;
}

.wa-front-seat.wa-table-buy-trigger.status-selected {
    outline-color: #32cd32;
    box-shadow: 0 0 0 4px rgba(50, 205, 50, 0.25);
}

/* Custom Stage style for text elements containing 'escenario', 'stage', etc. */
.wa-front-seat.wa-stage-label {
    background: linear-gradient(135deg, #1e293b, #334155) !important;
    color: #ffffff !important;
    padding: 12px 60px !important;
    border-radius: 10px !important;
    border-bottom: 4px solid #0f172a !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Statuses */
.wa-front-seat.status-taken {
    text-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.wa-front-seat.status-selected {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px #2563eb !important;
    transform: rotate(var(--wa-rotation, 0deg)) scale(1.15);
    z-index: 100 !important;
}

.wa-front-seat.status-incart-other {
    opacity: 0.6;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.1) 5px, rgba(0,0,0,0.1) 10px);
}

.wa-front-seat.status-incart-me {
    cursor: not-allowed;
    opacity: 0.75;
}

.wa-front-seat.status-static {
    cursor: default;
    pointer-events: none;
}

.wa-front-seat.status-seat-error {
    outline: 3px solid #dc2626 !important;
    outline-offset: 3px;
    animation: waSeatConflict 0.45s ease-out 2;
}

.wa-front-seat:focus-visible,
.wa-seating-viewport:focus-visible,
.wa-seating-zoom button:focus-visible,
.wa-seat-remove:focus-visible {
    outline: 3px solid #0f62fe;
    outline-offset: 3px;
}

.wa-seating-status {
    min-height: 0;
    padding: 0 24px;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

.wa-seating-status:not(:empty) {
    min-height: 20px;
    padding-top: 10px;
}

.wa-tooltip-error {
    max-width: 220px;
    margin-top: 6px;
    color: #fecaca;
    font-size: 11px;
    line-height: 1.35;
}

@keyframes waSeatConflict {
    0%, 100% { transform: rotate(var(--wa-rotation, 0deg)) scale(1); }
    50% { transform: rotate(var(--wa-rotation, 0deg)) scale(1.16); }
}

/* Asiento BLOQUEADO pero vendible por staff: clickeable, con borde punteado + candado */
.wa-front-seat.status-blocked-staff {
    cursor: pointer;
    opacity: 1;
    border: 2px dashed #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 5px rgba(0, 0, 0, 0.2);
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.18), rgba(255,255,255,0.18) 4px, transparent 4px, transparent 8px);
}

.wa-front-seat.status-blocked-staff .wa-seat-lock {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 10px;
    line-height: 1;
    background: #ffffff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    text-shadow: none;
}

/* ── Custom HTML Tooltip ── */
.wa-seating-tooltip {
    position: absolute;
    z-index: 1000000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
    min-width: 120px;
    text-align: center;
}

.wa-tooltip-header {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
}

.wa-tooltip-section {
    color: #94a3b8;
    font-weight: 500;
    font-size: 11px;
    margin-bottom: 5px;
}

.wa-tooltip-price {
    font-weight: 700;
    color: #60a5fa;
    font-size: 12px;
    margin-bottom: 5px;
}

.wa-tooltip-status {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.wa-tooltip-status.status-disponible { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.wa-tooltip-status.status-ocupado { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.wa-tooltip-status.status-no-disponible { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; }
.wa-tooltip-status.status-seleccionado { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.wa-tooltip-status.status-en-carrito-ajeno { background: rgba(234, 179, 8, 0.2); color: #facc15; }

/* ── Popup Shortcode ── */
.wa-seating-popup-container {
    display: inline-block;
}

.wa-seating-popup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

.wa-seating-popup-trigger:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
    transform: translateY(-1px);
}

.wa-seating-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.wa-seating-popup-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.wa-seating-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wa-seating-popup-content {
    position: relative;
    width: 92%;
    height: 90%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.wa-seating-popup-modal.is-open .wa-seating-popup-content {
    transform: scale(1) translateY(0);
}

.wa-seating-popup-header {
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-seating-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.wa-seating-popup-close {
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    transition: all 0.15s ease;
}

.wa-seating-popup-close:hover {
    background: #ef4444;
    color: #ffffff;
}

.wa-seating-popup-body {
    flex: 1;
    overflow: auto;
    padding: 24px;
    background: #f8fafc;
}

.wa-seating-popup-body .wa-seating-frontend-wrapper {
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Animations */
@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mobile Layout & Bottom Sheet ── */
@media (max-width: 768px) {
    .wa-seating-viewport {
        height: 400px;
    }
    
    .wa-seating-controls {
        padding: 10px 16px;
    }
    
    .wa-seating-legend {
        gap: 10px;
        font-size: 11px;
    }

    .wa-seating-cart-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
        padding: 16px 20px 24px 20px;
        transform: translateY(calc(100% - 76px)); /* Show only handle/header area */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .wa-seating-cart-panel.is-expanded {
        transform: translateY(0);
    }

    /* Pull up handle bar style */
    .wa-seating-cart-panel::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 2px;
        margin: -6px auto 12px auto;
        cursor: pointer;
    }

    .wa-seating-cart-panel h3 {
        text-align: center;
        margin-bottom: 12px;
        font-size: 14px;
        color: #64748b;
        cursor: pointer;
    }

    .wa-seating-popup-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .wa-seating-popup-trigger {
        width: 100%;
        justify-content: center;
    }
}

/* ── (2.13.0) La sala en 3D del comprador (compra-3d.js) ── */
.wa-sala3d-barra[hidden],
.wa-sala3d[hidden],
.wa-sala3d [hidden] {
    display: none !important;
}
.wa-sala3d-barra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.wa-sala3d-vistas {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #eef2f7;
}
.wa-sala3d-vista {
    border: 0;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    min-height: 36px;
}
.wa-sala3d-vista[aria-pressed="true"] {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
.wa-sala3d-vista:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.wa-sala3d-vista:focus-visible,
.wa-sala3d button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.wa-sala3d-nota {
    font-size: 13px;
    color: #64748b;
}
.wa-seating-frontend-wrapper.wa-modo-3d .wa-seating-viewport,
.wa-seating-frontend-wrapper.wa-modo-3d .wa-seating-zoom {
    display: none !important;
}
.wa-sala3d {
    position: relative;
    background: #0d0f12;
    color: #e8ecf1;
}
.wa-sala3d__lienzo {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}
.wa-sala3d__lienzo canvas {
    display: block;
}
.wa-sala3d__acciones {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: calc(100% - 20px);
}
.wa-sala3d__acciones button,
.wa-sala3d__ficha button,
.wa-sala3d__lista button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(17, 20, 25, 0.82);
    color: #f1f5f9;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    min-height: 34px;
}
.wa-sala3d__acciones button[aria-expanded="true"] {
    background: #f1f5f9;
    color: #0f172a;
}
.wa-sala3d__reloj {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    max-width: calc(100% - 20px);
}
.wa-sala3d__reloj.is-poco {
    background: rgba(180, 83, 9, 0.95);
}
.wa-sala3d__ficha {
    position: absolute;
    left: 10px;
    /* Anclada al pie de la sala (550 px), no al de todo el bloque: con la lista abierta no la tapa. */
    top: 540px;
    transform: translateY(-100%);
    max-width: min(360px, calc(100% - 20px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(17, 20, 25, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.4;
}
.wa-sala3d__ficha-titulo {
    font-weight: 700;
    font-size: 15px;
}
.wa-sala3d__ficha-precio {
    font-weight: 700;
    color: #fbbf24;
}
.wa-sala3d__ficha-estado {
    color: #cbd5e1;
}
.wa-sala3d__ficha-aviso {
    color: #fca5a5;
}
.wa-sala3d__ficha-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.wa-sala3d__ficha-botones .is-principal {
    background: #f1f5f9;
    color: #0f172a;
}
.wa-sala3d__lista {
    max-height: 320px;
    overflow: auto;
    padding: 12px 16px;
    background: #111419;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-sala3d__lista details {
    margin-bottom: 8px;
}
.wa-sala3d__lista summary {
    cursor: pointer;
    font-weight: 700;
    padding: 6px 0;
}
.wa-sala3d__fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0 10px;
}
.wa-sala3d__fila-nombre {
    min-width: 64px;
    font-size: 13px;
    color: #94a3b8;
}
.wa-sala3d__lista button {
    padding: 5px 10px;
    min-height: 32px;
    min-width: 44px;
}
.wa-sala3d__lista button[aria-pressed="true"] {
    background: #16a34a;
    border-color: #16a34a;
}
.wa-sala3d__lista button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    /* En el celular nada flota sobre la sala: el aviso del carrito arriba; la ficha y los botones, debajo. */
    .wa-sala3d {
        display: flex;
        flex-direction: column;
    }
    .wa-sala3d__reloj {
        order: 0;
        position: static;
        max-width: none;
        border-radius: 0;
        text-align: center;
    }
    .wa-sala3d__lienzo {
        order: 1;
        height: 400px;
    }
    .wa-sala3d__ficha {
        order: 2;
        position: static;
        top: auto;
        transform: none;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 10px 12px;
        font-size: 13px;
    }
    .wa-sala3d__ficha-titulo {
        font-size: 14px;
    }
    .wa-sala3d__acciones {
        order: 3;
        position: static;
        max-width: none;
        justify-content: flex-start;
        padding: 8px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .wa-sala3d__acciones button {
        padding: 6px 10px;
        font-size: 12px;
    }
    .wa-sala3d__lista {
        order: 4;
    }
}
