/* ============================================================
   Wahala Tickets — Payment Details UI
   Matches wahala-theme colour palette and component style
   ============================================================ */

/* ── Modal overlay ──────────────────────────────────────────── */

body.wn-modal-open {
    overflow: hidden;
}

.wn-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wn-modal[hidden] { display: none; }

.wn-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.wn-modal__inner {
    position: relative;
    z-index: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wn-modal__body {
    overflow-y: auto;
    padding: 0 40px;
    flex: 1;
}

.wn-modal__footer {
    padding: 20px 40px 28px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #111;
    flex-shrink: 0;
}

.wn-modal__footer-note {
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .wn-modal__body   { padding: 0 20px; }
    .wn-modal__footer { padding: 16px 20px 24px; }
}

/* ── Add sections (ticket + tshirt) ─────────────────────────── */

.wn-add-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wn-add-section__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f5f5f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-add-section__badge {
    font-size: 0.72rem;
    color: #dfa202;
    background: rgba(223, 162, 2, 0.12);
    border: 1px solid rgba(223, 162, 2, 0.25);
    border-radius: 20px;
    padding: 2px 10px;
    font-weight: 400;
}

.wn-add-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form__group--grow {
    flex: 1;
    min-width: 180px;
}

.wn-qty-group {
    flex-shrink: 0;
}

/* Qty stepper */
.wn-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    height: 48px;
}

.wn-qty-btn {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.wn-qty-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f0;
}

.wn-qty-input {
    width: 44px;
    text-align: center;
    background: transparent;
    border: none;
    color: #f5f5f0;
    font-size: 0.95rem;
    -moz-appearance: textfield;
    appearance: textfield;
    pointer-events: none;
}

.wn-qty-input::-webkit-inner-spin-button,
.wn-qty-input::-webkit-outer-spin-button { display: none; }

.wn-add-btn-group {
    flex-shrink: 0;
}

.wn-add-btn-group .btn {
    height: 48px;
    white-space: nowrap;
}

.wn-section-error {
    font-size: 0.82rem;
    color: #e05252;
    margin: 0;
    min-height: 1em;
}

/* Tshirt section add button */
.wn-add-tshirt-bottom {
    margin-top: 4px;
}

/* Picker hint */
.wn-picker-hint {
    font-size: 0.82rem;
    color: #e05252;
    margin: 0;
    min-height: 1.2em;
}

/* ── Cart ───────────────────────────────────────────────────── */

.wn-cart {
    border: 1px solid rgba(223, 162, 2, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.wn-cart__header {
    padding: 12px 20px;
    background: rgba(223, 162, 2, 0.06);
    border-bottom: 1px solid rgba(223, 162, 2, 0.15);
}

.wn-cart__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #dfa202;
}

.wn-cart__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wn-cart__item-name {
    flex: 1;
    font-size: 0.9rem;
    color: #f5f5f0;
}

.wn-cart__qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wn-cart__qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #f5f5f0;
}

.wn-cart__qty-dec,
.wn-cart__qty-inc {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #888;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wn-cart__qty-dec:hover,
.wn-cart__qty-inc:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f0;
}

