/*
====================================================
WISEGROUP PAYTICKET
BUYER EXPERIENCE — PHASE 2B
Payment, Ticket and Access
====================================================
*/

.wg-b2 {
    max-width: 850px;
    margin: 0 auto 40px;
}

.wg-b2 * {
    box-sizing: border-box;
}

/* Purchase progress */

.wg-b2-progress {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.wg-b2-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.wg-b2-step.active {
    background: #2563eb;
    color: white;
}

.wg-b2-step.complete {
    background: #dcfce7;
    color: #166534;
}

/* Main card */

.wg-b2-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(15,23,42,.05);
}

.wg-b2-card h1 {
    font-size: clamp(28px,5vw,38px);
    margin-bottom: 15px;
}

.wg-b2-card h2 {
    font-size: 21px;
}

.wg-b2-card h3 {
    margin-top: 20px;
}

.wg-b2-card p {
    line-height: 1.75;
}

/* Transaction summary */

.wg-b2-summary {
    padding: 21px;
    margin: 20px 0;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.wg-b2-summary-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wg-b2-summary-amount {
    color: #1d4ed8;
    font-size: clamp(27px,5vw,38px);
    font-weight: 800;
    letter-spacing: -.03em;
}

/* Payment instructions */

.wg-b2-payment-details {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px;
    margin: 19px 0;
    color: #1e3a8a;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.wg-b2-copy {
    width: 100%;
    margin: 10px 0 18px;
    min-height: 50px;
    background: #e0ecff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-weight: 800;
}

.wg-b2-copy:hover {
    background: #dbeafe;
}

.wg-b2-copy-feedback {
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* Form */

.wg-b2 form {
    margin-top: 20px;
}

.wg-b2 form label {
    margin-bottom: 18px;
}

.wg-b2 form input {
    min-height: 50px;
    font-size: 16px;
}

.wg-b2 form > button {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
}

/* Status banner */

.wg-b2-status {
    border-radius: 15px;
    padding: 19px;
    margin: 20px 0;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.wg-b2-status-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 7px;
}

.wg-b2-status p {
    margin: 0;
    font-size: 14px;
}

.wg-b2-status.pending {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.wg-b2-status.approved {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.wg-b2-status.action_required {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.wg-b2-status.rejected,
.wg-b2-status.expired {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.wg-b2-status.awaiting_payment {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Ticket reference */

.wg-b2-ticket-reference {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    margin: 8px 0 15px;
    background: #eff6ff;
    border-radius: 10px;
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 800;
}

/* Ticket actions */

.wg-b2-refresh {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    margin: 20px 0 8px;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-weight: 800;
    text-decoration: none;
}

.wg-b2-refresh:hover {
    background: #1d4ed8;
    color: white;
    text-decoration: none;
}

.wg-b2-card > .btn {
    margin-top: 10px;
}

/* Access verification */

.wg-b2-access-note {
    padding: 17px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 13px;
    color: #1e40af;
    margin: 18px 0;
}

.wg-b2-access-note p {
    margin: 0;
}

/* Private access information */

.wg-b2-private-section {
    margin-top: 22px;
    padding: 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 15px;
    overflow-wrap: anywhere;
}

.wg-b2-private-section h3 {
    margin-top: 0;
    color: #065f46;
}

.wg-b2-private-section .notice {
    margin-bottom: 0;
}

/* Mobile */

@media (max-width:650px) {

    .wg-b2-card {
        padding: 22px;
        border-radius: 18px;
    }

    .wg-b2-progress {
        gap: 5px;
    }

    .wg-b2-step {
        padding: 7px 10px;
        font-size: 11px;
    }

    .wg-b2-summary,
    .wg-b2-payment-details {
        padding: 17px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .wg-b2 * {
        transition: none !important;
    }
}