/* ── Account Page ─────────────────────────────────────────────────────────── */

.bb-account-logged-out .bb-login-cta {
    margin-bottom: 24px;
}

/* ── Tabs nav ─────────────────────────────────────────────────────────────── */

.bb-account-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.bb-account-tabs {
    display: flex;
    gap: 40px;
}

.bb-tab-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: #6C7277;
    cursor: pointer;
    font-family: inherit;
    padding: 0 0 8px;
    position: relative;
    transition: color .2s;
}

.bb-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #A8ADAD;
    border-radius: 2px;
    transition: background-color .2s ease;
}

.bb-tab-btn:hover {
    color: #000;
}

.bb-tab-btn.active {
    color: #000;
    font-weight: 700;
}

.bb-tab-btn.active::after {
    background: var(--brand-color);
}

/* Purchase Classes CTA — right side of the tabs row */
.bb-account-nav .bb-purchase-classes-btn {
    flex-shrink: 0;
    margin-left: 24px;
}

.bb-logout-link {
    font-size: 14px;
    color: #6C7277;
    text-decoration: underline;
}

.bb-logout-link:hover {
    color: var(--brand-color);
}

/* ── Tab panels ──────────────────────────────────────────────────────────── */

.bb-tab-panel {
    display: none;
}

.bb-tab-panel.active {
    display: block;
}

/* ── Loading / error / empty ─────────────────────────────────────────────── */

.bb-loading {
    color: #6C7277;
    padding: 24px 0;
}

.bb-error {
    padding: 16px;
    background: #fdf0ef;
    border-radius: 6px;
    margin-bottom: 16px;
}

.bb-required-note,
.bb-error {
    font-size: 14px;
    color: #6C7277;
}

.bb-empty {
    color: #6C7277;
    padding: 24px 0;
}

/* ── Section headings ────────────────────────────────────────────────────── */

.bb-account-section {
    background-color: var(--grey-surface-color);
    padding: 40px;
    border-radius: 50px;
    margin-bottom: 40px;
}

.bb-account-section:last-child {
    margin-bottom: 0;
}

.bb-section-header .bb-section-heading {
    margin-bottom: 0;
}

/* ── Reservations ────────────────────────────────────────────────────────── */

.bb-reservations-filter {
    display: flex;
    margin-bottom: 24px;
}

.bb-filter-btn {
    display: inline-block;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .1em;
    font-weight: bold;
    padding: 12px 40px;
    background: transparent;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    transition: all .15s;
}

.bb-filter-btn.active {
    background: var(--charcoal-color);
    color: #fff;
}

.bb-reservations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--grey-surface-color);
    padding: 40px;
    border-radius: 50px;
}

.bb-reservation-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 24px;
    border-radius: 24px;
}

.bb-res-datetime {
    display: flex;
    flex-direction: column;
    min-width: 225px;
}

.bb-res-date {
    font-weight: 600;
    color: #000;
}

.bb-res-time {
    margin-top: 4px;
}

.bb-res-time,
.bb-res-duration,
.bb-res-meta {
    font-size: 14px;
    color: #6C7277;
}

.bb-res-duration {
    font-weight: normal;
}

.bb-res-info {
    flex: 1;
}

.bb-res-class {
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}
/* ── Badges ──────────────────────────────────────────────────────────────── */

