/*--------------------------------------------------------------
# TicketSystem Tango Noir - Plugin Overrides (Tickera - Materialized)
--------------------------------------------------------------*/

:root {
    --ts-gold: #C6A664;
    --ts-lightgrey: #E0E0E0;
    --ts-mediumgrey-text: #A0A0A0;
    --ts-black: #121212;
    --ts-surface-1: #1E1E1E;
    --ts-surface-2: #232323;
    --ts-surface-4: #292929;
    --ts-surface-8: #303030;
    --ts-border-color: rgba(255, 255, 255, 0.12);
    --font-headings: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --ts-radius-sm: 4px;
    --ts-radius: 8px;
    --ts-radius-lg: 16px;
    --ts-radius-pill: 999px;
    --ts-shadow-1: 0px 1px 3px rgba(0, 0, 0, 0.30), 0px 1px 2px rgba(0, 0, 0, 0.50);
    --ts-shadow-2: 0px 3px 6px rgba(0, 0, 0, 0.30), 0px 3px 6px rgba(0, 0, 0, 0.50);
    --ts-shadow-4: 0px 10px 20px rgba(0, 0, 0, 0.35), 0px 6px 6px rgba(0, 0, 0, 0.50);
    --ts-shadow-8: 0px 19px 38px rgba(0, 0, 0, 0.40), 0px 15px 12px rgba(0, 0, 0, 0.50);
}

/* 0. Events Listing (Front Page - Material Container) */
.ts-event-browser .tc-event-listing-container {
    background-color: var(--ts-surface-1);
    /* DP1 */
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-radius-lg);
    padding: 32px;
    color: var(--ts-lightgrey);
    box-shadow: var(--ts-shadow-1);
}

.ts-event-browser .tc-events-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Standardized gap */
}

@media (min-width: 1024px) {
    .ts-event-browser .col-full {
        width: 100%;
        max-width: 96vw;
        max-width: min(96vw, 1800px);
        margin-left: auto;
        margin-right: auto;
        padding-left: clamp(24px, 3vw, 60px);
        padding-right: clamp(24px, 3vw, 60px);
    }
}

/* Filters Section (Material Grid) */
.ts-event-browser .tc-event-filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ts-border-color);
    margin-bottom: 32px;
}

.ts-event-browser .tc-event-filter__row {
    display: grid;
    gap: 24px;
}

.ts-event-browser .tc-event-filter__row--primary {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.ts-event-browser .tc-event-filter__row--secondary {
    grid-template-columns: repeat(2, minmax(200px, 1fr)) minmax(160px, auto);
    align-items: end;
}

.ts-event-browser .tc-event-filter__label {
    margin: 0 0 8px;
    /* Material input label spacing */
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ts-mediumgrey-text);
    font-weight: 600;
}

.ts-event-browser .tc-event-filter__field select {
    width: 100%;
}

.ts-event-browser .tc-event-filter__field--date {
    position: relative;
}

/* Date Picker Input (Materialized) */
.ts-event-browser .tc-event-datepicker {
    width: 100%;
    background-color: var(--ts-surface-4) !important;
    border: 1px solid var(--ts-border-color) !important;
    border-bottom: 2px solid var(--ts-border-color) !important;
    border-radius: var(--ts-radius-sm) var(--ts-radius-sm) 0 0;
    color: var(--ts-lightgrey) !important;
    padding: 16px 48px 12px 16px;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 0.2s var(--ts-ease-out), background-color 0.2s var(--ts-ease-out);
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C6A664'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5C3.89 4 3.01 4.9 3.01 6L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) 50%;
}

.ts-event-browser .tc-event-datepicker::placeholder {
    color: var(--ts-mediumgrey-text);
    text-transform: none;
    opacity: 0.7;
}

.ts-event-browser .tc-event-datepicker:focus {
    border-color: var(--ts-border-color) !important;
    border-bottom-color: var(--ts-gold) !important;
    background-color: var(--ts-surface-8) !important;
    box-shadow: none;
}

