/* Assigned-seat presentation. Keep seat colors, SVG geometry and JS visibility intact. */
.ticketbest-seat-selection .tb-buy-page--seats {
    background: var(--surface-secondary);
}

.ticketbest-seat-selection .tb-buy-page--seats .event-section {
    background: transparent;
}

.ticketbest-seat-selection .tb-buy-page--seats .hall_header {
    width: min(calc(100% - 48px), var(--container-width));
    grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 360px);
    margin: 24px auto 0;
    padding: 0 0 24px;
    gap: 20px;
    border: 0;
    border-bottom: 1px solid var(--border-default);
    border-radius: 0;
    background: transparent;
}

.ticketbest-seat-selection .tb-buy-page--seats .tb-purchase-poster {
    width: 64px;
    height: 86px;
    border-radius: var(--radius-md);
}

.ticketbest-seat-selection .tb-buy-page--seats .tb-hall-event .entry-title {
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-style: normal;
}

.ticketbest-seat-selection .tb-buy-page--seats .hall_header .price_root {
    min-height: 40px;
    padding: 8px 12px !important;
    border-radius: var(--radius-md);
}

.ticketbest-seat-selection .tb-seat-workspace-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(calc(100% - 48px), var(--container-width));
    margin: 24px auto 16px;
    color: var(--text-primary);
}

.ticketbest-seat-selection .tb-seat-workspace-heading__icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-soft-strong);
    color: var(--brand-primary-active);
}

.ticketbest-seat-selection .tb-seat-workspace-heading h2 {
    margin: 0 0 4px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.ticketbest-seat-selection .tb-seat-workspace-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.ticketbest-seat-selection .tb-buy-page--seats .desktop-layout {
    width: min(calc(100% - 48px), var(--container-width));
    padding-bottom: 176px;
}

.ticketbest-seat-selection .tb-buy-page--seats .checkbox-parent {
    border: 0px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: #cbcbcb00 !important;
}

.ticketbest-seat-selection .tb-buy-page--seats .checkboxes {
    border-radius: inherit;
    min-height: 0 !important;
    padding-bottom: 0;
}

.ticketbest-seat-selection .tb-buy-page--seats #svg_div {
    height: clamp(420px, 60vh, 680px);
}

.ticketbest-seat-selection .tb-buy-page--seats #svg920 {
    width: 100% !important;
    height: 100% !important;
}

.ticketbest-seat-selection .tb-buy-page--seats #example1 svg {
    pointer-events: none;
}

.ticketbest-seat-selection .tb-buy-page--seats .tb-seat-price-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.ticketbest-seat-selection .tb-buy-page--seats #example1 {
    top: 16px;
    right: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.ticketbest-seat-selection .tb-buy-page--seats #example1 .button:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
}

.ticketbest-seat-selection .tb-buy-page .desktop-layout_footer {
    bottom: 16px;
    width: min(calc(100% - 48px), var(--container-width));
    margin-inline: auto;
}

.ticketbest-seat-selection .tb-buy-page .desktop-layout_footer .desktop-hallplan-foooter {
    padding: 16px 20px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
}

.ticketbest-seat-selection .tb-buy-page .desktop-hallplan-footer__ticket-list-item {
    background: var(--surface-secondary);
    border-color: transparent;
}

.ticketbest-seat-selection .tb-buy-page .desktop-hallplan-foooter_button button,
.ticketbest-seat-selection .tb-buy-page .desktop-hallplan-foooter_button a {
    min-height: 52px;
    border-radius: var(--radius-md);
    font-size: 16px;
}

@media (max-width: 991px) {
    .ticketbest-seat-selection .tb-buy-page--seats .hall_header {
        grid-template-columns: 56px minmax(0, 1fr);
        width: calc(100% - 24px);
        margin-top: 16px;
        padding-bottom: 16px;
        gap: 12px;
    }

    .ticketbest-seat-selection .tb-buy-page--seats .tb-purchase-poster {
        width: 56px;
        height: 76px;
    }

    .ticketbest-seat-selection .tb-buy-page--seats .hall_header .price-list {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ticketbest-seat-selection .tb-seat-workspace-heading,
    .ticketbest-seat-selection .tb-buy-page--seats .desktop-layout {
        width: calc(100% - 24px);
    }
}

@media (max-width: 700px) {
    .ticketbest-seat-selection .tb-buy-page--seats #cmsmasters_single_event_header {
        padding-right: 0;
    }

    .ticketbest-seat-selection .tb-buy-page--seats .tb-hall-event .entry-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        font-size: 17px;
    }

    .ticketbest-seat-selection .tb-seat-workspace-heading {
        margin-block: 18px 12px;
        gap: 10px;
    }

    .ticketbest-seat-selection .tb-seat-workspace-heading__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .ticketbest-seat-selection .tb-seat-workspace-heading h2 {
        font-size: 18px;
    }

    .ticketbest-seat-selection .tb-seat-workspace-heading p {
        font-size: 13px;
    }

    .ticketbest-seat-selection .tb-buy-page--seats .checkbox-parent {
        border-radius: var(--radius-lg);
    }

    .ticketbest-seat-selection .tb-buy-page--seats #example1 {
        top: 12px;
        right: 12px;
    }

    .ticketbest-seat-selection .tb-buy-page .mobile__Footer {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: var(--shadow-md);
    }

    .ticketbest-seat-selection .tb-buy-page .mobile__Footer .session-controls {
        padding: 12px 16px;
        gap: 12px;
    }

    .ticketbest-seat-selection .tb-buy-page .mobile__Footer .bQgTwa {
        min-height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .ticketbest-seat-selection .tb-buy-page--seats .hall_header {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticketbest-seat-selection .tb-buy-page--seats .tb-purchase-poster {
        display: none;
    }
}

/* Payment confirmation shares the assigned-seat visual language. */
.ticketbest-seat-selection .session-confirmation [data-blocktype="LayoutSlide/Content"] {
    width: min(calc(100% - 48px), 1040px);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-sm);
}

