/* Cococure Event Guest List — frontend styles */

/* ---------------- Suppress booking-fee line on free / guestlist rows ---------------- */

/*
 * Avada-child/tribe/tickets/v2/tickets/item/extra/price.php hard-codes
 * "(+2% Booking Fee (min £2.50))" on every ticket. On rows we've
 * converted to guest-list, the price is £0 and there's no fee — hide it.
 * Selector targets the <br> + <span> pair that immediately follows the
 * price inside .tribe-tickets__tickets-sale-price.
 */
.coco-egl-converted .tribe-tickets__tickets-sale-price br,
.coco-egl-converted .tribe-tickets__tickets-sale-price br + span {
    display: none !important;
}

/* ---------------- Inline CTA on each free ticket row ---------------- */

/*
 * Wrapper sits inside the ticket card's right column, in place of
 * the hidden quantity widget. Mirrors the position of the Join
 * Waitlist button so the action is visually anchored to the ticket
 * it belongs to.
 */
.coco-egl-cta-wrapper {
    display: block;
    width: 100%;
    /* Force the wrapper (and its parent ticket-quantity column) wide enough
       to give the "Join the Guest List" text real breathing room. Without
       this min-width, Tribe's default column sizing keeps the column at the
       width of the hidden +/- quantity controls (~120px), so any padding
       we add inside the button just gets squeezed out. */
    min-width: 220px !important;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/*
 * Refined-luxury filled-gold CTA. Sized identically to the
 * waitlist trigger (.tribe-tickets__tickets-item-waitlist-trigger)
 * so guest-list and waitlist actions look like a matched pair.
 * Differs only in fill: this is solid gold (primary), the waitlist
 * is outlined gold (secondary).
 */
.coco-egl-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    /* Generous internal padding so the text never touches the pill edges.
       !important defends against Avada / Tribe button rules. */
    padding: 16px 32px !important;
    background: linear-gradient(180deg, #e5c248 0%, #d4af37 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    /* Tighter letter-spacing so the uppercase string actually fits with the
       new padding instead of clipping the side gutters. */
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        0 2px 12px rgba(212, 175, 55, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition:
        transform 200ms cubic-bezier(0.2, 0.7, 0.3, 1),
        box-shadow 220ms ease,
        background 320ms ease;
}

.coco-egl-cta:hover,
.coco-egl-cta:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #f0d160 0%, #e5c248 100%);
    box-shadow:
        0 10px 28px rgba(212, 175, 55, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    outline: none;
}

.coco-egl-cta:active {
    transform: translateY(0);
    box-shadow:
        0 2px 6px rgba(212, 175, 55, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .coco-egl-cta {
        transition: none;
    }
    .coco-egl-cta:hover {
        transform: none;
    }
}

/* ---------------- Modal shell ---------------- */

body.coco-egl-modal-open {
    overflow: hidden;
}

.coco-egl-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.coco-egl-modal-shown {
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 0s linear;
}

.coco-egl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.coco-egl-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0c0c0c;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 16px;
    padding: 32px 32px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    transform: translateY(12px) scale(0.985);
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.coco-egl-modal-shown .coco-egl-modal-card {
    transform: translateY(0) scale(1);
}

.coco-egl-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: transparent;
    color: #999;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: color 120ms ease, border-color 120ms ease;
}

.coco-egl-modal-close:hover {
    color: #fff;
    border-color: #444;
}

.coco-egl-modal-header {
    margin-bottom: 24px;
    padding-right: 32px;
}

.coco-egl-modal-eyebrow {
    margin: 0 0 6px;
    color: #d4af37;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.coco-egl-modal-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.coco-egl-modal-meta {
    margin: 0;
    color: #999;
    font-size: 13px;
}

.coco-egl-modal-meta strong {
    color: #d4af37;
    font-weight: 600;
}

/* ---------------- Form ---------------- */

.coco-egl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #f4f4f4;
    font-family: inherit;
}

.coco-egl-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.coco-egl-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    color: #0a0a0a;
    border: 1px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: opacity 120ms ease, transform 120ms ease;
}

.coco-egl-apple {
    background: #000;
    color: #fff;
    border-color: #2a2a2a;
}