.ts-event-browser .tc-event-filter__field--button button {
    width: 100%;
    min-height: 56px;
    /* Match input height */
    margin-top: 0;
}

/* Multi-select Styling (Material Dropdown) */
.ts-event-browser .ms-options-wrap {
    position: relative;
    width: 100%;
    color: var(--ts-lightgrey);
    font-family: var(--font-body);
    z-index: 3;
}

.ts-event-browser .ms-options-wrap>button {
    width: 100%;
    background: linear-gradient(135deg, rgba(198, 166, 100, 0.18) 0%, rgba(198, 166, 100, 0.05) 100%), var(--ts-surface-4);
    border: 1px solid rgba(198, 166, 100, 0.35);
    border-radius: var(--ts-radius-pill);
    color: var(--ts-lightgrey);
    padding: 14px 56px 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: var(--ts-shadow-1);
    transition: background-color 0.2s var(--ts-ease-out), border-color 0.2s var(--ts-ease-out), box-shadow 0.2s var(--ts-ease-out), color 0.2s var(--ts-ease-out);
    cursor: pointer;
    position: relative;
}

.ts-event-browser .ms-options-wrap>button span {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ts-event-browser .ms-options-wrap.ms-has-selections>button {
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 500;
    color: var(--ts-lightgrey);
}

.ts-event-browser .ms-options-wrap.ms-active>button {
    border-color: var(--ts-gold);
    box-shadow: var(--ts-shadow-2);
    color: #fff;
    background: linear-gradient(135deg, rgba(198, 166, 100, 0.3) 0%, rgba(198, 166, 100, 0.08) 100%), var(--ts-surface-4);
}

.ts-event-browser .ms-options-wrap.ts-all-selected>button {
    color: var(--ts-gold);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Dropdown Arrow */
.ts-event-browser .ms-options-wrap>button::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--ts-gold);
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.2s var(--ts-ease-out);
}

.ts-event-browser .ms-options-wrap.ms-active>button::after {
    transform: translateY(-50%) rotate(180deg);
}

.ts-event-browser .ms-options-wrap button:focus-visible {
    border-color: rgba(198, 166, 100, 0.65);
    box-shadow: 0 0 0 3px rgba(198, 166, 100, 0.25);
    outline: none;
}

/* Dropdown Menu (Elevated Surface) */
.ts-event-browser .ms-options {
    background-color: var(--ts-surface-8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--ts-radius-lg) !important;
    margin-top: 12px !important;
    padding: 12px 0 !important;
    box-shadow: var(--ts-shadow-8) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 260px !important;
}

.ts-event-browser .ms-options ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.ts-event-browser .ms-options-wrap .ms-options li {
    color: var(--ts-lightgrey) !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.ts-event-browser .ms-options-wrap .ms-options li+li {
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.ts-event-browser .ms-options-wrap .ms-options li:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.ts-event-browser .ms-options-wrap .ms-options li.selected label {
    background-color: rgba(198, 166, 100, 0.14) !important;
    border-left: 3px solid var(--ts-gold) !important;
}

.ts-event-browser .ms-options-wrap .ms-options label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
    color: var(--ts-lightgrey) !important;
    cursor: pointer !important;
    width: 100% !important;
}

.ts-event-browser .ms-options-wrap .ms-options label:hover {
    color: #fff !important;
}

/* Material Checkbox Accent */
.ts-event-browser .ms-options-wrap .ms-options input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 4px !important;
    background-color: transparent !important;
    cursor: pointer !important;
    transition: background-color 0.2s var(--ts-ease-out), border-color 0.2s var(--ts-ease-out), box-shadow 0.2s var(--ts-ease-out) !important;
}

.ts-event-browser .ms-options-wrap .ms-options input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(198, 166, 100, 0.65) !important;
    outline-offset: 1px !important;
}