.ticketbest-seat-selection .session-confirmation .duIJfG {
    padding: 32px;
    gap: 28px;
}

.ticketbest-seat-selection .session-confirmation .tb-checkout-columns {
    gap: 32px;
}

.ticketbest-seat-selection .session-confirmation .tb-checkout-heading {
    font-size: 18px;
    letter-spacing: -.015em;
}

.ticketbest-seat-selection .session-confirmation .pay-master {
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.ticketbest-seat-selection .session-confirmation .pay-master:has(input:checked) {
    border-color: var(--brand-primary) !important;
    box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.ticketbest-seat-selection .session-confirmation .tb-checkout-tickets {
    padding: 24px;
    background: var(--surface-secondary);
    border-color: transparent;
}

.ticketbest-seat-selection .session-confirmation .price-details {
    padding: 20px 0;
    background: transparent;
    border-top: 1px solid var(--border-default);
    border-radius: 0;
}

.ticketbest-seat-selection .session-confirmation .payment-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--brand-primary);
    color: var(--text-inverse);
    box-shadow: none;
    cursor: pointer;
}

.ticketbest-seat-selection .session-confirmation .payment-button:hover:not(:disabled) {
    background: var(--brand-primary-hover);
}

.ticketbest-seat-selection .session-confirmation .payment-button:active:not(:disabled) {
    background: var(--brand-primary-active);
}

.ticketbest-seat-selection .session-confirmation .payment-button:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 3px;
}

.ticketbest-seat-selection .session-confirmation .payment-button:disabled {
    opacity: .6;
    cursor: wait;
}

.ticketbest-seat-selection .session-confirmation .payment-button .hIWTYo {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    gap: 12px;
}

.ticketbest-seat-selection .session-confirmation .payment-button .hIWTYo > span:first-child {
    flex: 1 1 180px;
}

.ticketbest-seat-selection .session-confirmation .payment-button .kHCDzl {
    white-space: nowrap;
    font-weight: 750;
}

@media (max-width: 700px) {
    .ticketbest-seat-selection .session-confirmation [data-blocktype="LayoutSlide/Content"] {
        width: calc(100% - 24px);
    }

    .ticketbest-seat-selection .session-confirmation .duIJfG {
        padding: 20px 16px;
        gap: 20px;
    }

    .ticketbest-seat-selection .session-confirmation .tb-checkout-columns {
        gap: 20px;
    }

    .ticketbest-seat-selection .session-confirmation .tb-checkout-tickets {
        padding: 16px;
    }

    .ticketbest-seat-selection .session-confirmation .payment-button {
        padding: 16px;
    }
}

/* Compact seat tiles inspired by the supplied seating reference. */
.ticketbest-seat-selection .tb-seat-tile {
    stroke-linejoin: round;
}

.ticketbest-seat-selection .tb-seat-tile[data-price]:not([data-sold="true"]):hover {
    filter: brightness(1.12);
}

.ticketbest-seat-selection .tb-seat-tile[data-selected="true"] {
    paint-order: stroke fill;
}

.ticketbest-seat-selection .tb-buy-page--seats .checkbox-parent {
    box-shadow: none;
}

.ticketbest-seat-selection .tb-buy-page .desktop-hallplan-foooter_summary .kHCDzl {
    font-variant-numeric: tabular-nums;
}

/* Unavailable inventory remains visibly neutral in both themes. */
.ticketbest-seat-selection .tb-seat-tile[data-seat-inactive="true"] {
    fill: color-mix(in srgb, var(--brand-neutral) 45%, var(--surface-primary)) !important;
    stroke: none !important;
    filter: none !important;
    cursor: default;
}

/* Allow fullscreen purchase panels to stack above the shared site header. */
.ticketbest-seat-selection .tb-buy-page #middle {
    z-index: auto;
}

.ticketbest-seat-selection .tb-buy-page .main-sidebar {
    z-index: 100;
}
