.wsr-qty-help {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #2f2f2f;
}

.wsr-seat-map-wrapper {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #d9d9d9;
    background: #f7f7f7;
}

.wsr-seat-map-wrapper h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.wsr-seat-map-help {
    margin: 0 0 0.75rem;
    color: #555;
}

.wsr-seat-map-preview-block {
    margin: 0 0 0.9rem;
}

.wsr-seat-map-preview-block__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #222;
}

.wsr-seat-map-preview-block__description {
    margin: 0 0 0.6rem;
    color: #555;
}

.wsr-seat-map-preview-button {
    display: inline-block;
    font-family: inherit, sans-serif;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.wsr-seat-map-preview-image {
    display: block;
    width: min(240px, 100%);
    height: auto;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.wsr-product-hold-timer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d4c48a;
    background: #fff8dc;
    color: #6f5a19;
    font-size: 0.9rem;
}

.wsr-product-hold-timer--hidden {
    display: none;
}

.wsr-product-hold-timer--expired {
    border-color: #d1a2a2;
    background: #fff0f0;
    color: #8a3d3d;
}

.wsr-modal-hold-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid #d4c48a;
    background: #fff8dc;
    color: #6f5a19;
    font-size: 0.85rem;
}

.wsr-modal-hold-timer--hidden {
    display: none;
}

.wsr-modal-hold-timer--expired {
    border-color: #d1a2a2;
    background: #fff0f0;
    color: #8a3d3d;
}

.wsr-mode-toggle {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wsr-option-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.5rem 0;
    font-weight: 600;
}

.wsr-open-lightbox {
    margin: 0.4rem 0 0.7rem;
}

.wsr-open-lightbox[hidden] {
    display: none !important;
}

.wsr-selection-summary {
    margin-top: 0.9rem;
    padding: 0.8rem;
    border: 1px solid #d4d4d4;
    background: #fff;
}

.wsr-selection-summary p {
    margin: 0.3rem 0;
}

.wsr-selection-summary__total {
    font-weight: 700;
}

.wsr-selection-summary__breakdown {
    color: #444;
    font-size: 0.92rem;
}

.wsr-selection-summary__hint {
    color: #8a5a00;
    font-size: 0.9rem;
}

.wsr-seat-map-meta {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #333;
}

.wsr-seat-map {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 160px;
    opacity: 0.45;
    pointer-events: none;
}

.wsr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.wsr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.wsr-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 2rem));
    height: calc(100vh - 2rem);
    margin: 1rem auto;
    padding: 0;
    border-radius: 8px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wsr-lightbox__dialog h4 {
    margin: 0 0 0.6rem;
}

.wsr-lightbox__header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #dfdfdf;
    background: #f7f7f7;
}

.wsr-lightbox__title-wrap {
    min-width: 0;
}

.wsr-lightbox__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.wsr-lightbox__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.wsr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #444;
}

.wsr-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.wsr-legend-dot--available {
    background: #3aa7f2;
}

.wsr-legend-dot--selected {
    background: #bf3f8a;
}

.wsr-legend-dot--booked {
    background: #c9c9c9;
}

.wsr-legend-dot--blocked {
    background: #d46d6d;
}

.wsr-lightbox__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.wsr-lightbox__dialog--image {
    width: min(1280px, calc(100vw - 2rem));
    background: #fff;
}

.wsr-lightbox__header--image {
    border-bottom-color: #e2e2e2;
    background: #fff;
    color: #222;
}

.wsr-lightbox__body--image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
}

.wsr-seat-map-full-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.wsr-finish-selection {
    margin-top: 0;
}

body.wsr-lightbox-open {
    overflow: hidden;
}

.wsr-page-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsr-page-overlay[hidden] {
    display: none !important;
}

.wsr-page-overlay__spinner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 5px solid #d8d8d8;
    border-top-color: #bf3f8a;
    animation: wsr-spin 0.9s linear infinite;
}

@keyframes wsr-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wsr-seat-map[data-enabled="1"] {
    opacity: 1;
    pointer-events: auto;
}

.wsr-table-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsr-table-core {
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: #ececec;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
}

.wsr-table-wrap--blocked .wsr-table-core {
    background: #dfdfdf;
    color: #777;
}

.wsr-seat {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #2e8ecf;
    background: #3aa7f2;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    margin: -17px 0 0 -17px;
    line-height: 1;
}

.wsr-seat--booked {
    border-color: #aeaeae;
    background: #c9c9c9;
    color: #666;
    cursor: not-allowed;
}

.wsr-seat--selected {
    border-color: #a53477;
    background: #bf3f8a;
}

.wsr-seat--blocked {
    border-color: #b45151;
    background: #d46d6d;
    color: #fff;
    cursor: not-allowed;
}

.wsr-seat-map-notice.woocommerce-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d4c48a;
  background: #fff8dc;
  color: #6f5a19;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
    .wsr-table-wrap {
        width: 200px;
        height: 200px;
    }

    .wsr-table-core {
        width: 84px;
        height: 84px;
        font-size: 0.85rem;
    }

    .wsr-seat {
        width: 30px;
        height: 30px;
        margin: -15px 0 0 -15px;
    }

    .wsr-lightbox__dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
        height: calc(100vh - 1rem);
    }

    .wsr-lightbox__header {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
    }

    .wsr-lightbox__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .wsr-lightbox__legend {
        padding: 0.65rem 0.8rem;
    }

    .wsr-lightbox__body {
        padding: 0.8rem;
    }

    .wsr-seat-map-preview-image {
        width: 100%;
        max-width: 220px;
    }

    .wsr-lightbox__dialog--image {
        width: calc(100vw - 1rem);
    }

    .wsr-seat-map-full-image {
        max-height: calc(100vh - 7rem);
    }
}

.wsr-top-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    background: linear-gradient(to bottom, #bf3f8a 0%, rgba(191, 63, 138, 0.9) 100%);
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wsr-top-spinner[hidden] {
    display: none !important;
}

.wsr-top-spinner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.wsr-top-spinner__loader {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: wsr-spin 0.9s linear infinite;
    flex-shrink: 0;
}

.wsr-top-spinner__text {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}