.ts-event-browser .ms-options-wrap .ms-options input[type="checkbox"]:checked {
    background-color: var(--ts-gold) !important;
    border-color: var(--ts-gold) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

.ts-event-browser .ms-options-wrap .ms-options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--ts-black);
    border-bottom: 2px solid var(--ts-black);
    transform: rotate(45deg);
}

.ts-event-browser .ms-options-wrap .ms-options::-webkit-scrollbar {
    width: 6px;
}

.ts-event-browser .ms-options-wrap .ms-options::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.ts-event-browser .ms-options-wrap .ms-options::-webkit-scrollbar-track {
    background: transparent;
}

/* Single Event Listing (Material Card - List style) */
.ts-event-browser .tc-single-event {
    background-color: var(--ts-surface-2);
    /* Slightly elevated from the container */
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--ts-shadow-1);
    transition: box-shadow 0.2s var(--ts-ease-out), transform 0.2s var(--ts-ease-out);
    position: relative;
    overflow: hidden;
}

.ts-event-browser .tac-sold-out-banner {
    position: absolute;
    top: 100px;
    /* Approximate center of the image area */
    left: 0;
    width: 100%;
    background-color: rgba(211, 47, 47, 0.85);
    /* Red semi-transparent */
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ts-event-browser .tc-single-event:hover {
    box-shadow: var(--ts-shadow-4);
    transform: translateY(-2px);
    background-color: #262626;
    /* Slightly lighter on hover */
}

.ts-event-browser .tc-single-event h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-family: var(--font-headings);
    line-height: 1.2;
}

.ts-event-browser .tc-single-event h4 a,
.ts-event-browser .tc-event-content-wrap a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s var(--ts-ease-out);
}

.ts-event-browser .tc-single-event h4 a:hover,
.ts-event-browser .tc-event-content-wrap a:hover {
    color: var(--ts-gold);
}

.ts-event-browser .tc-event-date-wrap {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-event-browser .tc-event-date,
.ts-event-browser .tc-event-location {
    float: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-event-browser .tc-event-date span,
.ts-event-browser .tc-event-location span,
.ts-event-browser .tc-event-excerpt p {
    color: var(--ts-mediumgrey-text);
    font-size: 0.95rem;
}

/* Loader */
.ts-event-browser .tc-listing-loader {
    margin: 32px auto;
}

/* Pagination (Material Style) */
.ts-event-browser .pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    gap: 8px;
}

.ts-event-browser .pagination .page-numbers {
    background-color: transparent;
    color: var(--ts-lightgrey);
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-radius-pill);
    padding: 8px 16px;
    margin: 0;
    transition: background-color 0.2s var(--ts-ease-out), color 0.2s var(--ts-ease-out), border-color 0.2s var(--ts-ease-out);
    min-width: 40px;
    text-align: center;
}

.ts-event-browser .pagination .page-numbers.current {
    background-color: var(--ts-gold);
    color: var(--ts-black);
    border-color: var(--ts-gold);
    font-weight: 600;
}

.ts-event-browser .pagination .page-numbers:hover {
    background-color: rgba(198, 166, 100, 0.2);
    color: var(--ts-gold);
    border-color: var(--ts-gold);
}

/* jQuery UI Datepicker Widget (Materialized Dark Theme) */
.tc-tickera-calendar.ui-datepicker {
    background-color: var(--ts-surface-8) !important;
    border: 1px solid var(--ts-border-color) !important;
    border-radius: var(--ts-radius) !important;
    padding: 16px 16px 20px !important;
    box-shadow: var(--ts-shadow-8) !important;
    color: var(--ts-lightgrey) !important;
    font-family: var(--font-body) !important;
    width: auto !important;
    min-width: 280px;
    max-width: 320px;
    z-index: 9;
}

.tc-tickera-calendar.ui-datepicker table {
    width: 100% !important;
    border: none !important;
    margin: 0 !important;
    border-collapse: collapse !important;
}

