/* ── Little Lincoln Booking — Customer Account ─────────────────────── */
.bsa-wrap {
    --bsa-primary: #e83e8c;
    --bsa-grad: linear-gradient(135deg, #ec4899, #f59e0b);
    max-width: 1040px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}
.bsa-loading { padding: 40px; text-align: center; color: #9ca3af; }

/* Reset any theme <button> styling that bleeds into the account UI */
.bsa-wrap button {
    -webkit-appearance: none !important; appearance: none !important;
    text-transform: none !important; letter-spacing: normal !important;
    box-shadow: none; font-family: inherit; line-height: 1.3;
}

/* Auth card */
.bsa-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(17,24,39,.08);
    overflow: hidden;
    max-width: 420px;
    margin: 0 auto;
}
.bsa-panel { padding: 30px 28px 28px; }
.bsa-panel h2 { margin: 0 0 4px; font-size: 21px; text-align: center; }
.bsa-panel p.bsa-sub { margin: 0 0 22px; color: #6b7280; font-size: 14px; text-align: center; }

/* Slim segmented toggle, centered on one line */
.bsa-tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: #f3f4f6; border-radius: 12px;
    margin: 0 0 22px; width: 100%; box-sizing: border-box;
}
.bsa-tab {
    flex: 1; padding: 9px 10px !important; cursor: pointer;
    font-weight: 700 !important; font-size: 13px !important; color: #6b7280 !important;
    background: transparent !important; border: none !important; border-radius: 9px !important;
}
.bsa-tab.is-active { color: var(--bsa-primary) !important; background: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.bsa-field { margin-bottom: 15px; }
.bsa-field label { display: block; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.bsa-field input {
    width: 100%; padding: 12px 14px !important; border: 1px solid #d8dbe0; border-radius: 11px;
    font-size: 15px; box-sizing: border-box; background: #fff; color: #111827;
    transition: border-color .15s, box-shadow .15s;
}
.bsa-field input:focus { outline: none; border-color: var(--bsa-primary); box-shadow: 0 0 0 3px rgba(0,0,0,.05); }

/* Primary action */
.bsa-btn {
    display: block; width: 100%; margin-top: 6px;
    padding: 13px 18px !important; border: none !important; border-radius: 12px !important;
    background: var(--bsa-primary) !important; color: #fff !important;
    font-size: 15px !important; font-weight: 700 !important; cursor: pointer;
    transition: filter .15s, transform .05s;
}
.bsa-btn:hover { filter: brightness(.95); }
.bsa-btn:active { transform: translateY(1px); }
.bsa-btn:disabled { opacity: .6; cursor: default; }
.bsa-btn--ghost { background: #fff !important; color: #374151 !important; border: 1px solid #d8dbe0 !important; }

/* Secondary text links row, centered under the form */
.bsa-links { display: flex; justify-content: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.bsa-link {
    background: none !important; border: none !important; padding: 0 !important;
    color: var(--bsa-primary) !important; cursor: pointer; font-size: 13px !important; font-weight: 600 !important;
    border-radius: 0 !important;
}
.bsa-link:hover { text-decoration: underline; }
.bsa-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.bsa-ok    { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }

/* Dashboard */
.bsa-dash-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.bsa-dash-head h2 { margin: 0; font-size: 22px; }
.bsa-dash-head .bsa-btn { width: auto; padding: 9px 16px; font-size: 13px; }

.bsa-navtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.bsa-navtab {
    padding: 9px 16px !important; border-radius: 20px !important; border: 1px solid #e5e7eb !important;
    background: #fff !important; font-size: 13px !important; font-weight: 600 !important; color: #374151 !important; cursor: pointer;
}
.bsa-navtab.is-active { background: var(--bsa-primary) !important; color: #fff !important; border-color: var(--bsa-primary) !important; }

.bsa-section { display: none; }
.bsa-section.is-active { display: block; }

/* Booking cards */
.bsa-booking {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.bsa-booking-main { display: flex; flex-direction: column; gap: 3px; }
.bsa-booking-date { font-size: 16px; font-weight: 700; }
.bsa-booking-meta { font-size: 13px; color: #6b7280; }
.bsa-booking-right { display: flex; align-items: center; gap: 12px; }

.bsa-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bsa-badge--pending   { background: #fef3c7; color: #92400e; }
.bsa-badge--confirmed { background: #d1fae5; color: #065f46; }
.bsa-badge--cancelled { background: #fee2e2; color: #991b1b; }

.bsa-booking-actions { display: flex; gap: 6px; }
.bsa-mini {
    border: 1px solid #d1d5db !important; background: #fff !important; color: #374151 !important;
    border-radius: 8px !important; padding: 6px 12px !important; font-size: 12px !important; font-weight: 600 !important; cursor: pointer;
}
.bsa-mini:hover { background: #f9fafb !important; }
.bsa-mini--danger { color: #dc2626 !important; border-color: #fecaca !important; }
.bsa-mini--danger:hover { background: #fef2f2; }
.bsa-refund-note { font-size: 12px; color: #b45309; font-weight: 600; margin-top: 2px; }
.bsa-refund-ok { display: inline-block; font-size: 12px; color: #047857; font-weight: 600; margin-top: 3px; }
.bsa-refund-no { display: inline-block; font-size: 12px; color: #9ca3af; font-weight: 600; margin-top: 3px; }
.bsa-muted { color: #9ca3af; font-size: 13px; }
.bsa-gift-row { display: flex; gap: 8px; }
.bsa-gift-row input { flex: 1; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; font-family: monospace; }

/* Reschedule modal */
.bsa-modal {
    position: fixed; inset: 0; z-index: 100000; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(15,23,42,.5);
}
.bsa-modal-box {
    background: #fff; border-radius: 16px; width: 100%; max-width: 460px;
    max-height: 92vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,.25);
}
.bsa-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #f0f0f0; font-size: 16px; }
.bsa-modal-x { background: none; border: none; font-size: 18px; cursor: pointer; color: #9ca3af; }
.bsa-modal-body { padding: 20px; }
.bsa-modal-foot { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid #f0f0f0; }
.bsa-modal-foot .bsa-btn { width: auto; flex: 1; }

.bsa-slotgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.bsa-slot {
    border: 1px solid #d1d5db; background: #fff; border-radius: 10px; padding: 8px 12px;
    font-size: 14px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start;
}
.bsa-slot small { font-weight: 400; color: #9ca3af; font-size: 11px; }
.bsa-slot:hover { border-color: var(--bsa-primary); }
.bsa-slot.is-sel { background: var(--bsa-primary); color: #fff; border-color: var(--bsa-primary); }
.bsa-slot.is-sel small { color: rgba(255,255,255,.85); }

.bsa-points-hero {
    background: linear-gradient(135deg, var(--bsa-primary), #7c3aed);
    color: #fff; border-radius: 16px; padding: 28px; text-align: center; margin-bottom: 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.bsa-points-num { font-size: 44px; font-weight: 800; line-height: 1; }
.bsa-points-label { font-size: 14px; opacity: .9; }

.bsa-empty { padding: 40px 20px; text-align: center; color: #9ca3af; background: #fff; border: 1px dashed #e5e7eb; border-radius: 14px; }
.bsa-soon  { padding: 40px 20px; text-align: center; color: #6b7280; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; }
.bsa-soon .bsa-soon-icon { font-size: 34px; display: block; margin-bottom: 8px; }

/* ── Dashboard: sidebar layout (matches admin) ───────────────────────── */
.bsa-layout { display: flex; gap: 24px; align-items: flex-start; }
@media (max-width: 820px) { .bsa-layout { flex-direction: column; } }

.bsa-side {
    position: sticky; top: 24px; width: 214px; flex-shrink: 0;
    background: #fff; border-radius: 18px; padding: 16px;
    box-shadow: 0 6px 22px rgba(180,60,110,.10);
}
@media (max-width: 820px) { .bsa-side { position: static; width: 100%; } }
.bsa-brand { font-weight: 800; color: var(--bsa-primary); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px 12px; }
.bsa-nav { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 820px) { .bsa-nav { flex-direction: row; flex-wrap: wrap; } }

/* Override the old pill nav → sidebar item */
.bsa-navtab {
    display: flex !important; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 12px 14px !important; border: none !important; background: transparent !important;
    border-radius: 12px !important; font-size: 14px !important; font-weight: 700 !important; color: #9d2f66 !important; cursor: pointer;
}
.bsa-navtab span { font-size: 16px; }
.bsa-navtab.is-active { background: var(--bsa-grad) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(232,62,140,.3); }
.bsa-navtab:not(.is-active):hover { background: #fdf2f8 !important; }
.bsa-signout { color: #b07894 !important; margin-top: 6px; }
.bsa-main { flex: 1; min-width: 0; }

.bsa-welcome { font-size: 20px; font-weight: 800; color: var(--bsa-primary); margin: 0 0 4px; }
.bsa-h3 { font-size: 12px; font-weight: 700; color: #9d2f66; text-transform: uppercase; letter-spacing: .05em; margin: 20px 0 10px; }

/* Home cards */
.bsa-hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.bsa-hcard {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
    background: #fff !important; border: 1px solid #f3d9e6 !important; border-radius: 16px !important; padding: 20px !important;
    box-shadow: 0 6px 18px rgba(180,60,110,.08) !important; cursor: pointer; text-decoration: none;
    transition: transform .1s, box-shadow .15s;
}
.bsa-hcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(180,60,110,.14) !important; }
.bsa-hcard-ico { font-size: 22px; }
.bsa-hcard-num { font-size: 28px; font-weight: 800; color: var(--bsa-primary); line-height: 1.1; }
.bsa-hcard-lbl { font-size: 12px; color: #9d2f66; font-weight: 600; }
.bsa-hcard--link { justify-content: center; }

.bsa-alert { background: linear-gradient(135deg,#fdf2f8,#fff7ed); border: 1px solid #fbcfe8; color: #be185d; border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }

.bsa-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bsa-pts-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 10px; margin-right: 6px; }
.bsa-pts-tag.is-earn  { background: #d1fae5; color: #065f46; }
.bsa-pts-tag.is-spend { background: #fee2e2; color: #991b1b; }

/* ── Consent checkboxes ─────────────────────────────────────────────── */
.bsa-consent {
    display: flex; align-items: flex-start; gap: 9px; margin: 8px 0;
    font-size: 13.5px; color: #374151; cursor: pointer; line-height: 1.4;
}
.bsa-consent input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: #e83e8c; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   Theme-beating resets for the account page (front-end theme paints all
   buttons as pink pills). Keep the plugin's own compact look.
   ══════════════════════════════════════════════════════════════════════ */
.bsa-wrap .bsa-modal-x {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 28px !important; height: 28px !important; min-width: 0 !important; padding: 0 !important;
    background: #fff !important; background-image: none !important; color: #9d2f66 !important;
    border: none !important; border-radius: 8px !important; box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
    font-size: 16px !important; line-height: 1 !important; font-weight: 700 !important;
    text-transform: none !important; letter-spacing: 0 !important; cursor: pointer !important;
    -webkit-appearance: none !important; appearance: none !important;
}
.bsa-wrap .bsa-modal-x:hover { background: #fce8f2 !important; color: #be185d !important; }

.bsa-wrap .bsa-navtab {
    display: flex !important; align-items: center !important; gap: 9px !important;
    width: 100% !important; text-align: left !important;
    background: transparent !important; background-image: none !important; box-shadow: none !important;
    color: #9d2f66 !important; text-transform: none !important; letter-spacing: 0 !important;
    padding: 9px 12px !important; font-size: 13px !important; font-weight: 600 !important;
    border: none !important; border-radius: 10px !important;
}
.bsa-wrap .bsa-navtab span { font-size: 15px !important; }
.bsa-wrap .bsa-navtab.is-active {
    background-image: var(--bsa-grad, linear-gradient(135deg,#e83e8c,#f59e0b)) !important;
    color: #fff !important; box-shadow: 0 3px 9px rgba(232,62,140,.22) !important;
}
.bsa-wrap .bsa-navtab:not(.is-active):hover { background: #fdf2f8 !important; }
.bsa-wrap .bsa-signout { color: #b07894 !important; margin-top: 6px; }

.bsa-wrap .bsa-btn {
    background-image: linear-gradient(135deg,#e83e8c,#f59e0b) !important; background-color: #e83e8c !important;
    color: #fff !important; border: none !important; box-shadow: none !important; border-radius: 9px !important;
    text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; font-size: 14px !important;
}
.bsa-wrap .bsa-btn--ghost {
    background: #fff !important; background-image: none !important; color: #374151 !important;
    border: 1px solid #d8dbe0 !important;
}

/* ── Loyalty rewards menu ────────────────────────────────────────────── */
.bsa-rewards { display: flex; flex-direction: column; gap: 10px; }
.bsa-reward {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1px solid #f3d9e6; border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(180,60,110,.06);
}
.bsa-reward.is-locked { opacity: .65; }
.bsa-reward-info { min-width: 0; }
.bsa-reward-name { font-weight: 700; color: #9d2f66; font-size: 15px; }
.bsa-reward-desc { font-size: 13px; color: #6b7280; margin-top: 2px; }
.bsa-reward-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bsa-reward-cost { font-size: 12px; font-weight: 800; color: #be185d; white-space: nowrap; }
.bsa-reward-btn { width: auto !important; padding: 8px 16px !important; font-size: 13px !important; }
.bsa-reward-btn:disabled { opacity: .6; }

/* ── Points progress bar ─────────────────────────────────────────────── */
.bsa-progress { max-width: 420px; margin: 4px auto 18px; }
.bsa-progress-top { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.bsa-progress-top strong { color: #9d2f66; }
.bsa-progress-bar { height: 10px; background: #f3e3ec; border-radius: 999px; overflow: hidden; }
.bsa-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg,#ec4899,#f59e0b); border-radius: 999px; transition: width .4s ease; }

/* Mini action buttons also work as <a> (Add-to-calendar Google link) */
a.bsa-mini { display: inline-block; text-decoration: none !important; line-height: 1.4; }

/* Referral link field */
#bsa-ref-link { font-family: monospace; font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — customer account
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    /* Sidebar → tidy 2-column grid of tabs (no horizontal scroll) */
    .bsa-side { padding: 12px; }
    .bsa-nav {
        display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px;
        flex-direction: unset !important; overflow: visible !important;
    }
    .bsa-wrap .bsa-navtab {
        flex: none !important; width: auto !important; white-space: normal !important;
        justify-content: center !important; text-align: center;
    }
    .bsa-wrap .bsa-signout { grid-column: 1 / -1; } /* sign out spans full width */
}
@media (max-width: 380px) {
    .bsa-nav { grid-template-columns: 1fr; } /* single column on very small screens */
}

@media (max-width: 560px) {
    .bsa-card { max-width: none; }
    .bsa-panel { padding: 22px 18px; }

    /* Booking cards: stack content + let action buttons wrap full width */
    .bsa-booking { flex-direction: column; align-items: stretch; }
    .bsa-booking-right { justify-content: space-between; }
    .bsa-booking-actions { flex-wrap: wrap; }
    .bsa-booking-actions .bsa-mini, .bsa-booking-actions a.bsa-mini { flex: 1 1 auto; text-align: center; }

    /* Reward rows stack */
    .bsa-reward { flex-direction: column; align-items: stretch; gap: 10px; }
    .bsa-reward-right { justify-content: space-between; }

    /* Referral / gift code rows stack */
    .bsa-gift-row { flex-direction: column; }
    .bsa-gift-row .bsa-btn { width: 100% !important; }

    /* Reschedule modal fills the screen */
    .bsa-modal { padding: 0; align-items: stretch; }
    .bsa-modal-box { max-width: none; width: 100%; min-height: 100%; max-height: 100%; border-radius: 0; }

    .bsa-two { grid-template-columns: 1fr; }
    .bsa-dash-head { flex-direction: column; align-items: stretch; }
}
