/*
 * TicketAdd membership — public / raver pages (Bootstrap 4 front theme).
 * Theme: Poppins, accent #ffd600, text #303030, borders #ebebeb. Prefix mbr-
 * Breakpoints follow front/css/responsive.css (991 / 767 / 575 / 480).
 */

.mbr-crown {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -2px;
}

/* ---------- Event card: "♛ Members · Claim" (option 3) ---------- */
.bottom.mbr-has-claim {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.bottom.mbr-has-claim .more_detail {
    width: auto;
    flex-shrink: 0;
}

.bottom.mbr-has-claim .price {
    float: none;
    width: auto;
    margin-left: auto;
    white-space: nowrap;
}

.mbr-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 1.5px solid #303030;
    border-radius: 6px;
    background: #fff;
    color: #303030;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.mbr-claim-btn:hover,
.mbr-claim-btn:focus {
    background: #303030;
    color: #ffd600;
    text-decoration: none;
}

/* ---------- Event page: "Get a membership ticket" ---------- */
.mbr-event-claim-row td {
    padding: 14px 0 6px !important;
    border-top: 0 !important;
}

.mbr-event-claim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid #ffd600;
    border-radius: 8px;
    background: #fffbe6;
    color: #303030;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .15s ease;
}

.mbr-event-claim .mbr-crown {
    width: 22px;
    height: 22px;
    color: #c9a800;
}

.mbr-event-claim:hover,
.mbr-event-claim:focus {
    background: #ffd600;
    color: #000;
    text-decoration: none;
}

/* ---------- Shared page shell ---------- */
.mbr-page {
    padding: 30px 0 50px;
    background: #fafafa;
}

.mbr-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.mbr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #303030;
    font-size: 14px;
    font-weight: 500;
}

.mbr-back:hover {
    color: #c9a800;
    text-decoration: none;
}

.mbr-title {
    margin: 0 0 4px;
    font-size: 32px;
    font-weight: 700;
    color: #303030;
}

.mbr-subtitle {
    margin: 0 0 22px;
    color: #6c6c8a;
    font-size: 16px;
}

.mbr-card {
    margin-bottom: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 6px;
}

.mbr-card h3,
.mbr-card h4 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: #303030;
}

.mbr-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    background: #ffd600;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mbr-ticks {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.mbr-ticks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #303030;
    font-size: 14px;
}

.mbr-tick {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd600;
    color: #000;
    font-size: 12px;
}

.mbr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 3px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease;
}

.mbr-btn:hover,
.mbr-btn:focus {
    color: #fff;
    opacity: .88;
    text-decoration: none;
}

.mbr-btn[disabled] {
    cursor: wait;
    opacity: .6;
}

.mbr-btn--yellow {
    background: #ffd600;
    color: #000;
}

.mbr-btn--yellow:hover,
.mbr-btn--yellow:focus {
    color: #000;
}

.mbr-btn--outline {
    border: 1.5px solid #303030;
    background: #fff;
    color: #303030;
}

.mbr-btn--outline:hover,
.mbr-btn--outline:focus {
    background: #303030;
    color: #fff;
}

.mbr-small {
    margin: 8px 0 0;
    color: #888;
    font-size: 12px;
}

.mbr-link {
    color: #6c6c8a;
    font-size: 13px;
    text-decoration: underline;
}

.mbr-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-left: 4px solid #ffd600;
    border-radius: 3px;
    background: #fffbe6;
    color: #303030;
    font-size: 14px;
}

.mbr-alert--error {
    border-color: #d9534f;
    background: #fdf1f0;
}

.mbr-alert--success {
    border-color: #2e9e5b;
    background: #effaf3;
}

/* ---------- Plan picker (joining page) ---------- */
.mbr-plan {
    position: relative;
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1.5px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.mbr-plan:hover {
    border-color: #c9a800;
}

.mbr-plan input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #000;
    cursor: pointer;
}

.mbr-plan.is-selected {
    border-color: #ffd600;
    background: #fffbe6;
}

.mbr-plan__name {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #303030;
}