.wn-cart__item-price {
    font-size: 0.9rem;
    color: #f5f5f0;
    min-width: 90px;
    text-align: right;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

.wn-cart__remove {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 1px solid rgba(224, 82, 82, 0.2);
    background: transparent;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wn-cart__remove:hover {
    border-color: #e05252;
    color: #e05252;
    background: rgba(224, 82, 82, 0.08);
}

.wn-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wn-cart__total > span:first-child {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wn-cart__total-amount {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #dfa202;
}

@media (max-width: 500px) {
    .wn-cart__row { gap: 8px; padding: 10px 14px; }
    .wn-cart__item-price { min-width: 70px; font-size: 0.82rem; }
}

/* ── Form additions ─────────────────────────────────────────── */

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form__select option {
    background: #111;
    color: #f5f5f0;
}

/* ── T-shirt upsell ─────────────────────────────────────────── */

.wn-upsell {
    border: 1px solid rgba(223, 162, 2, 0.2);
    border-radius: 10px;
    padding: 20px 24px;
    background: rgba(223, 162, 2, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wn-upsell__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wn-upsell__header .form__label {
    margin-bottom: 0;
}

.wn-upsell__price-badge {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #dfa202;
    background: rgba(223, 162, 2, 0.12);
    border: 1px solid rgba(223, 162, 2, 0.25);
    border-radius: 20px;
    padding: 2px 10px;
}

.wn-upsell__options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 4px;
}

.wn-upsell__row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wn-upsell__attr-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    min-width: 40px;
}

/* Color buttons */
.wn-upsell__color-picker {
    display: flex;
    gap: 8px;
}

.wn-color-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.wn-color-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f5f5f0;
}

.wn-color-btn.active {
    border-color: #dfa202;
    color: #f5f5f0;
    background: rgba(223, 162, 2, 0.1);
}

.wn-color-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wn-color-swatch--black {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.2);
}

.wn-color-swatch--white {
    background: #f5f5f0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Size buttons */
.wn-upsell__size-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wn-size-btn {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #888;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.wn-size-btn:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f5f5f0;
}

.wn-size-btn.active {
    border-color: #dfa202;
    color: #dfa202;
    background: rgba(223, 162, 2, 0.1);
}

.wn-upsell__hint {
    font-size: 0.82rem;
    color: #e05252;
    margin: 0;
    min-height: 1.2em;
}

/* ── Currency toggle ────────────────────────────────────────── */

.wn-currency-group {
    margin-top: 8px;
}

.wn-currency-toggle {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.wn-currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #888;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.wn-currency-option:last-child {
    border-right: none;
}

.wn-currency-option input[type="radio"] {
    display: none;
}

.wn-currency-option--active {
    background: rgba(223, 162, 2, 0.12);
    color: #dfa202;
}

.wn-currency-option:hover:not(.wn-currency-option--active) {
    background: rgba(255, 255, 255, 0.04);
    color: #f5f5f0;
}

/* ── Revolut payment screen ─────────────────────────────────── */

.wn-payment__revolut {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.wn-payment__revolut-amount {
    text-align: center;
}

.wn-payment__revolut-amount .wn-payment__label {
    display: block;
    margin-bottom: 8px;
}

.wn-payment__revolut-amount .wn-payment__revolut-note {
    font-size: 0.82rem;
    color: #666;
    margin-top: 8px;
}

.wn-payment__revolut-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    text-decoration: none;
}

.wn-payment__revolut-instructions {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
    text-align: left;
}

.wn-payment__revolut-instructions p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.wn-payment__revolut-instructions p:last-child {
    margin-bottom: 0;
}

.wn-payment__revolut-instructions strong {
    color: #f5f5f0;
}

.wn-payment__revolut-note-value {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.wn-payment__revolut-note-value code {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: #dfa202;
    letter-spacing: 0.04em;
}

.wn-copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #888;
    font-size: 0.78rem;
    padding: 4px 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.wn-copy-btn:hover {
    border-color: #dfa202;
    color: #dfa202;
}

.wn-payment__revolut-note-hint {
    font-size: 0.8rem !important;
    color: #555 !important;
}

.wn-form-error {
    color: #e05252;
    font-size: 0.9rem;
    margin: 0 0 16px;
    padding: 12px 16px;
    background: rgba(224, 82, 82, 0.1);
    border: 1px solid rgba(224, 82, 82, 0.3);
    border-radius: 6px;
}

/* ── Payment details panel ──────────────────────────────────── */

.wn-payment {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0 80px;
}

.wn-payment__check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #00a878;
    background: rgba(0, 168, 120, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #00a878;
    margin: 0 auto 28px;
}

.wn-payment__heading {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f5f5f0;
    margin-bottom: 12px;
}

.wn-payment__subheading {
    color: #888;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 48px;
}

/* ── Two-column grid ────────────────────────────────────────── */

.wn-payment__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    text-align: left;
}

@media (max-width: 680px) {
    .wn-payment__grid {
        grid-template-columns: 1fr;
    }
}

/* ── Payment details column ─────────────────────────────────── */

.wn-payment__details,
.wn-payment__qr-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px;
}

.wn-payment__section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #dfa202;
    margin-bottom: 20px;
}

.wn-payment__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wn-payment__row:last-of-type {
    border-bottom: none;
}

.wn-payment__row--highlight {
    background: rgba(223, 162, 2, 0.06);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 4px -14px;
    border-bottom: none;
}

.wn-payment__label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.wn-payment__value {
    font-size: 0.95rem;
    color: #f5f5f0;
    text-align: right;
    word-break: break-all;
}

.wn-payment__mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.wn-payment__amount {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #dfa202;
}

.wn-payment__amount span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

.wn-payment__vs {
    color: #dfa202;
    font-size: 1.05rem;
    font-weight: 600;
}

.wn-payment__warning {
    margin-top: 20px;
    font-size: 0.82rem;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 10px 14px;
    line-height: 1.5;
}

/* ── QR column ──────────────────────────────────────────────── */