.tc-tickera-calendar.ui-datepicker thead {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.tc-tickera-calendar.ui-datepicker th {
    color: var(--ts-mediumgrey-text) !important;
    font-weight: 600 !important;
    padding: 0 0 12px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.tc-tickera-calendar.ui-datepicker td {
    padding: 0 !important;
    border: none !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding: 4px 0 12px !important;
    margin-bottom: 4px !important;
    position: relative !important;
    color: var(--ts-lightgrey) !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-title {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--ts-lightgrey) !important;
    text-align: center !important;
    line-height: 1.4 !important;
    text-transform: capitalize;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev,
.tc-tickera-calendar.ui-datepicker .ui-datepicker-next {
    position: absolute !important;
    top: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ts-gold) !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    text-decoration: none !important;
    bottom: auto !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev {
    left: 8px !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-next {
    right: 8px !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev span,
.tc-tickera-calendar.ui-datepicker .ui-datepicker-next span {
    display: none !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev::after,
.tc-tickera-calendar.ui-datepicker .ui-datepicker-next::after {
    font-size: 1.15rem;
    line-height: 1;
    color: currentColor;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev::after {
    content: '\2039';
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-next::after {
    content: '\203A';
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-prev:hover,
.tc-tickera-calendar.ui-datepicker .ui-datepicker-next:hover {
    background-color: rgba(198, 166, 100, 0.12) !important;
    border-color: rgba(198, 166, 100, 0.4) !important;
}

.tc-tickera-calendar.ui-datepicker .ui-state-default {
    background: transparent !important;
    border: none !important;
    color: var(--ts-lightgrey) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    margin: 4px auto !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    font-weight: 500 !important;
}

.tc-tickera-calendar.ui-datepicker .ui-state-hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.tc-tickera-calendar.ui-datepicker .ui-state-active,
.tc-tickera-calendar.ui-datepicker .ui-state-highlight {
    background: var(--ts-gold) !important;
    color: var(--ts-black) !important;
    border: 1px solid var(--ts-gold) !important;
}

.tc-tickera-calendar.ui-datepicker .ui-datepicker-today .ui-state-default {
    border: 1px solid var(--ts-gold) !important;
}

.tc-tickera-calendar.ui-datepicker .ui-state-disabled span {
    color: var(--ts-mediumgrey-text) !important;
    opacity: 0.4 !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .ts-event-browser .tc-event-filter__row--primary,
    .ts-event-browser .tc-event-filter__row--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ts-event-browser .tc-event-filter__field--button {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ts-event-browser .col-full {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(12px, 4vw, 24px);
        padding-right: clamp(12px, 4vw, 24px);
    }

    .ts-event-browser .tc-event-listing-container {
        margin-left: 0;
        margin-right: 0;
        padding: clamp(16px, 4vw, 24px);
    }

    .ts-event-browser .tc-events-wrap {
        gap: 16px;
    }

    .ts-event-browser .tc-event-filter__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ts-event-browser .tc-event-filter__field--button {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {

    /* Use more viewport width for listings on very small screens */
    .ts-event-browser .col-full {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: clamp(0px, 2vw, 8px);
        padding-right: clamp(0px, 2vw, 8px);
    }

    .ts-event-browser .tc-event-listing-container {
        padding: clamp(10px, 3vw, 14px);
    }

    .ts-event-browser .tc-single-event {
        padding: clamp(12px, 3.5vw, 16px);
    }
}

/* 1. Tickera General Neutralization */
.tc_front_end,
.tc-tickets-container,
.tc-shortcode-container,
.tc-tickets-wrapper {
    /* Remove default bright colors, borders, and shadows */
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--ts-lightgrey) !important;
    font-family: var(--font-body) !important;
}

.tc_front_end h3,
.tc_front_end h4 {
    font-family: var(--font-headings) !important;
    color: #fff !important;
}

/* 2. Ticket Selector Widget (Material Cards) */

/* Ticket Type Rows */
.tc-ticket-type {
    background-color: var(--ts-surface-1);
    border: 1px solid var(--ts-border-color);
    border-radius: var(--ts-radius);
    margin-bottom: 16px;
    padding: 24px;
    box-shadow: var(--ts-shadow-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    transition: box-shadow 0.2s var(--ts-ease-out), transform 0.2s var(--ts-ease-out);
}

.tc-ticket-type:hover {
    box-shadow: var(--ts-shadow-2);
    transform: translateY(-2px);
    background-color: var(--ts-surface-2);
}

.tc-ticket-details {
    flex-grow: 1;
}

.tc-ticket-title,
.tc-ticket-type-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

.tc-ticket-description {
    color: var(--ts-mediumgrey-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tc-ticket-price-value,
.tc-ticket-price-amount,
.tc-price-value {
    color: var(--ts-gold) !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.single-product div.product .summary .price,
.single-product div.product .summary .price .woocommerce-Price-amount.amount {
    color: var(--ts-gold) !important;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.single-product div.product .summary .price {
    display: block;
    margin: 14px 0 24px;
}

.single-product div.product .summary .price .woocommerce-Price-amount.amount {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.single-product div.product .summary .price .woocommerce-Price-currencySymbol {
    font-size: 0.85em;
}

/* Quantity Selectors (+/-) (Material Style) */
.tc-quantity-selector {
    display: flex;
    align-items: center;
    background-color: var(--ts-surface-4);
    border-radius: var(--ts-radius-pill);
    padding: 4px;
    border: 1px solid var(--ts-border-color);
}

.tc-quantity-button {
    background-color: var(--ts-gold) !important;
    color: var(--ts-black) !important;
    border: none !important;
    border-radius: 50%;
    /* Circular buttons */
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s var(--ts-ease-out), box-shadow 0.2s var(--ts-ease-out), transform 0.2s var(--ts-ease-out);
    box-shadow: var(--ts-shadow-1);
}

.tc-quantity-button:hover {
    background-color: #E8C37E !important;
    box-shadow: var(--ts-shadow-2);
    transform: scale(1.1);
}

.tc-quantity-input,
.tc-quantity {
    background-color: transparent !important;
    color: var(--ts-lightgrey) !important;
    border: none !important;
    text-align: center;
    width: 48px;
    margin: 0;
    height: 32px;
    font-weight: 600;
    font-size: 1rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

.tc-quantity-input::-webkit-outer-spin-button,
.tc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 3. Seating Charts (Crucial Customization) */

/* Control Bar (Legend, Timer, Summary) */
.sc_seating_chart_container .sc_seating_chart_controls,
.sc-control-bar,
.sc_legend_container,
.sc_seating_chart_header {
    background-color: var(--ts-surface-4) !important;
    color: var(--ts-lightgrey) !important;
    border-color: var(--ts-border-color) !important;
    border-radius: var(--ts-radius);
    padding: 16px;
}

.sc_seating_chart_legend_item_title {
    color: var(--ts-lightgrey) !important;
    font-size: 0.9rem;
}

/* Urgency: Timer Styling (Prominent Chip) */
.sc_seating_chart_timer,
.tc-countdown-timer,
#sc_countdown_timer {
    font-weight: 700;
    color: var(--ts-gold) !important;
    background-color: var(--ts-surface-1);
    padding: 8px 16px;
    border-radius: var(--ts-radius-pill);
    border: 1px solid var(--ts-gold);
    box-shadow: 0 0 8px rgba(198, 166, 100, 0.3);
    /* Subtle glow */
}

/* 4. SVG Map Styling */

.sc_seating_chart_svg,
svg.tc-seating-chart {
    background-color: var(--ts-surface-1);
    /* Dark background for the map area */
}

/* Available seats: Gold fill */
.sc_seat_available,
.sc_seat_available_path,
.sc_seat.sc_available {
    fill: var(--ts-gold) !important;
    stroke: var(--ts-surface-1) !important;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.sc_seat_available:hover,
.sc_seat.sc_available:hover {
    fill: #ffffff !important;
    /* Brighter on hover */
    transform: scale(1.1);
}

/* Selected seats: White fill, Gold stroke */
.sc_seat_selected,
.sc_seat_selected_path,
.sc_seat.sc_selected {
    fill: #ffffff !important;
    stroke: var(--ts-gold) !important;
    stroke-width: 2px;
}

/* Unavailable seats (Sold): Dark grey */
.sc_seat_unavailable,
.sc_seat_unavailable_path,
.sc_seat.sc_unavailable,
.sc_seat.sc_booked {
    fill: var(--ts-surface-8) !important;
    /* Very dark grey */
    stroke: var(--ts-border-color) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Stage/Labels: Clear white text */
.sc_stage_label,
.sc_label_text,
.sc_area_label {
    fill: var(--ts-lightgrey) !important;
    font-family: var(--font-body);
    font-weight: 600;
}

/*--------------------------------------------------------------
# WooCommerce - YayCurrency Switcher
--------------------------------------------------------------*/
.ts-product-currency-switcher {
    margin: 12px 0 24px;
}

.ts-product-currency-switcher .yay-currency-single-page-switcher {
    width: 100%;
    max-width: 360px;
}

.ts-product-currency-switcher .yay-currency-custom-select-wrapper,
.ts-product-currency-switcher .yay-currency-custom-select {
    width: 100%;
}

.ts-product-currency-switcher .yay-currency-custom-select__trigger {
    background-color: var(--ts-gold) !important;
    color: var(--ts-black) !important;
    border: none !important;
    border-radius: var(--ts-radius-sm) !important;
    padding: 14px 20px !important;
    font-family: var(--font-body);
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--ts-shadow-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.ts-product-currency-switcher .yay-currency-custom-select__trigger:hover,
.ts-product-currency-switcher .yay-currency-custom-select__trigger:focus-visible {
    background-color: #E8C37E !important;
    box-shadow: var(--ts-shadow-2);
    transform: translateY(-1px);
    outline: none;
}

.ts-product-currency-switcher .yay-currency-custom-select__trigger.small {
    height: auto !important;
    min-height: 48px;
    padding: 14px 20px !important;
    font-size: 0.85rem !important;
}

.ts-product-currency-switcher .yay-currency-custom-selected-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-product-currency-switcher .yay-currency-selected-option {
    color: var(--ts-black) !important;
}

.ts-product-currency-switcher .yay-currency-custom-arrow svg {
    stroke: var(--ts-black) !important;
}

.ts-product-currency-switcher .yay-currency-custom-options {
    background-color: var(--ts-surface-2) !important;
    border: 1px solid var(--ts-border-color) !important;
    box-shadow: var(--ts-shadow-4) !important;
    color: var(--ts-lightgrey) !important;
}

.ts-product-currency-switcher .yay-currency-custom-option {
    color: var(--ts-lightgrey) !important;
    font-size: 0.95rem;
    border-radius: var(--ts-radius-sm);
}

.ts-product-currency-switcher .yay-currency-custom-option.selected,
.ts-product-currency-switcher .yay-currency-custom-option:hover {
    background-color: rgba(198, 166, 100, 0.15) !important;
    color: #ffffff !important;
}

.ts-product-currency-switcher .yay-currency-flag {
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.ts-product-currency-switcher .yay-currency-selected-checked-icon svg {
    stroke: var(--ts-gold) !important;
}

@media (max-width: 600px) {
    .ts-product-currency-switcher {
        margin-top: 12px;
    }

    .ts-product-currency-switcher .yay-currency-single-page-switcher {
        max-width: 100%;
    }
}