/* =========================
   🛒 CART METRONIC THEME-AWARE
========================= */
:root {
    --bs-primary: #7723FF !important;
}
.kt-cart-panel {
    position: fixed;
    top: 90px;
    right: 24px;
    width: 320px;
    z-index: 2000;
    display: none;

    background: var(--bs-card-bg);
    color: var(--bs-body-color);

    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
}

/* HEADER */
.kt-cart-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

/* BODY */
.kt-cart-body {
    max-height: 260px;
    overflow-y: auto;
    padding: .75rem 1rem;
}

.kt-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kt-cart-items li {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: .75rem;
    margin-bottom: .5rem;
    font-size: .85rem;
}

/* FOOTER */
.kt-cart-footer {
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

/* SCROLL */
.kt-cart-body::-webkit-scrollbar {
    width: 6px;
}

.kt-cart-body::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 10px;
}


/* =========================
   🛒 CART METRONIC PRO
========================= */

/* ===============================
   CARRITO STICKY RESPONSIVE
================================ */

.cart-sticky {
    position: relative;
}

/* Desktop */
@media (min-width: 992px) {
    .cart-sticky {
        position: sticky;
        top: 110px;
        /* ajusta según tu header */
    }
}

/* Mobile */
@media (max-width: 991px) {
    .cart-sticky {
        position: static;
        margin-top: 24px;
    }

    .kt-cart-items {
        max-height: none;
    }
}


.kt-cart-panel {
    animation: slideIn .25s ease-out;
}

/* Animación suave */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Items */
.kt-cart-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;

    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    padding: .6rem .75rem;

    transition: background .2s ease, border .2s ease;
}

.kt-cart-items li:hover {
    background: var(--bs-gray-100);
}

/* Nombre boleto */
.kt-cart-items li span:first-child {
    font-weight: 500;
    font-size: .85rem;
    flex: 1;
}

/* =========================
   ➕ ➖ CONTROLES CANTIDAD
========================= */

.cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bs-gray-100);
    border-radius: 999px;
    padding: 2px 6px;
}

.cart-qty strong {
    min-width: 20px;
    text-align: center;
    font-size: 15px;
}
#cartItems strong{
    font-size:  15px !important;
}

.btn-minus,
.btn-plus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--bs-primary);
    transition: all .15s ease-in-out;
}

.btn-minus:hover,
.btn-plus:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: scale(1.05);
}

.btn-minus:active,
.btn-plus:active {
    transform: scale(.95);
}

/* =========================
   ❌ BOTÓN ELIMINAR
========================= */

.cart-remove {
    font-size: 14px;
    color: var(--bs-gray-500);
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.cart-remove:hover {
    color: var(--bs-danger);
    transform: scale(1.15);
}

/* =========================
   FOOTER TOTAL
========================= */

.kt-cart-footer {
    background: linear-gradient(to top,
            var(--bs-body-bg),
            transparent);
}

.table {
    font-family: 'Inter', sans-serif;
    /* Fuente limpia como en la imagen */
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    color: #333;
}

.table td {
    vertical-align: middle;
}

.table td,
.table th {
    border: none !important;
}

.table-light {
    font-weight: bold !important;
    --bs-table-bg: #FFFFFF !important;
}

.text-primary {
    color: #1a73e8 !important;
    /* Azul tipo Google */
}

.fw-semibold {
    font-weight: 600;
}

#divloteDescuento,
#divloteIntereses {
    display: none
}

svg:focus,
svg g:focus,
svg path:focus,
svg rect:focus,
svg polygon:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-guardar-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    /* por encima de tooltips o SVG */
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.btn-guardar-flotante:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Cursor siempre como flecha */
body, html, div, span, p, a, button, input, textarea, svg, g, path, polygon, rect {
    cursor: default !important;
    user-select: none;
    /* opcional: evita selección de texto si no quieres que se marque */
}

/* =========================
   🎟 INSTRUCCIONES ASIENTOS
========================= */

.seat-instructions {
    background: linear-gradient(to bottom,
            rgba(var(--bs-body-bg-rgb), 0.9),
            rgba(var(--bs-body-bg-rgb), 0.75));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.seat-instructions-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.seat-text {
    text-align: center;
    color: var(--bs-body-color);
}

.seat-arrow i {
    color: var(--bs-body-color);
    opacity: .8;
}

/* =========================
   LEYENDA
========================= */

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bs-body-color);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* Colores (alineados a tu sistema) */
.legend-dot.available {
    background: var(--bs-gray-400);
}

.legend-dot.occupied {
    background: #9b59ff;
    /* similar a morado de ocupados */
}

.legend-dot.selected {
    background: #ff8a00;
    /* naranja seleccionado */
}



/* =========================
   SEAT MAP BASE
   ========================= */
.seat-map-wrapper {
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.seat-map {
    display: inline-block;
    transform-origin: center center;
    cursor: grab;
}

.seat-map:active {
    cursor: grabbing;
}

.seat-map img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   MOBILE CONTROLS
   ========================= */
.seat-zoom-controls {
    position: absolute;
    right: 12px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seat-zoom-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* =========================
   MOBILE HINT
   ========================= */
.seat-zoom-hint {
    position: relative;
    margin-top: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
}

/* =========================
   SEAT MAP LAYERING FIX
   ========================= */
.seat-map {
    position: relative;
    width: 100%;
    display: inline-block;
}

.seat-map img {
    width: 100%;
    height: auto;
    display: block;
}

.seat-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.seat-svg svg {
    width: 100%;
    height: 100%;
}
.cart-item-price {
    font-size: .75rem;
    color: var(--bs-gray-600);
}
#cartTotal{
    color: #f5f5f5 !important;
    font-size: 1.25rem !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .seat-instructions-inner {
        flex-direction: column;
        gap: 10px;
    }

    .seat-map-wrapper {
        text-align: center;
    }
}