.bb-badge,
.bb-status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.bb-badge-waitlist  { background: #CEDD44; color: var(--charcoal-color); }
.bb-badge-cancelled { background: #EBC9C4; color: var(--charcoal-color); }
.bb-badge-expired   { background: var(--grey-surface-color); color: #6C7277; }

.bb-status-badge {
    text-transform: capitalize;
}

.bb-status-active { background: #CEDD44; color: var(--charcoal-color); }
.bb-status-inactive { background: var(--grey-surface-color); color: #6C7277; }
.bb-status-placed,
.bb-status-completed { background: #CBEFEE; color: var(--charcoal-color); }
.bb-status-cancelled { background: #EBC9C4; color: var(--charcoal-color); }

/* ── Memberships ─────────────────────────────────────────────────────────── */

.bb-membership-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
}

.bb-membership-card:not(.bb-active) {
    opacity: 0.5;
}

.bb-membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bb-membership-name {
    font-weight: 600;
    color: #000;
}

.bb-membership-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.bb-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6C7277;
}

.bb-detail-row span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

/* ── Credits ─────────────────────────────────────────────────────────────── */

.bb-credit-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 16px;
}

.bb-credit-card:last-child {
    margin-bottom: 0;
}

.bb-credit-card.bb-expired {
    opacity: .5;
}

.bb-credit-name {
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.bb-credit-bar-wrap {
    height: 6px;
    background: var(--grey-surface-color);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.bb-credit-bar {
    height: 100%;
    background: var(--brand-color);
    border-radius: 3px;
    transition: width .3s;
}

.bb-credit-count,
.bb-credit-exp {
    font-size: 14px;
    color: #6C7277;
}

.bb-credit-exp {
    margin-top: 4px;
}

/* ── Purchases table ─────────────────────────────────────────────────────── */

.bb-purchases-table {
    width: 100%;
    background: none;
    font-size: 16px;
    border-radius: 0;
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0 16px;
}

.bb-purchases-table tbody tr {
    background: #fff;
}

.bb-purchases-table th {
    font-weight: 600;
    font-size: 16px;
    padding: 0 24px;
    text-align: left;
}

.bb-purchases-table td {
    padding: 24px;
    text-align: left;
    vertical-align: top;
}

.bb-purchases-table td:first-child {
    color: #000;
    font-weight: 600;
}

/* ── Orders ──────────────────────────────────────────────────────────────── */

.bb-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bb-order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.bb-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.bb-order-number {
    font-weight: 700;
}

.bb-order-location {
    color: #6C7277;
    font-size: 0.875rem;
}

.bb-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bb-order-date {
    font-size: 0.85rem;
    color: #6C7277;
}

.bb-order-lines {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
    margin-bottom: 10px;
}

.bb-order-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #444;
    padding: 4px 0;
}

.bb-order-total {
    font-size: 0.9rem;
    color: #6C7277;
    text-align: right;
}

/* ── Personal Information ─────────────────────────────────────────────────── */

.bb-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bb-profile-field {
    display: flex;
    flex-direction: column;
}

.bb-field-value {
    font-size: 16px;
    font-weight: 500;
}

.bb-field-label {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.bb-profile-classes {
    font-size: 16px;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */

.bb-pagination-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.bb-page-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}

.bb-page-btn:hover {
    background: var(--charcoal-color);
    color: #fff;
    border-color: var(--charcoal-color);
}

.bb-page-info {
    font-size: 0.875rem;
    color: #6C7277;
}

/* ── Profile actions & address ───────────────────────────────────────────── */

.bb-profile-actions {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.bb-profile-link {
    font-size: 0.875rem;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-profile-link:hover {
    color: #6C7277;
}

.bb-address {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.bb-address:last-child {
    margin-bottom: 0;
}

.bb-profile-photo-desc {
    font-size: 16px;
}

.bb-profile-photo-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bb-profile-photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #A8ADAD;
    flex-shrink: 0;
}

.bb-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-profile-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.bb-update-photo {
    font-size: 0.875rem;
}

.bb-auth-hidden {
    display: none !important;
}

/* ── Edit / Save / Cancel buttons ────────────────────────────────────────── */

/* .bb-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, background 0.2s;
}

.bb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bb-btn-primary {
    background: #5cbcb6;
    color: #fff;
}

.bb-btn-primary:hover:not(:disabled) {
    background: #4aa9a3;
} */

/* ── Form layout ─────────────────────────────────────────────────────────── */

.bb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bb-profile-edit-grid {
    margin-bottom: 24px;
}

.bb-form-actions {
    display: flex;
    gap: 16px;
}
#bb-profile-basic .bb-section-header {
    gap: 12px;
}

#bb-profile-basic .bb-section-header h3 {
    flex: 1;
}

/* ── Success / error messages ─────────────────────────────────────────────── */

.bb-form-msg {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.bb-msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bb-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── Photo upload ─────────────────────────────────────────────────────────── */

.bb-photo-upload-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bb-photo-label {
    margin: 0;
}

.bb-photo-filename {
    font-size: 14px;
    color: #6C7277;
    font-style: italic;
}

/* ── Inline create account on account page ────────────────────────────────── */

.bb-create-account-inline {
    max-width: 872px;
    margin-left: auto;
    margin-right: auto;
	padding: 80px;
	background-color: var(--grey-surface-color);
    border-radius: 50px;
}

.bb-create-account-inline h3 {
    font-weight: 400;
    margin: 0 0 24px;
}

.bb-create-account-login-link {
    margin: 0 0 4px;
}

.bb-create-account-login-link a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-create-account-login-link {
    font-size: 16px;
}

.bb-required-note {
    margin: 0 0 40px;
}

.bb-create-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.bb-ca-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bb-ca-field--full {
    grid-column: 1 / -1;
    max-width: 380px;
}

.bb-ca-label {
    margin-bottom: 0;
}

.bb-ca-label:has(.bb-password-toggle) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bb-ca-select-wrap {
    position: relative;
}

.bb-ca-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 36px;
}

.bb-ca-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    pointer-events: none;
}

.bb-ca-hint {
    font-size: 12px;
    color: #6C7277;
    line-height: 1.5;
}

.bb-password-toggle {
    background: none;
    border: none;
    font-size: 14px;
    color: #6C7277;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
}

.bb-ca-actions .bb-btn-primary {
    padding: 14px 40px;
    font-size: 13px;
    letter-spacing: 1.5px;
}

/* Disabled tabs when logged out */
.bb-tab-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Payment Methods ──────────────────────────────────────────────────────── */

.bb-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
}

.bb-card-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 14px 20px;
    overflow: hidden;
    border-radius: 8px;
}

.bb-card-row.bb-card-expired {
    opacity: 0.6;
}

.bb-card-icon {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--charcoal-color);
    background: var(--grey-surface-color);
    border: 1px solid #A8ADAD;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 48px;
    text-align: center;
}

.bb-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bb-card-label {
    font-size: 14px;
}

.bb-badge-active-card {
    background: #CEDD44;
    color: var(--charcoal-color);
}

#bb-register-optins {
    grid-column: 1 / -1;
}
.account-modal .modal-wrapper__inner {
    width: 635px;
}

/* Account page — force edit inputs white by default (override theme grey) */
.bb-account-section input[type="text"],
.bb-account-section input[type="tel"],
.bb-account-section input[type="email"],
.bb-account-section input[type="date"],
.bb-account-section select,
.bb-account-section textarea {
    background: #fff;
    border: 1px solid #d9d9d9;
}

.bb-account-section input[type="text"]:focus,
.bb-account-section input[type="tel"]:focus,
.bb-account-section input[type="email"]:focus,
.bb-account-section input[type="date"]:focus,
.bb-account-section select:focus,
.bb-account-section textarea:focus {
    background: #fff;
    border-color: #53C9C6;
}
#bb-confirm-cancel-res-btn {
    white-space: nowrap;
}
/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .bb-purchases-table td:first-child {
        font-size: 18px;
    }

    .bb-purchases-table tr td:first-child {
        border-top-left-radius: 24px;
        border-bottom-left-radius: 24px;
    }

    .bb-purchases-table tr td:last-child {
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
    }

    .bb-purchases-table {
        margin-bottom: -16px;
    }
}

