/* Seat Selection */
.cm-seat-box {
    width: 20px;
    height: 20px;
    background: #0ea5e9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #0284c7;
}
.cm-seat-box:hover {
    background: #38bdf8;
    transform: scale(1.1);
}
.cm-seat-box.selected {
    background: #f97316;
    border-color: #ea580c;
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
    transform: scale(1.1);
}
.cm-seat-box.unavailable {
    background: #cbd5e1;
    border-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}
.cm-seat-box.unavailable:hover {
    transform: none;
    background: #cbd5e1;
}


/* Responsive Wrapper for Seating Map */
#cm-seat-map-container, .cm-seating-wrapper {
    overflow-x: auto !important;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

#cm-seat-map-container::-webkit-scrollbar, .cm-seating-wrapper::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}
#cm-seat-map-container::-webkit-scrollbar-track, .cm-seating-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
#cm-seat-map-container::-webkit-scrollbar-thumb, .cm-seating-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
#cm-seat-map-container::-webkit-scrollbar-thumb:hover, .cm-seating-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .cm-seat-box {
        width: 16px;
        height: 16px;
    }
    
    .cm-seating-row-label {
        width: 25px !important;
        font-size: 11px !important;
    }
    
    /* Keep multi-section seating in a row and let it overflow */
    .cm-seating-auditorium > div {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    
    /* Force left alignment on mobile so overflowing content isn't clipped on the left side */
    .cm-seating-section, .cm-seating-grid, .cm-seating-wrapper {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
}


@media (max-width: 768px) {
    /* Force left alignment with high specificity and make containers expand to fit content */
    #cm-seat-map-container .cm-seating-auditorium, 
    #cm-seat-map-container .cm-seating-auditorium > div { 
        min-width: max-content !important; 
        justify-content: flex-start !important; 
        align-items: flex-start !important;
    }
    
    #cm-seat-map-container .cm-seating-section, 
    #cm-seat-map-container .cm-seating-grid { 
        align-items: flex-start !important; 
        justify-content: flex-start !important;
        text-align: left !important; 
        min-width: max-content !important; 
    }
    
    /* Ensure the section titles align left too */
    #cm-seat-map-container .cm-seating-section > div:first-child {
        text-align: left !important;
    }
}