.mbr-plan__price {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.mbr-plan__price small {
    font-size: 15px;
    font-weight: 500;
}

.mbr-plan__meta {
    display: block;
    margin-top: 4px;
    color: #6c6c8a;
    font-size: 13px;
}

.mbr-plan__fine {
    display: block;
    color: #888;
    font-size: 12px;
}

/* ---------- Card field (Square Web Payments SDK) ---------- */
.mbr-card-field {
    min-height: 90px;
    margin-bottom: 12px;
}

.mbr-pay-error {
    display: none;
    margin-bottom: 12px;
}

.mbr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    color: #303030;
    font-size: 14px;
    cursor: pointer;
}

.mbr-check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #000;
}

/* ---------- FAQ expanders ---------- */
.mbr-faq {
    border-top: 1px solid #ebebeb;
}

.mbr-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    color: #303030;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
}

.mbr-faq summary::-webkit-details-marker {
    display: none;
}

.mbr-faq summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
}

.mbr-faq[open] summary::after {
    content: "\2212";
}

.mbr-faq p {
    margin: 0 0 14px;
    color: #555;
    font-size: 14px;
}

/* ---------- Member card + allowance (manage page) ---------- */
.mbr-member-card {
    position: relative;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.mbr-member-card__logo {
    height: 18px;
    margin-bottom: 14px;
}

.mbr-member-card__status {
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #ffd600;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.mbr-member-card__status.is-ending {
    background: #fff;
}

.mbr-member-card__name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.mbr-member-card__id {
    margin: 2px 0 0;
    color: #bbb;
    font-size: 12px;
}

.mbr-member-card .mbr-crown {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    color: #ffd600;
}

.mbr-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #ebebeb;
    color: #555;
    font-size: 14px;
}

.mbr-row strong {
    color: #303030;
    font-weight: 600;
    text-align: right;
}

.mbr-allowance {
    margin: 16px 0;
}

.mbr-allowance__count {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.mbr-allowance__label {
    margin-left: 6px;
    color: #303030;
    font-size: 14px;
    font-weight: 500;
}

.mbr-bar {
    height: 8px;
    margin: 10px 0 6px;
    border-radius: 4px;
    background: #ebebeb;
    overflow: hidden;
}

.mbr-bar span {
    display: block;
    height: 100%;
    background: #ffd600;
}

.mbr-links {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fff;
}

.mbr-links li + li {
    border-top: 1px solid #ebebeb;
}

.mbr-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 12px 16px;
    color: #303030;
    font-size: 14px;
}

.mbr-links a::after {
    content: "\203A";
    font-size: 20px;
    line-height: 1;
}

.mbr-links a:hover {
    background: #fafafa;
    text-decoration: none;
}

/* ---------- Claim confirmation ---------- */
.mbr-event {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
}

.mbr-event img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 6px;
    object-fit: cover;
}

.mbr-event__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #303030;
}

.mbr-event__meta {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- Billing history ---------- */
.mbr-table {
    width: 100%;
    font-size: 14px;
}

.mbr-table th,
.mbr-table td {
    padding: 10px 8px;
    border-top: 1px solid #ebebeb;
    text-align: left;
}

.mbr-table th {
    border-top: 0;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---------- Event list (member events) ---------- */
.mbr-event-list .single-blog {
    margin-bottom: 24px;
}

/* ---------- Dashboard panel inside My Account ---------- */
.mbr-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    background: #fff;
}

.mbr-panel h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
}

.mbr-panel p {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
}

/* ---------- Modal (cancel confirmation) ---------- */
.mbr-modal .modal-content {
    border: 0;
    border-radius: 8px;
}

.mbr-modal .modal-body {
    padding: 24px;
}

.mbr-modal h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

/* ---------- Site overrides ---------- */
/* The site uppercases headings and recolours links inside the account
   area; the membership mockups use sentence case and white button text. */
.mbr-title,
.mbr-card h3,
.mbr-card h4,
.mbr-panel h3,
.mbr-event__title,
.mbr-modal h4 {
    text-transform: none;
    letter-spacing: normal;
}

/* "#dashboard a" (style.css) is an id selector, so match it to override. */
.mbr-page a.mbr-btn,
.mbr-panel a.mbr-btn,
#dashboard .mbr-panel a.mbr-btn,
#dashboard .mbr-panel a.mbr-btn:hover {
    color: #fff;
    text-transform: uppercase;
}

.mbr-page a.mbr-btn--yellow,
.mbr-page a.mbr-btn--outline,
#dashboard .mbr-panel a.mbr-btn--yellow {
    color: #000;
}

.mbr-page a.mbr-btn--outline:hover {
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .bottom.mbr-has-claim .more_detail .buy_now {
        font-size: 15px;
        padding: 8px 10px;
    }
}

