.csp-wrapper {
    max-width: 100%;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
    position: relative; 
}

.csp-scroll-area {
    width: 100%;
    overflow-x: auto; 
    padding-bottom: 20px;
    position: relative; -ms-overflow-style: none;  
    scrollbar-width: none;  
     cursor: grab; 
    cursor: -webkit-grab;
    user-select: none;
    -webkit-user-select: none;
}

.csp-scroll-area::-webkit-scrollbar {
    display: none;
}

.csp-scroll-area.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.csp-stage {
    background: #333;
    color: #fff;
    width: 90%; 
    max-width: 900px;
    margin: 0 auto 20px auto; 
    padding: 12px;
    border-radius: 0 0 100px 100px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

@media (max-width: 880px) {
    .csp-stage {
        margin: 0 auto 20px auto; 
    }
}

.csp-grid {
    display: inline-block;
    min-width: 320px;
    position: relative;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    text-align: center;
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .csp-grid {
        width: auto;
    }

    .csp-row-label-inner {
        min-width: 70px;
        text-align: left;
        margin-right: 10px;
    }
}

.csp-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative; 
    min-height: 34px; 
    margin-bottom: 8px;
    position: relative; 
    min-height: 34px; 
    width: 100%;}

.csp-row-label {
    width: 80px;
    text-align: right;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    top: 50%;
    margin-left: -100px;
    margin-right: 10px;
}

@media screen and (max-width: 1200px) {
    .csp-row-label {
            margin-left:0px;
            text-align: left;
    }
}


.csp-group {
    display: flex;
    gap: 6px;
     flex: 1; 
    width: 50%; /* Fallback */
}

.csp-group-left {
    justify-content: flex-start !important; 
}

.csp-group-right {
    justify-content: flex-end !important; 
}

.csp-row-empty .csp-group-left,
.csp-row-empty .csp-group-right {
    width: calc(100% - 25px);
    background-color: #efeeee;
    min-height: 24px;
}

.csp-aisle-gap {
    width: 50px; 
    flex-shrink: 0; 
}


.csp-seat {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    background-color: #fff; 
}

.csp-seat.csp-avail {
    background-color: #fff;
    border-color: #4CAF50;
    color: #2E7D32;
    box-shadow: 0 2px 0 #4CAF50;
}

@media (hover: hover) {
    .csp-seat.csp-avail:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 0 #4CAF50;
        background-color: #e8f5e9;
        z-index: 10;
    }
}

.csp-seat.csp-sold {
    background-color: #eee;
    color: #bbb;
    border-color: #ddd;
    cursor: not-allowed;
    pointer-events: none; 
}

.csp-seat.selected,
.csp-seat.csp-avail.selected {
    background-color: #FFB75C !important; 
    color: #000000 !important;
    border-color: #FF9000 !important;
    box-shadow: 0 2px 0 #FF9000 !important;
    transform: none !important; 
    z-index: 5;
}

.csp-controls {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    width: 100%;
    max-width: 600px;
    margin-left: auto;  
    margin-right: auto; 
    position: relative; 
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#csp-selection-info {
    margin-bottom: 0px;
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 20px;
}

#csp-buy-btn {
    font-family: Oswald, sans-serif; 
    font-size: 1.4em;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0;
    height: 0px;
    overflow: hidden;
    color: #ffffff !important;
    transition:  0.3s;
    padding: 0;
    border-style: solid;
    border-width: 0px;
    border-color: #7ED3C5;
    background-color: #008972;
    cursor: pointer;
}

#csp-buy-btn.active {
    opacity: 1;
    height: auto;
    padding: 10px 20px;
    border-width: 5px;

}
#csp-buy-btn.active:hover {
    background-color: #FF9000;
    border-color: #FFB75C;
}

#csp-loader {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.csp-spinner-box {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.csp-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF9000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.csp-row.csp-row-empty .csp-row-label {
    opacity: 0.4;
    font-weight: normal;
}

.csp-seat.csp-blocked-temp {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    cursor: not-allowed;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 193, 7, 0.2) 5px,
        rgba(255, 193, 7, 0.2) 10px
    );
}

.csp-seat.csp-blocked-temp:hover {
    transform: none;
    box-shadow: none;
}

#csp-total-price {
    border-top: 1px solid #ddd;
    margin-top: 15px;
    padding-top: 15px;
    color: #333;
}

.csp-seat.csp-blocked-temp {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
    cursor: not-allowed;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255, 193, 7, 0.2) 5px, rgba(255, 193, 7, 0.2) 10px);
}

.csp-seat.csp-in-own-cart {
    background-color: #4caf4fad; 
    border-color: #388E3C;
    cursor: default; 
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.csp-seat.csp-in-own-cart .csp-num {
    opacity: 0; 
}

.csp-seat.csp-in-own-cart::after {
    content: ''; 
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    text-shadow: none; 
}

#csp-total-price {
    border-top: 1px solid #ddd;
    margin-top: 15px;
    padding-top: 15px;
    color: #333;
}

.csp-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 12px;
    color: #666;
}

.legend-item-wrapper,
.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.legend-item-wrapper {
    gap: 15px
}

.legend-item .csp-seat {
    width: 20px; 
    height: 20px;
    font-size: 0; 
    cursor: default;
}
.legend-item .csp-seat::after {
    font-size: 12px;
}

.legend-item .csp-seat.csp-in-own-cart {
    position: relative; 
}

.legend-item .csp-seat.csp-in-own-cart::after {
    content: '' !important;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.legend-item .csp-seat.csp-blocked-temp {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px, 
        rgba(255, 193, 7, 0.4) 3px,
        rgba(255, 193, 7, 0.4) 6px
    ) !important;
}

#csp-modal-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#csp-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.csp-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#csp-modal-overlay.active .csp-modal-box {
    transform: translateY(0) scale(1);
}

.csp-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFF3E0;
    color: #FF9800;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    border: 2px solid #FF9800;
}

.csp-modal-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.csp-modal-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.csp-modal-close-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.csp-modal-close-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.csp-mobile-hint {
    display: none;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 10px;
    text-align: center; 
    animation: blink 3s infinite;
    position: -webkit-sticky;
    position: sticky;
    left: 0; 
    width: 100%; 
    z-index: 10;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.price-color-bg-0 { background-color: #efdfe152; } 
.price-color-bg-1 { background-color: #bbdefb36; } 
.price-color-bg-2 { background-color: #c8e6c936; }
.price-color-bg-3 { background-color: #fff9c47a; } 
.price-color-bg-4 { background-color: #e1bee768; } 
.price-color-bg-5 { background-color: #ffe0b27a; } 
.price-color-bg-6 { background-color: #f8bbd073; } 
.price-color-bg-7 { background-color: #b3e5fc7b; } 
.price-color-bg-8 { background-color: #b2dfdb7d; } 
.price-color-bg-9 { background-color: #c5cae97f; } 


.price-category-group {
    padding: 1rem
}

.csp-group-label {
    background: #ffffff91;
    border-radius: 4px;
    padding: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

.csp-row-label-inner {
    padding: 10px 15px;
    font-weight: bold;
    font-size: .9rem;
    width: 70px;
}

.csp-price-category-list {
    font-size: 1rem;
}

.csp-legend h4 {
    font-size: 1.1rem;
    margin-bottom: 0 !important;
}