/* Tickets Module - product page seat map (js/tickets-seat-selector.js) */

.pta-tickets {
    margin: 1em 0 1.5em;
    clear: both;
}

.pta-tickets [hidden] {
    display: none !important;
}

.pta-tickets__date {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pta-tickets__performances {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0.5em 0 1em;
}

.pta-tickets__performances-label {
    font-weight: 600;
    margin-right: 4px;
}

.pta-tickets__performance {
    padding: 6px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1.3;
}

button.pta-tickets__performance {
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    margin: 0;
}

button.pta-tickets__performance:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.pta-tickets__performance small {
    display: block;
    font-size: 0.8em;
}

.pta-tickets__performance.is-current {
    background: #1d2327;
    border-color: #1d2327;
    color: #fff;
}

.pta-seatmap,
.pta-tickets__legend {
    --pta-taken: #c3c4c7;
    --pta-selected: #ff6d00;
    --pta-accent: #2271b1;
    --pta-off: #dcdcde;
    --pta-off-fill: #f6f7f7;
    --pta-off-text: #a7aaad;
}

.pta-seatmap__loading,
.pta-seatmap__error {
    padding: 2em;
    text-align: center;
    background: #f6f7f7;
    border-radius: 8px;
}

.pta-seatmap__notice:empty {
    display: none;
}

.pta-seatmap__notice {
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #f0f6fc;
    border-left: 4px solid var(--pta-accent);
}

.pta-seatmap__notice[data-kind="error"] {
    background: #fcf0f1;
    border-left-color: #d63638;
}

.pta-seatmap__family {
    padding: 10px 14px;
    background: #fcf9e8;
    border-left: 4px solid #dba617;
    border-radius: 6px;
    font-size: 0.95em;
}

.pta-seatmap__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.85em;
    margin: 8px 0;
}

.pta-seatmap__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pta-tickets-stage {
    clear: both;
    margin: 0 0 32px;
}

.pta-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 0 8px;
}

.pta-sections__chip {
    flex: none;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 999px;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-size: 0.9em;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: none;
}

.pta-sections__chip.is-off {
    color: var(--pta-off-text);
}

.pta-sections__chip.is-current {
    background: #1d2327;
    border-color: #1d2327;
    color: #fff;
}

.pta-seatmap__frame {
    position: relative;
}