@media (max-width: 1023px){
    .bb-filter-btn {
        font-size: 11px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .bb-account-section,
    .bb-reservations-list {
        padding: 24px;
        border-radius: 16px;
    }
    .bb-create-account-grid {
        grid-template-columns: 1fr;
    }
    .bb-ca-field--full {
        max-width: 100%;
    }
    .bb-account-tabs {
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
		padding-right: 24px;
        margin: 0 -24px 0 0;
    }
    /* Tabs scroll edge-to-edge on mobile, so drop the CTA to its own row
       instead of squeezing it beside them. */
    .bb-account-nav {
        flex-wrap: wrap;
    }
    .bb-account-nav .bb-purchase-classes-btn {
        margin: 16px 0 0;
        width: 100%;
        text-align: center;
    }
    .bb-profile-grid,
    .bb-membership-details {
        grid-template-columns: 1fr;
    }
    .bb-membership-details {
        gap: 16px;
    }
    .bb-membership-card,
    .bb-credit-card {
        padding: 16px;
        border-radius: 16px;
    }
    .bb-reservation-row {
        flex-direction: column;
        gap: 16px;
        border-radius: 16px;
    }
    .bb-order-header {
        flex-direction: column;
        gap: 8px;
    }
    .bb-purchases-table thead {
        display: none;
    }

    .bb-purchases-table,
    .bb-purchases-table tbody,
    .bb-purchases-table tr,
    .bb-purchases-table td {
        display: block;
        width: 100%;
    }

    .bb-purchases-table tr {
        background: #fff;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .bb-purchases-table tr:last-child {
        margin-bottom: 0;
    }

    .bb-purchases-table td {
        font-size: 14px;
        border: none;
        text-align: left;
        padding: 0;
    }

    .bb-purchases-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: #000;
        margin-bottom: 4px;
    }

    .bb-purchases-table td:last-child {
        order: -1;
        text-align: right;
    }

    .bb-create-account-inline {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .bb-purchases-table td:first-child {
        order: -2;
    }

     .bb-purchases-table td:first-child,
     .bb-purchases-table td:last-child{
        width: calc(50% - 8px);
    }

    .bb-purchases-table td:last-child::before {
        content: '';
    }

    .bb-detail-row {
        flex-direction: column;
    }

    .bb-res-date,
    .bb-res-class {
        font-size: 16px;
    }

    .bb-res-time {
        font-size: 18px;
    }

    .bb-profile-photo-row {
        flex-direction: column;
        align-items: center;
    }
    
    .bb-photo-upload-wrap {
        flex-direction: column;
    }

    .bb-purchases-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    .bb-section-header,
    #bb-profile-basic .bb-section-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .bb-section-header .bb-section-heading,
    #bb-profile-basic .bb-section-header h3 {
        flex: 1 1 100%;
    }
    .bb-section-header .btn,
    .bb-profile-actions .btn,
    .bb-form-actions .btn {
        flex: 0 1 auto;
        white-space: normal;
    }
    .bb-card-row {
        flex-wrap: wrap;
        padding: 14px;
    }

    .bb-card-info {
        flex: 1 1 100%;
    }
    .account-modal .modal-wrapper__inner {
        width: 100%;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }
    .bb-reservations-list .bb-res-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

.bb-stripe-element {
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}

.bb-stripe-element.StripeElement--focus {
  border-color: #53C9C6;
  box-shadow: 0 0 0 1px #53C9C6;
  background: #fff;
}

.bb-stripe-element.StripeElement--invalid {
  border-color: #c0392b;
}

.bb-stripe-element.StripeElement--complete {
  border-color: #1e7e34;
}
/*-- Add space between buttons---*/
.bb-account-section .bb-cards-list .bb-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bb-comms-group-heading {
    margin: 16px 0 4px;
    font-size: 14px;
    font-weight: 700;
}
 
.bb-comms-group-heading:first-child {
    margin-top: 0;
}
 
.bb-comms-group-desc {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6C7277;
}
 
#bb-comms-form .bb-comms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    max-width: 720px;
}
 
#bb-comms-form .bb-comms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}
 
.bb-comms-checkbox-desc {
    display: block;
    font-size: 12px;
    color: #6C7277;
    margin-top: 2px;
}

.bb-optins-section h4 {
    font-weight: 700;
}