@media (max-width: 575px) {
    .mbr-page {
        padding: 20px 0 40px;
    }

    .mbr-title {
        font-size: 26px;
    }

    .mbr-card {
        padding: 16px;
    }

    .mbr-plan__price {
        font-size: 26px;
    }

    .mbr-event img {
        width: 72px;
        height: 72px;
    }

    .mbr-event-claim {
        font-size: 15px;
    }

    .mbr-table thead {
        display: none;
    }

    .mbr-table tr {
        display: block;
        padding: 8px 0;
        border-top: 1px solid #ebebeb;
    }

    .mbr-table td {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: 0;
    }

    .mbr-table td::before {
        content: attr(data-label);
        color: #888;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bottom.mbr-has-claim .price {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
}

/* ---------- Member card: brand + plan / expiry row ---------- */
.mbr-member-card__brand {
    margin-bottom: 14px;
    color: #ffd600;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .18em;
}

.mbr-member-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 14px;
    padding-right: 56px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.mbr-member-card__meta small {
    display: block;
    color: #bbb;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mbr-panel .mbr-member-card {
    margin: 12px 0;
    text-align: left;
}

/* ---------- Wallets (Apple Pay / Google Pay) ---------- */
.mbr-wallets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.mbr-wallets[hidden],
.mbr-divider[hidden],
.mbr-wallet-note[hidden],
.mbr-wallets [hidden] {
    display: none !important;
}

.mbr-apple-pay {
    display: block;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: pay;
    -apple-pay-button-style: black;
}

#mbr-google-pay {
    width: 100%;
    min-height: 44px;
}

.mbr-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: #777;
    font-size: 13px;
}

.mbr-divider::before,
.mbr-divider::after {
    flex: 1;
    border-bottom: 1px solid #ebebeb;
    content: '';
}

.mbr-wallet-note {
    margin: 0 0 10px;
}

/* Stripe card element sits in the same box as Square's field. */
.mbr-card-field--stripe {
    min-height: 0;
    padding: 13px 12px;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    background: #fff;
}

.mbr-paypal {
    margin: 4px 0 14px;
}

.mbr-redirect-note {
    margin: 0 0 12px;
}

/* The dashboard theme colours every <p>; keep the card readable. */
#dashboard .mbr-member-card .mbr-member-card__name,
.mbr-panel .mbr-member-card .mbr-member-card__name {
    color: #fff;
    font-size: 20px;
}

#dashboard .mbr-member-card .mbr-member-card__id,
.mbr-panel .mbr-member-card .mbr-member-card__id {
    color: #bbb;
    font-size: 12px;
}

/* "Your current plan" box (My Account dashboard and Manage Membership) */
.mbr-current-plan {
    margin: 0 0 16px;
    padding: 16px 18px 6px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-left: 4px solid #ffd600;
    border-radius: 6px;
}

.mbr-current-plan__label {
    display: block;
    margin-bottom: 4px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mbr-current-plan__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mbr-current-plan__name {
    color: #303030;
    font-size: 18px;
    font-weight: 700;
}

.mbr-current-plan__status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mbr-current-plan__status.is-good { background: #e6f6ea; color: #1e7b34; }
.mbr-current-plan__status.is-warn { background: #fff6cc; color: #7a6200; }
.mbr-current-plan__status.is-bad  { background: #fdeaea; color: #b42318; }

/* Membership pages with the My Account sidebar */
.mbr-page--account {
    background: #fff;
}

.mbr-page--account .mbr-wrap {
    max-width: 640px;
    margin: 0;
}

@media (max-width: 991px) {
    .mbr-page--account .dashboard-list {
        margin-bottom: 24px;
    }
}

.mbr-current-plan--none { border-left-color: #ccc; }
.mbr-current-plan__status.is-none { background: #f0f0f0; color: #555; }

/* Promoter terms: highlighted offer box */
.mbr-promo-callout {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #ffd600;
    border-radius: 8px;
    color: #303030;
}

.mbr-promo-callout strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.mbr-promo-callout p {
    margin: 0;
}

.mbr-terms-doc h4 {
    margin: 22px 0 6px;
}

.mbr-terms-doc h4:first-child {
    margin-top: 0;
}

.mbr-terms-doc p {
    margin-bottom: 0;
    line-height: 1.6;
}