.pta-seatmap__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.pta-seatmap__tools {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.pta-seatmap__back {
    position: absolute;
    top: 8px;
    left: 8px;
    display: none;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: none;
}

.pta-seatmap.is-zoomed .pta-seatmap__back,
.pta-seatmap.is-section .pta-seatmap__back {
    display: block;
}

.pta-seatmap__hint {
    display: none;
    margin: 0;
    font-size: 0.85em;
    color: #50575e;
}

.pta-seatmap.is-small:not(.is-section) .pta-seatmap__hint {
    display: block;
}

.pta-seatmap__zoom {
    min-width: 40px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.pta-seatmap__viewport {
    overflow: auto;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fafafa;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.pta-seatmap__sizer {
    position: relative;
    margin: 0 auto;
}

.pta-seatmap__canvas {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.pta-block {
    position: absolute;
    box-sizing: border-box;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
}

.pta-block--stage {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 6px 6px 24px 24px;
}

.pta-block--area {
    color: #3c3c3c;
    border: 2px dashed rgba(0, 0, 0, 0.25);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 8px, transparent 8px 16px);
    padding: 4px;
}

.pta-block--label {
    font-weight: 700;
}

.pta-block--seats {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2px 4px 4px;
    overflow: visible;
}

.pta-block--seats.is-off {
    --seat: var(--pta-off-text);
}

.pta-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
}

.pta-rowline {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.pta-cells {
    flex: 1;
    display: flex;
    gap: 2px;
    min-width: 0;
}

.pta-rowline.stagger-a .pta-cells {
    padding-right: calc(50% / var(--n));
}

.pta-rowline.stagger-b .pta-cells {
    padding-left: calc(50% / var(--n));
}

.pta-row {
    flex: 0 0 10px;
    font-size: 9px;
    font-weight: 700;
    align-self: center;
    padding-right: 2px;
    color: var(--seat, #50575e);
}

.pta-rowline.pta-nums {
    flex: 0 0 11px;
}

.pta-num {
    flex: 1 1 0;
    min-width: 0;
    font-size: 8px;
    font-weight: 600;
    line-height: 11px;
    text-align: center;
    color: var(--seat, #50575e);
    white-space: nowrap;
}

.pta-seat,
.pta-gap {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
}

.pta-seat {
    display: block;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--seat, var(--pta-accent));
    border-radius: 3px 3px 5px 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    font-size: 0;
    -webkit-tap-highlight-color: transparent;
    transition: none;
}

.pta-seat:focus-visible {
    outline: 2px solid #1d2327;
    outline-offset: 1px;
    z-index: 1;
}

@media (hover: hover) {
    .pta-seat:hover:not(:disabled) {
        outline: 2px solid #1d2327;
        outline-offset: 1px;
        z-index: 1;
    }
}

.pta-seat.is-selected {
    background: var(--pta-selected);
    border-color: var(--pta-selected);
}

.pta-seat.is-selected::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.pta-seat.is-accessible {
    background: #1565c0;
    border-color: #1565c0;
    border-radius: 50%;
}

.pta-seat.is-accessible.is-wide {
    border-radius: 999px;
}

.pta-seat.is-companion {
    background: #90caf9;
    border-color: #1565c0;
}

.pta-seat.is-accessible.is-selected,
.pta-seat.is-companion.is-selected {
    background: var(--pta-selected);
    border-color: var(--pta-selected);
}

.pta-seat.is-accessible:not(.is-selected)::after {
    content: "♿";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.pta-seat.is-taken,
.pta-seat.is-mine {
    background: var(--pta-taken);
    border-color: var(--pta-taken);
    cursor: not-allowed;
}

.pta-seat.is-pending {
    background: var(--pta-selected);
    border-color: var(--pta-selected);
    opacity: 0.5;
    cursor: progress;
}

.pta-seat.is-off {
    background: var(--pta-off-fill);
    border-color: var(--pta-off);
    cursor: not-allowed;
}

.pta-seat.is-accessible.is-off::after {
    color: var(--pta-off-text);
}

.pta-seat.is-mine {
    background: repeating-linear-gradient(45deg, #8c8f94 0 2px, var(--pta-taken) 2px 4px);
}

.pta-block.is-locked .pta-seat:not(:disabled) {
    opacity: 0.45;
}

.pta-seat.is-demo {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    cursor: default;
}

.pta-seat.is-demo.is-wide {
    width: 28px;
}

.pta-hold {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9999;
    padding: 10px 16px;
    background: #ffc934;
    color: #1d2327;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

body.admin-bar .pta-hold {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .pta-hold {
        top: 46px;
    }
}

.pta-hold__clock {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.pta-hold.is-ending {
    background: #b32d2e;
    color: #fff;
}

.pta-hold.is-ended {
    background: #50575e;
    color: #fff;
}

body.has-pta-hold {
    padding-top: var(--pta-hold-height, 48px);
}

.pta-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 6px;
}

.pta-count {
    flex: 1 1 140px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

.pta-count__label {
    font-weight: 600;
}

.pta-count__n {
    grid-row: 1 / 3;
    grid-column: 2;
    min-width: 2ch;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
}

.pta-count small {
    color: #50575e;
}

.pta-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}

.pta-modal__box {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow: auto;
    padding: 20px 22px;
    background: #fff;
    color: #1d2327;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pta-modal__box h3 {
    margin: 0 0 0.6em;
}

.pta-modal__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    padding: 12px;
    background: #f0f6fc;
    border-radius: 6px;
    cursor: pointer;
}

.pta-modal__check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: none;
}

.pta-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pta-modal__actions .button {
    min-height: 44px;
}

.pta-modal__confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pta-extras {
    margin: 1.5em 0;
}

.pta-extras__done {
    padding: 10px 14px;
    background: #edfaef;
    border-left: 4px solid #00a32a;
    border-radius: 6px;
    font-weight: 600;
}

.pta-extras__heading {
    margin: 0.8em 0 0.5em;
}

.pta-extras__next {
    margin-top: 1em;
}

.pta-extras__continue {
    display: block;
    width: 100%;
    min-height: 48px;
    line-height: 48px;
    text-align: center;
    padding: 0;
}

.pta-extras--cart {
    clear: both;
    padding-top: 1em;
    border-top: 1px solid #dcdcde;
}

.pta-block--ga {
    flex-direction: column;
    gap: 2px;
    border: 2px solid;
    color: #1d2327;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    padding: 4px;
}

.pta-block--ga span {
    font-size: 11px;
}

.pta-seatmap__general h3,
.pta-seatmap__summary h3 {
    font-size: 1.05em;
    margin: 1em 0 0.5em;
}

.pta-ga {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.3s;
}

.pta-ga.is-flash {
    background: #fcf9e8;
}

.pta-ga__step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pta-ga__step button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #1d2327;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.pta-ga__step button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pta-ga__step output {
    min-width: 2ch;
    text-align: center;
    font-weight: 700;
}

.pta-summary__empty {
    color: #50575e;
    margin: 1em 0;
}

.pta-summary__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pta-summary__item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4px 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.pta-summary__name {
    grid-column: 1 / 3;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 16px; /* stops iOS zooming the page on focus */
}

.pta-summary__item:not(:has(.pta-summary__remove)) .pta-summary__name {
    grid-column: 1 / 4;
}

.pta-summary__remove {
    grid-row: 1 / 3;
    grid-column: 3;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #d63638;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
}

.pta-summary__confirm {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 0;
    padding: 10px;
    background: #f0f6fc;
    border-radius: 6px;
}

.pta-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    margin: 12px 0;
}

.pta-summary__add {
    width: 100%;
    min-height: 48px;
    font-size: 1.05em;
}

.pta-seatmap.is-small:not(.is-section) .pta-block--seats {
    cursor: zoom-in;
}