.wn-payment__qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}

.wn-payment__qr-hint {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.wn-payment__qr-img {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    margin-bottom: 16px;
}

.wn-payment__qr-note {
    font-size: 0.78rem;
    color: #666;
    letter-spacing: 0.03em;
}

/* ── Footer note ────────────────────────────────────────────── */

.wn-payment__email-note {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
}

/* ── Product Selector ──────────────────────────────────────── */

.wn-ps {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.wn-ps__group-label {
    padding: 10px 24px 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wn-ps__group-label:first-child {
    border-top: none;
}

.wn-ps__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.wn-ps__row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.wn-ps__row--active {
    background: rgba(223, 162, 2, 0.05);
}

.wn-ps__row--active:hover {
    background: rgba(223, 162, 2, 0.08);
}

.wn-ps__row-info {
    flex: 1;
    min-width: 0;
}

.wn-ps__row-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #f5f5f0;
    font-weight: 500;
}

.wn-ps__row-desc {
    display: block;
    font-size: 0.78rem;
    color: #555;
    margin-top: 2px;
}

.wn-ps__row-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.wn-ps__row-price {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.wn-ps__row--active .wn-ps__row-price {
    color: #dfa202;
}

.wn-ps__qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.wn-ps__btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wn-ps__btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f0;
}

.wn-ps__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.wn-ps__qty {
    min-width: 28px;
    text-align: center;
    font-size: 0.88rem;
    color: #f5f5f0;
    font-weight: 500;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 4px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wn-ps__expand {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.2s;
    flex-shrink: 0;
}

.wn-ps__expand:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f0;
}

.wn-ps__expand.open {
    transform: rotate(180deg);
    color: #dfa202;
    border-color: rgba(223, 162, 2, 0.3);
}

.wn-ps__variants {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.wn-ps__row--variant {
    padding-left: 48px;
    justify-content: space-between;
}

.wn-ps__variant-size {
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    min-width: 36px;
}

.wn-ps__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.wn-ps__footer-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wn-ps__footer-total-label {
    font-size: 0.72rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wn-ps__footer-total-amount {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #dfa202;
}

@media (max-width: 580px) {
    .wn-ps__row         { padding: 12px 16px; gap: 10px; }
    .wn-ps__group-label { padding: 8px 16px; }
    .wn-ps__row--variant { padding-left: 28px; }
    .wn-ps__row-price   { min-width: 60px; font-size: 0.8rem; }
    .wn-ps__footer      { padding: 16px; flex-direction: column; align-items: stretch; }
    .wn-ps__footer-total { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* ── Checkout Overlay ──────────────────────────────────────── */

.wn-checkout {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wn-checkout[hidden] { display: none; }

.wn-checkout__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.wn-checkout__panel {
    position: relative;
    z-index: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wn-checkout__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.wn-checkout__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f5f5f0;
    margin: 0;
}

.wn-checkout__close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.wn-checkout__close:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f0;
}

/* Mobile summary */
.wn-checkout__msummary {
    display: none;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wn-checkout__msummary-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(223, 162, 2, 0.05);
    border: none;
    color: #f5f5f0;
    cursor: pointer;
    text-align: left;
}

.wn-checkout__msummary-label {
    font-size: 0.82rem;
    color: #888;
    flex: 1;
}

.wn-checkout__msummary-total {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #dfa202;
}

.wn-checkout__msummary-chevron {
    font-size: 0.65rem;
    color: #666;
}

.wn-checkout__msummary-body {
    padding: 12px 20px 16px;
    background: rgba(0, 0, 0, 0.2);
}

.wn-checkout__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wn-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.wn-checkout__col-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #dfa202;
    margin: 0 0 20px;
}

.wn-checkout__form-col {
    display: flex;
    flex-direction: column;
}

.wn-checkout__summary-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.wn-checkout__summary-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wn-checkout__srow {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wn-checkout__srow:last-child { border-bottom: none; }

.wn-checkout__srow-name  { font-size: 0.88rem; color: #f5f5f0; }
.wn-checkout__srow-meta  { font-size: 0.78rem; color: #555; white-space: nowrap; }

.wn-checkout__srow-price {
    font-size: 0.88rem;
    color: #f5f5f0;
    text-align: right;
    white-space: nowrap;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
}

.wn-checkout__srow--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.wn-checkout__srow--total span:first-child {
    font-size: 0.72rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wn-checkout__srow--total span:last-child {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dfa202;
}

.wn-checkout__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wn-checkout__summary-total span:first-child {
    font-size: 0.72rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wn-checkout__summary-total span:last-child {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #dfa202;
}

/* Payment section */
.wn-checkout__payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wn-checkout__payment-label {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.wn-checkout__error {
    color: #e05252;
    font-size: 0.88rem;
    padding: 10px 14px;
    background: rgba(224, 82, 82, 0.08);
    border: 1px solid rgba(224, 82, 82, 0.25);
    border-radius: 6px;
    margin: 0;
}

.wn-checkout__pay-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wn-checkout__pay-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.wn-checkout__pay-btn--primary {
    background: #dfa202;
    border: 1px solid #dfa202;
    color: #0a0a0a;
}

.wn-checkout__pay-btn--primary:hover:not(:disabled) {
    background: #f0b000;
    border-color: #f0b000;
}

.wn-checkout__pay-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f0;
}

.wn-checkout__pay-btn--outline:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.45);
}

.wn-checkout__pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wn-checkout__payment-note {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Payment active state — class-based, overrides any theme CSS */
.wn-checkout__panel.wn-payment-active #wn-checkout-form,
.wn-checkout__panel.wn-payment-active .wn-checkout__msummary {
    display: none !important;
}

.wn-checkout__panel.wn-payment-active #wn-payment-inline {
    display: flex !important;
    flex: 1;
    overflow-y: auto;
}

.wn-checkout__payment-inline {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.wn-checkout__payment-inline[hidden] { display: none !important; }

/* ── Inline payment details (.wn-pi__*) ──────────────────── */

.wn-pi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.wn-pi__check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #00a878;
    background: rgba(0, 168, 120, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #00a878;
}

.wn-pi__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #f5f5f0;
    margin: 0;
}

.wn-pi__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.wn-pi__row:last-of-type { border-bottom: none; }

.wn-pi__row--hl {
    background: rgba(223, 162, 2, 0.06);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 2px -12px;
    border-bottom: none;
}

.wn-pi__label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.wn-pi__value {
    font-size: 0.88rem;
    color: #f5f5f0;
    text-align: right;
    word-break: break-all;
}

.wn-pi__mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.wn-pi__amount {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #dfa202;
}

.wn-pi__amount small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

.wn-pi__vs {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dfa202;
    letter-spacing: 0.05em;
}

.wn-pi__warning {
    font-size: 0.78rem;
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
}
.wn-pi__warning--alert {
    color: #e05252;
    background: rgba(224, 82, 82, 0.07);
    border-color: rgba(224, 82, 82, 0.28);
    font-weight: 600;
}

.wn-pi__qr {
    display: block;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.wn-pi__qr-note {
    font-size: 0.75rem;
    color: #555;
    margin: -4px 0 0;
}

.wn-pi__email-note { font-size: 0.82rem; color: #666; }

.wn-pi__expiry-warn {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(223,162,2,0.85);
    background: rgba(223,162,2,0.06);
    border: 1px solid rgba(223,162,2,0.2);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 4px 0 12px;
    text-align: left;
}
.wn-pi__expiry-warn strong { color: #dfa202; }

.wn-pi__done {
    width: 100%;
}

.wn-pi__sub {
    font-size: 0.88rem;
    color: #888;
    margin: -4px 0 0;
}

.wn-pi__revolut-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.wn-pi__ref-block {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.wn-pi__ref-label {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 10px;
}

.wn-pi__copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
}

.wn-pi__copy-row code {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: #dfa202;
    letter-spacing: 0.04em;
}

.wn-pi__ref-hint {
    font-size: 0.75rem;
    color: #555;
    margin: 8px 0 0;
}

/* Checkout responsive */
@media (max-width: 700px) {
    .wn-checkout__grid        { grid-template-columns: 1fr; }
    .wn-checkout__msummary    { display: block; }
    .wn-checkout__summary-col { display: none; }
    .wn-checkout__body        { padding: 16px 20px; gap: 16px; }
    .wn-checkout__header      { padding: 16px 20px; }
    .wn-checkout__payment-inline { padding: 16px 20px; }
    .wn-checkout__pay-btn     { min-width: 0; }
}

@media (max-width: 480px) {
    .wn-checkout              { padding: 0; align-items: flex-end; }
    .wn-checkout__panel       { border-radius: 16px 16px 0 0; max-height: 95vh; }
}

/* ── Payment button icons ────────────────────────────────────── */

.wn-checkout__pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wn-pay-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── T&C inline link (in payment note) ──────────────────────── */

.wn-tc-inline-link {
    color: #dfa202;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: inherit;
    transition: color 0.15s;
}

.wn-tc-inline-link:hover { color: #f0b000; }

/* ── Revolut inline step blocks ─────────────────────────────── */

.wn-pi__step-block {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.wn-pi__step-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wn-pi__step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #dfa202;
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wn-pi__step-txt {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f5f5f0;
}

.wn-pi__step-note {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.wn-pi__step-hint {
    font-size: 0.76rem;
    color: #666;
    margin: 0;
    text-align: center;
    transition: color 0.2s;
}

.wn-pi__revolut-open {
    width: 100%;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.2s, background 0.2s;
}

.wn-pi__revolut-open:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Revolut Pay branded button ────────────────────────────── */
.wn-revolut-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #191c1f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 24px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, border-color 0.2s;
    text-decoration: none;
    font-family: inherit;
    /* override .btn--primary gradient */
    background-image: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.wn-revolut-pay-btn:not(:disabled):hover {
    background: #23282d;
    border-color: rgba(255,255,255,0.18);
}
.wn-revolut-pay-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}
.wn-revolut-pay-btn__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.wn-revolut-pay-btn__label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.wn-pi__revolut-lock-hint {
    font-size: 0.76rem;
    color: #555;
    margin: -2px 0 0;
    text-align: center;
    transition: color 0.3s;
}

/* ── V2 Revolut overlay ─────────────────────────────────────── */

.wn-pi__deadline-line {
    font-size: 0.8rem;
    color: rgba(223,162,2,0.75);
    margin: -6px 0 2px;
    text-align: center;
    line-height: 1.5;
}
.wn-pi__deadline-line strong { color: #dfa202; }

.wn-pi__v2-amount {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(223,162,2,0.05);
    border: 1px solid rgba(223,162,2,0.18);
    border-radius: 10px;
    padding: 16px 24px;
}
.wn-pi__v2-amount__lbl {
    font-size: 0.68rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.wn-pi__v2-amount__val {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #dfa202;
    letter-spacing: 0.03em;
    line-height: 1;
}

.wn-pi__v2-steps {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.wn-pi__v2-steps-hd {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: 0;
    text-align: left;
}

.wn-pi__v2-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: left;
}
.wn-pi__v2-step:last-child { border-bottom: none; }

.wn-pi__v2-step-bd {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.wn-pi__v2-step-title {
    font-size: 0.88rem;
    color: #bbb;
    margin: 0;
    line-height: 1.5;
    padding-top: 1px; /* optical align with step circle */
}
.wn-pi__v2-step-title strong { color: #f5f5f0; }

/* ── Confirmation Overlay (#wn-confirm) ─────────────────────── */

.wn-confirm {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wn-confirm[hidden] { display: none; }

.wn-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.wn-confirm__panel {
    position: relative;
    z-index: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wn-confirm__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    z-index: 2;
    flex-shrink: 0;
}

.wn-confirm__close:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f0;
}

.wn-confirm__body {
    overflow-y: auto;
    padding: 44px 28px 32px;
}

@media (max-width: 480px) {
    .wn-confirm        { padding: 0; align-items: flex-end; }
    .wn-confirm__panel { border-radius: 16px 16px 0 0; max-height: 95vh; }
    .wn-confirm__body  { padding: 40px 20px 28px; }
}

/* ── Terms & Conditions Modal ───────────────────────────────── */

.wn-tc-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wn-tc-modal[hidden] { display: none; }

.wn-tc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.wn-tc-modal__panel {
    position: relative;
    z-index: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wn-tc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.wn-tc-modal__logo {
    height: 32px;
    width: auto;
}

.wn-tc-modal__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.wn-tc-modal__close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.wn-tc-modal__close:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f5f5f0;
}

.wn-tc-modal__body {
    overflow-y: auto;
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wn-tc-modal__event {
    font-size: 0.8rem;
    color: #dfa202;
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

.wn-tc-modal__intro {
    font-size: 0.88rem;
    color: #f5f5f0;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.wn-tc-modal__para {
    font-size: 0.86rem;
    color: #aaa;
    line-height: 1.7;
    margin: 0;
}

.wn-tc-modal__list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wn-tc-modal__list li {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.65;
}

.wn-tc-modal__list li strong {
    color: #f5f5f0;
}

.wn-tc-modal__section-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #dfa202;
    margin: 20px 0 8px;
}

.wn-tc-modal__contact {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wn-tc-modal__contact a {
    color: #dfa202;
    text-decoration: none;
}

.wn-tc-modal__contact a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .wn-tc-modal        { padding: 0; align-items: flex-end; }
    .wn-tc-modal__panel { border-radius: 16px 16px 0 0; max-height: 90vh; }
}