.coco-egl-social-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.coco-egl-social-icon {
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.coco-egl-social-success {
    grid-column: 1 / -1;
    padding: 10px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.coco-egl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 4px 0;
}

.coco-egl-divider::before,
.coco-egl-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #1a1a1a;
}

.coco-egl-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.coco-egl-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.coco-egl-form input[type="text"],
.coco-egl-form input[type="email"],
.coco-egl-form input[type="tel"],
.coco-egl-form input[type="date"] {
    background: #161616;
    color: #fff;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: border-color 150ms ease, background 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.coco-egl-form input:focus {
    outline: none;
    border-color: #d4af37;
    background: #1a1a1a;
}

.coco-egl-form input::placeholder {
    color: #555;
}

.coco-egl-form small {
    color: #666;
    font-size: 11px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    margin-top: 2px;
}

.coco-egl-optional {
    color: #555;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.coco-egl-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 13px !important;
    color: #aaa !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.coco-egl-checkbox input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.coco-egl-checkbox span {
    flex: 1;
}

.coco-egl-error {
    padding: 10px 12px;
    background: rgba(255, 100, 100, 0.08);
    color: #ff8585;
    border: 1px solid rgba(255, 100, 100, 0.22);
    border-radius: 8px;
    font-size: 13px;
}

.coco-egl-fineprint {
    margin: 4px 0 0;
    color: #666;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.coco-egl-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.coco-egl-cancel {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    color: #888;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 120ms ease, border-color 120ms ease;
}

.coco-egl-cancel:hover {
    color: #fff;
    border-color: #444;
}

.coco-egl-submit {
    flex: 2;
    padding: 14px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #e5c34d 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: filter 120ms ease, transform 120ms ease;
}

.coco-egl-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.coco-egl-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---------------- Confirmation card ---------------- */

.coco-egl-confirm {
    text-align: center;
    padding: 4px 0 8px;
}

.coco-egl-confirm h3 {
    color: #d4af37;
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.coco-egl-confirm > p {
    margin: 6px 0;
    color: #ccc;
    font-size: 14px;
}

.coco-egl-confirm img {
    display: block;
    margin: 20px auto;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    width: 220px;
    height: 220px;
    max-width: 100%;
    box-sizing: border-box;
}

.coco-egl-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-size: 28px;
    line-height: 1;
}

.coco-egl-confirm-help {
    color: #888 !important;
    font-size: 13px !important;
    margin-top: 8px !important;
}

.coco-egl-cutoff {
    color: #d4af37 !important;
    margin-top: 16px !important;
    font-size: 14px !important;
}

.coco-egl-cutoff strong {
    color: #fff;
    font-weight: 700;
}

/* ---------------- Mobile bottom-sheet ---------------- */

@media (max-width: 600px) {
    .coco-egl-modal {
        padding: 0;
        align-items: flex-end;
    }

    .coco-egl-modal-card {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 18px 18px 0 0;
        padding: 24px 22px 28px;
        transform: translateY(100%);
    }

    .coco-egl-modal-shown .coco-egl-modal-card {
        transform: translateY(0);
    }

    .coco-egl-row {
        grid-template-columns: 1fr;
    }

    .coco-egl-social-row {
        grid-template-columns: 1fr;
    }

    .coco-egl-modal-title {
        font-size: 20px;
    }
}

/* ── Multi-guest section ───────────────────────────────────────── */
.coco-egl-extra-section {
    margin: 14px 0 6px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.coco-egl-extra-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.coco-egl-add-guest {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.coco-egl-add-guest:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

.coco-egl-extra-list { display: flex; flex-direction: column; gap: 10px; }

.coco-egl-extra-row {
    position: relative;
    padding-right: 28px;
}

.coco-egl-remove-guest {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coco-egl-remove-guest:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
}

.coco-egl-extra-help {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.coco-egl-guest-list {
    list-style: none;
    margin: 12px 0 4px;
    padding: 0;
    text-align: left;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
}
.coco-egl-guest-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.coco-egl-guest-list li:last-child { border-bottom: 0; }

.coco-egl-pill-primary {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
