/* =========================================================================
   MobiDoctor Booking Flow v2 — shared design system
   Mobile-first card layout, sticky bottom CTA, calm clinical palette.
   ========================================================================= */

   :root {
    --bkv2-primary: #0f766e;
    --bkv2-primary-hover: #0c5f59;
    --bkv2-primary-soft: #e6f4f1;
    --bkv2-ink: #0f2a3a;
    --bkv2-ink-soft: #1a3344;
    --bkv2-muted: #6b7b88;
    --bkv2-border: #e4eaf0;
    --bkv2-border-strong: #cfdae3;
    --bkv2-bg: #f6f8fa;
    --bkv2-card-bg: #ffffff;
    --bkv2-danger: #c0362c;
    --bkv2-danger-soft: #fdecea;
    --bkv2-radius: 16px;
    --bkv2-radius-sm: 12px;
    --bkv2-shadow: 0 1px 2px rgba(15, 42, 58, .04), 0 6px 18px rgba(15, 42, 58, .05);
}

/* Page surface ----------------------------------------------------------- */
.bk-page { background: var(--bkv2-bg); }

.bkv2 {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 120px;
    color: var(--bkv2-ink);
    -webkit-font-smoothing: antialiased;
}

.bkv2 *, .bkv2 *::before, .bkv2 *::after { box-sizing: border-box; }

/* Pre-payment steps lay their content out in a 520px centered column (.bkv2).
   Center the progress stepper to that same column instead of letting it
   left-align across the full content width. */
.bk-wrap:has(.bkv2) .bk-page-head {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the pre-payment stepper at the SAME width (520px, centered) on every
   pre-payment page — including treatment (whose illness grid widens .bkv2) and
   payment (which uses .bk-pay-stack, not .bkv2, so the rule above never matched
   it and the stepper stretched wider than on eligibility). */
.bkv2-progress-wrap[data-flow-phase="pre"] {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bkv2-page-title {
    font-size: 26px;
    line-height: 1.18;
    font-weight: 800;
    color: var(--bkv2-ink);
    margin: 6px 0 4px;
    letter-spacing: -.02em;
}
/* Mobile: keep the page heading to one line across all booking pages. */
@media (max-width: 767px) {
    .bkv2-page-title { font-size: 24px; }
}

.bkv2-page-sub {
    font-size: 15px;
    color: var(--bkv2-muted);
    margin: 0 0 18px;
}

/* Progress bar ----------------------------------------------------------- */
/* ============================================================
   Progress stepper (motivating, completed steps show a check)
   ============================================================ */
.bkv2-progress-wrap { margin: 0 0 8px; }
.bkv2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Slim 3-phase bar: Your details -> Payment -> Done. */
.bkv2-phases {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.bkv2-phase {
    flex: 1 1 auto;
    min-width: max-content;
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 10px;
}
/* Top track segment above each phase, fills green when done/current. */
.bkv2-phase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 999px;
    background: var(--bkv2-border);
    transition: background .3s ease;
}
.bkv2-phase.is-done::before,
.bkv2-phase.is-current::before { background: var(--bkv2-primary); }

.bkv2-phase-dot {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    background: #fff;
    border: 2px solid var(--bkv2-border);
    color: var(--bkv2-muted, #8a98a8);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bkv2-phase-dot svg { width: 15px; height: 15px; }
.bkv2-phase.is-current .bkv2-phase-dot {
    background: var(--bkv2-primary);
    border-color: var(--bkv2-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .16);
}
.bkv2-phase.is-done .bkv2-phase-dot {
    background: var(--bkv2-primary);
    border-color: var(--bkv2-primary);
    color: #fff;
}

.bkv2-phase-name {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--bkv2-muted, #8a98a8);
    white-space: nowrap;
}
.bkv2-phase.is-current .bkv2-phase-name { color: var(--bkv2-primary); }
.bkv2-phase.is-done .bkv2-phase-name { color: var(--bkv2-ink, #0f2a3a); }

.bkv2-phases-micro {
    margin: 10px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bkv2-muted, #8a98a8);
}

@media (min-width: 768px) {
    .bkv2-progress-wrap { margin: 0 0 10px; }
    .bkv2-phase-dot { width: 30px; height: 30px; font-size: 14px; }
    .bkv2-phase-dot svg { width: 17px; height: 17px; }
    .bkv2-phase-name { font-size: 14px; }
}

/* Phones: share the row evenly and let longer labels (e.g. the post-payment
   "Appointment secured") wrap instead of forcing horizontal overflow. */
@media (max-width: 767px) {
    /* On phones, stack the label directly under its number. Side by side, a long
       label ("Consultation"/"Your details") overflows into the next step's dot;
       stacking lets each label keep its full text on one line in its own column
       without touching the next step. */
    .bkv2-phases { gap: 18px; }
    .bkv2-phase {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
    /* Let long labels ("Appointment secured") wrap within their own column
       rather than overflow into the next step; short labels still fit one line. */
    .bkv2-phase-name { white-space: normal; font-size: 11px; line-height: 1.2; overflow-wrap: break-word; }
    /* Pre-payment labels (Consultation / Eligibility / Your details) are short
       enough to stay on a single line; only the post phase needs wrapping. */
    [data-flow-phase="pre"] .bkv2-phase-name { white-space: nowrap; }
}

/* Appointment banner ----------------------------------------------------- */
.bkv2-appt-banner {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--bkv2-primary-soft);
    border: 1px solid #d3e9e4;
    border-radius: var(--bkv2-radius);
    padding: 14px 16px;
    margin-bottom: 18px;
}
.bkv2-appt-banner-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #fff; color: var(--bkv2-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bkv2-appt-banner-body { flex: 1; min-width: 0; }
.bkv2-appt-banner-time { font-size: 16px; font-weight: 800; color: var(--bkv2-ink); }
.bkv2-appt-banner-doctor { font-size: 12.5px; font-weight: 600; color: var(--bkv2-muted); margin-top: 1px; }
.bkv2-appt-banner-sub { font-size: 13px; color: var(--bkv2-muted); }
.bkv2-price-pill {
    background: #fff; color: var(--bkv2-ink);
    border: 1px solid #d3e9e4; border-radius: 999px;
    font-size: 14px; font-weight: 800; padding: 6px 13px; white-space: nowrap;
}

/* Cards ------------------------------------------------------------------ */
.bkv2-card {
    background: var(--bkv2-card-bg);
    border: 1px solid var(--bkv2-border);
    border-radius: var(--bkv2-radius);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--bkv2-shadow);
}
.bkv2-card-head { display: flex; align-items: center; gap: 12px; }
.bkv2-card-head-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--bkv2-primary-soft); color: var(--bkv2-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bkv2-card-head-text { flex: 1; min-width: 0; }
.bkv2-card-title { font-size: 16px; font-weight: 800; color: var(--bkv2-ink); margin: 0; }
.bkv2-card-sub { font-size: 13px; color: var(--bkv2-muted); margin: 2px 0 0; }

/* Section heading (outside a card) --------------------------------------- */
.bkv2-section-title { font-size: 17px; font-weight: 800; color: var(--bkv2-ink); margin: 22px 0 4px; }
.bkv2-section-sub { font-size: 13px; color: var(--bkv2-muted); margin: 0 0 12px; }

/* Confirmation list (green ticks) ---------------------------------------- */
.bkv2-confirm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.bkv2-confirm-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--bkv2-ink); }
.bkv2-confirm-check {
    width: 20px; height: 20px; border-radius: 50%; background: var(--bkv2-primary);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Form fields ------------------------------------------------------------ */
.bkv2-field { margin-bottom: 16px; }
.bkv2-field:last-child { margin-bottom: 0; }
.bkv2-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .bkv2-row-2 { grid-template-columns: 1fr; } }

.bkv2-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--bkv2-ink); margin-bottom: 7px; }

.bkv2-input, .bkv2-select {
    width: 100%;
    border: 1px solid var(--bkv2-border-strong);
    border-radius: var(--bkv2-radius-sm);
    padding: 13px 14px;
    font-size: 15px;
    color: var(--bkv2-ink);
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.bkv2-input::placeholder { color: #9aa7b1; }
.bkv2-input:focus, .bkv2-select:focus { border-color: var(--bkv2-primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.bkv2-input:disabled, .bkv2-input[readonly] { background: #f3f6f8; color: var(--bkv2-muted); }
.bkv2-input.is-invalid, .bkv2-select.is-invalid { border-color: var(--bkv2-danger); box-shadow: 0 0 0 3px rgba(192, 54, 44, .1); }

.bkv2-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7b88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Hide number spinners */
.bkv2-input[type=number]::-webkit-outer-spin-button,
.bkv2-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bkv2-input[type=number] { -moz-appearance: textfield; }

.bkv2-input-group { position: relative; }
.bkv2-input-group.has-icon .bkv2-input { padding-left: 44px; }
.bkv2-input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--bkv2-muted); display: flex; pointer-events: none;
}
.bkv2-input-suffix {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--bkv2-primary);
    font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px;
}

.bkv2-error { display: block; font-size: 12.5px; color: var(--bkv2-danger); margin-top: 6px; font-weight: 600; }

/* Phone group ------------------------------------------------------------ */
.bkv2-phone-group { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }

/* Searchable selects (select2) — country code & current country.
   Scoped to the container that select2 inserts right after our <select>,
   so it works regardless of select2 version / CSS load order. */
.bkv2-select2,
select.bkv2-select + .select2-container { width: 100% !important; }
select.bkv2-select + .select2-container .select2-selection--single {
    height: 48px !important; display: flex !important; align-items: center !important;
    border: 1px solid var(--bkv2-border-strong) !important;
    border-radius: var(--bkv2-radius-sm) !important;
    padding: 0 28px 0 12px !important; background: #fff !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
select.bkv2-select + .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important; margin: 0 !important; line-height: normal !important;
    font-size: 15px !important; color: var(--bkv2-ink) !important;
}
select.bkv2-select + .select2-container .select2-selection--single .select2-selection__placeholder { color: #9aa7b1 !important; }
select.bkv2-select + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important; top: 0 !important; right: 6px !important;
}
select.bkv2-select + .select2-container--open .select2-selection--single,
select.bkv2-select + .select2-container--focus .select2-selection--single {
    border-color: var(--bkv2-primary) !important; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12) !important;
}
select.bkv2-select.is-invalid + .select2-container .select2-selection--single {
    border-color: var(--bkv2-danger) !important; box-shadow: 0 0 0 3px rgba(192, 54, 44, .1) !important;
}
.select2-dropdown.bkv2-select2-dd {
    border: 1px solid var(--bkv2-border-strong); border-radius: var(--bkv2-radius-sm);
    box-shadow: 0 10px 28px rgba(16, 42, 58, .12); overflow: hidden;
}
.select2-dropdown.bkv2-select2-dd .select2-search--dropdown { padding: 8px; }
.select2-dropdown.bkv2-select2-dd .select2-search__field {
    border: 1px solid var(--bkv2-border-strong); border-radius: 8px; padding: 8px 10px; outline: none;
}
.select2-dropdown.bkv2-select2-dd .select2-search__field:focus { border-color: var(--bkv2-primary); }
.select2-dropdown.bkv2-select2-dd .select2-results__option { padding: 9px 12px; font-size: 14.5px; }
.select2-dropdown.bkv2-select2-dd .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--bkv2-primary-soft) !important; color: var(--bkv2-primary) !important;
}
.select2-dropdown.bkv2-select2-dd .select2-results__option--selected {
    background: var(--bkv2-primary) !important; color: #fff !important;
}

/* Pill selectors --------------------------------------------------------- */
.bkv2-pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bkv2-pill {
    flex: 1 1 0; min-width: 90px;
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 1.5px solid var(--bkv2-border-strong);
    border-radius: var(--bkv2-radius-sm);
    padding: 13px 12px;
    font-size: 14.5px; font-weight: 600; color: var(--bkv2-ink);
    cursor: pointer; text-align: center; background: #fff;
    transition: border-color .15s ease, background .15s ease;
}
.bkv2-pill:hover { border-color: var(--bkv2-primary); }
.bkv2-pill.is-active { border-color: var(--bkv2-primary); background: var(--bkv2-primary-soft); color: var(--bkv2-primary); }
.bkv2-pill-radio { position: absolute; opacity: 0; pointer-events: none; }
.bkv2-pill-tick {
    width: 18px; height: 18px; border-radius: 50%; background: var(--bkv2-primary);
    display: none; align-items: center; justify-content: center;
}
.bkv2-pill.is-active .bkv2-pill-tick { display: inline-flex; }

/* Checkboxes ------------------------------------------------------------- */
.bkv2-check-row { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; }
.bkv2-check-row + .bkv2-check-row { border-top: 1px solid var(--bkv2-border); }
/* Error shown on the line below its checkbox, aligned under the label */
.bkv2-check-row + .bkv2-error { margin: -2px 0 4px 33px; }
.bkv2-check-box {
    width: 22px; height: 22px; border-radius: 6px;
    border: 1.5px solid var(--bkv2-border-strong); background: #fff;
    flex-shrink: 0; margin-top: 1px; position: relative; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.bkv2-check-box:checked { background: var(--bkv2-primary); border-color: var(--bkv2-primary); }
.bkv2-check-box:checked::after {
    content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.bkv2-check-label { font-size: 14px; line-height: 1.45; color: var(--bkv2-ink); cursor: pointer; }
.bkv2-check-label a { color: var(--bkv2-primary); font-weight: 700; }

/* Notes / info ----------------------------------------------------------- */
.bkv2-note {
    display: flex; gap: 9px; align-items: flex-start;
    background: var(--bkv2-primary-soft);
    border-radius: var(--bkv2-radius-sm);
    padding: 11px 13px; font-size: 13px; color: var(--bkv2-ink-soft); line-height: 1.45;
}
.bkv2-note-icon { color: var(--bkv2-primary); flex-shrink: 0; display: flex; margin-top: 1px; }

.bkv2-info-warn {
    display: flex; gap: 9px; align-items: flex-start;
    background: #fff7e8; border: 1px solid #f4e3bf; border-radius: var(--bkv2-radius-sm);
    padding: 11px 13px; font-size: 13px; color: #7a5a12; line-height: 1.45; margin-top: 10px;
}

/* Reassurance ------------------------------------------------------------ */
.bkv2-reassure {
    display: flex; gap: 12px; align-items: center;
    background: var(--bkv2-primary-soft); border-radius: var(--bkv2-radius);
    padding: 13px 15px; margin-bottom: 16px;
}
.bkv2-reassure-icon {
    width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--bkv2-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bkv2-reassure-body { font-size: 13.5px; color: var(--bkv2-ink-soft); line-height: 1.4; }
.bkv2-reassure-body strong { color: var(--bkv2-ink); }

/* Emergency / inline stop ------------------------------------------------ */
.bkv2-emergency {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--bkv2-danger-soft); border: 1px solid #f3c9c5; border-radius: var(--bkv2-radius-sm);
    padding: 12px 14px; font-size: 13px; color: var(--bkv2-danger); line-height: 1.45; margin-bottom: 16px;
}
.bkv2-emergency-icon { flex-shrink: 0; display: flex; margin-top: 1px; }
.bkv2-inline-stop strong { display: block; margin-bottom: 2px; }

.bkv2-error-box {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 14px; font-weight: 600;
}

/* Hard stop (controlled medication) -------------------------------------- */
.bkv2-hard-stop {
    background: var(--bkv2-danger-soft); border: 1px solid #f3c9c5;
    border-radius: var(--bkv2-radius); padding: 30px 22px; text-align: center;
    margin-top: 18px;
}
.bkv2-hard-stop-icon { color: var(--bkv2-danger); display: flex; justify-content: center; margin-bottom: 10px; }
.bkv2-hard-stop-title { font-size: 20px; font-weight: 800; color: var(--bkv2-danger); margin: 0 0 8px; }
.bkv2-hard-stop-text { font-size: 14px; color: var(--bkv2-ink-soft); margin: 0 0 18px; }
.bkv2-hard-stop-btn {
    display: inline-block; background: #fff; border: 1.5px solid var(--bkv2-border-strong);
    border-radius: var(--bkv2-radius-sm); padding: 13px 22px; font-weight: 700; color: var(--bkv2-ink);
    text-decoration: none;
}

/* Tabs (treatment) ------------------------------------------------------- */
.bkv2-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.bkv2-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    border: 1.5px solid var(--bkv2-border); border-radius: var(--bkv2-radius-sm);
    padding: 11px 8px; font-size: 13.5px; font-weight: 700; color: var(--bkv2-muted);
    background: #fff; cursor: pointer; transition: all .15s ease;
}
.bkv2-tab svg { flex-shrink: 0; }
.bkv2-tab.is-active { border-color: var(--bkv2-primary); color: var(--bkv2-primary); background: var(--bkv2-primary-soft); }

.bkv2-tab-panel { display: none; }
.bkv2-tab-panel.is-active { display: block; }

.bkv2-group-head { display: flex; align-items: center; gap: 11px; margin: 6px 0 12px; }
.bkv2-group-head-icon { color: var(--bkv2-primary); display: flex; flex-shrink: 0; }
.bkv2-group-title { font-size: 16px; font-weight: 800; color: var(--bkv2-ink); margin: 0; }
.bkv2-group-sub { font-size: 13px; color: var(--bkv2-muted); margin: 1px 0 0; }

/* Rich list rows (treatment / review add-ons) ---------------------------- */
.bkv2-list { display: flex; flex-direction: column; gap: 10px; }
.bkv2-list-row {
    display: flex; align-items: center; gap: 13px;
    background: #fff; border: 1.5px solid var(--bkv2-border);
    border-radius: var(--bkv2-radius); padding: 14px 15px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease; position: relative;
}
.bkv2-list-row:hover { border-color: var(--bkv2-primary); box-shadow: 0 2px 8px rgba(15, 42, 58, .06); }
.bkv2-list-row:focus-visible { outline: none; border-color: var(--bkv2-primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .18); }
.bkv2-list-row.is-active { border-color: var(--bkv2-primary); background: var(--bkv2-primary-soft); }
/* Disabled / unavailable condition (Spec 7.1): muted, not clickable. */
.bkv2-list-row.is-disabled {
    opacity: .55; cursor: not-allowed; pointer-events: none;
    background: #f6f8fa; border-color: var(--bkv2-border);
}
.bkv2-list-row.is-disabled .bkv2-list-radio { border-color: var(--bkv2-border-strong); background: transparent; }
.bkv2-list-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--bkv2-primary-soft);
    color: var(--bkv2-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bkv2-list-icon img { width: 26px; height: 26px; object-fit: contain; }
.bkv2-list-body { flex: 1; min-width: 0; }
.bkv2-list-title { font-size: 15px; font-weight: 700; color: var(--bkv2-ink); }
.bkv2-list-desc { font-size: 13px; color: var(--bkv2-muted); line-height: 1.4; }
.bkv2-list-price { font-size: 14px; font-weight: 800; color: var(--bkv2-ink); white-space: nowrap; }
.bkv2-list-chevron { color: #b6c2cc; flex-shrink: 0; display: flex; }
.bkv2-list-go {
    background: var(--bkv2-primary); color: #fff; border: none; border-radius: 10px;
    padding: 9px 15px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.bkv2-list-go:hover { background: var(--bkv2-primary-hover); color: #fff; }
.bkv2-express-row { text-decoration: none; color: inherit; }
.bkv2-express-row:hover { border-color: var(--bkv2-primary); color: inherit; }
/* "Express" tag on express-prescription illness rows */
.bkv2-express-tag {
    flex-shrink: 0;
    font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
    color: var(--bkv2-primary); background: var(--bkv2-primary-soft);
    border-radius: 999px; padding: 3px 9px;
}
.bkv2-list-meta { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bkv2-list-price { font-size: 14px; font-weight: 700; color: var(--bkv2-ink); white-space: nowrap; }

/* Express Prescription card (Spec 6.2): same design language as a condition
   card but slightly elevated, sitting under the search and above the list.
   The CTA is deliberately secondary so the sticky Continue stays dominant. */
.bkv2-express-card {
    display: flex; align-items: center; gap: 13px;
    background: var(--bkv2-primary-soft);
    border: 1.5px solid var(--bkv2-primary);
    border-radius: var(--bkv2-radius); padding: 14px 15px;
    margin-bottom: 16px; text-decoration: none; color: inherit;
    box-shadow: 0 2px 10px rgba(15, 118, 110, .10);
    transition: box-shadow .15s ease, transform .15s ease;
}
.bkv2-express-card:hover { box-shadow: 0 4px 16px rgba(15, 118, 110, .16); color: inherit; }
.bkv2-express-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 118, 110, .25); }
.bkv2-express-card-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #fff;
    color: var(--bkv2-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bkv2-express-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bkv2-express-card-title { font-size: 15px; font-weight: 800; color: var(--bkv2-ink); }
.bkv2-express-card-sub { font-size: 13px; color: var(--bkv2-ink-soft); line-height: 1.4; }
.bkv2-express-card-cta {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    font-size: 13.5px; font-weight: 700; color: var(--bkv2-primary); white-space: nowrap;
}

/* Condition grid (Spec 6.1 / 4.x): 1-column on mobile (inherited from the base
   flex .bkv2-list), responsive 2-column grid from tablet/desktop. Cards never
   drop below 280px wide, so on narrower tablets the grid collapses back to a
   single column automatically. Rows keep a >=48px tap target. */
#bkv2-general-list .bkv2-list-row { min-height: 56px; }

@media (min-width: 768px) {
    .bkv2:has(#bkv2-general-list) { max-width: 760px; }
    #bkv2-general-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
        align-items: stretch;
    }
    #bkv2-general-list .bkv2-list-row { height: 100%; }
}

/* Illness search */
.bkv2-search {
    position: relative; display: flex; align-items: center;
    background: #fff; border: 1px solid var(--bkv2-border);
    border-radius: var(--bkv2-radius-sm); padding: 0 12px; margin-bottom: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bkv2-search:focus-within { border-color: var(--bkv2-primary); box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.12); }
.bkv2-search-icon { color: var(--bkv2-ink-mute, #7a8a93); display: flex; flex-shrink: 0; }
.bkv2-search-input {
    flex: 1; border: none; outline: none; background: transparent;
    padding: 12px 10px; font-size: 15px; color: var(--bkv2-ink);
}
.bkv2-search-input::placeholder { color: #9aa7b0; }
.bkv2-search-clear {
    display: flex; align-items: center; justify-content: center;
    background: #eef2f4; color: #5a6b75; border: none; border-radius: 50%;
    width: 24px; height: 24px; cursor: pointer; flex-shrink: 0;
}
.bkv2-search-clear:hover { background: #e1e7ea; color: var(--bkv2-ink); }
.bkv2-search-empty { font-size: 14px; color: var(--bkv2-ink-soft); padding: 14px 4px; margin: 0; }
.bkv2-list-radio {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bkv2-border-strong);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.bkv2-list-row.is-active .bkv2-list-radio { border-color: var(--bkv2-primary); background: var(--bkv2-primary); }
.bkv2-list-row.is-active .bkv2-list-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Condition cards on mobile (client feedback): tighter rows so ~7-8 fit on a
   phone screen, with a larger icon/title/radio for easier reading + tapping.
   Scoped to the condition rows (.bkv2-cat) so other lists are untouched. */
@media (max-width: 767px) {
    .bkv2-list .bkv2-list-row.bkv2-cat {
        min-height: 72px;
        padding: 12px 16px;
        border-radius: 18px;
    }
    #bkv2-general-list { gap: 8px; }
    #bkv2-general-list .bkv2-list-row { min-height: 72px; }
    .bkv2-list-row.bkv2-cat .bkv2-list-icon { width: 48px; height: 48px; }
    .bkv2-list-row.bkv2-cat .bkv2-list-icon img { width: 30px; height: 30px; }
    .bkv2-list-row.bkv2-cat .bkv2-list-title { font-size: 18px; line-height: 1.25; }
    .bkv2-list-row.bkv2-cat .bkv2-list-radio { width: 28px; height: 28px; }
}

/* Search field for categories */
.bkv2-search { margin-bottom: 14px; }

/* Smart routing banner (express) ----------------------------------------- */
.bkv2-smart {
    background: var(--bkv2-primary); border: 1px solid var(--bkv2-primary);
    border-radius: var(--bkv2-radius); padding: 16px; margin-top: 14px;
}
.bkv2-smart-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bkv2-smart-icon { color: #fff; display: flex; flex-shrink: 0; }
.bkv2-smart-title { font-size: 15px; font-weight: 800; color: #fff; }
.bkv2-smart-sub { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin-bottom: 10px; }
.bkv2-smart-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.bkv2-smart-list li { font-size: 13px; color: rgba(255, 255, 255, 0.9); display: flex; align-items: center; gap: 8px; }
.bkv2-smart-list li svg { color: #fff; flex-shrink: 0; }
.bkv2-smart-btn {
    display: block; width: 100%; text-align: center; background: var(--bkv2-primary); color: #fff;
    border: none; border-radius: var(--bkv2-radius-sm); padding: 13px; font-weight: 700; font-size: 15px;
    text-decoration: none; cursor: pointer;
}
.bkv2-smart-link { display: block; text-align: center; margin-top: 10px; color: var(--bkv2-primary); font-weight: 700; font-size: 14px; background: none; border: none; cursor: pointer; width: 100%; }
.bkv2-smart-btn--light {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto;
    background: #fff; color: var(--bkv2-primary); padding: 12px 20px;
}
.bkv2-smart-btn--light:hover { background: rgba(255, 255, 255, 0.9); }

/* Express suggestion modal ----------------------------------------------- */
.bkv2-modal {
    position: fixed; inset: 0; z-index: 1100; display: none;
    align-items: center; justify-content: center; padding: 18px;
}
.bkv2-modal.is-open { display: flex; }
.bkv2-modal-overlay {
    position: absolute; inset: 0; background: rgba(15, 42, 58, .55);
}
.bkv2-modal-card {
    position: relative; z-index: 1; width: 100%; max-width: 420px;
    background: var(--bkv2-card-bg); border-radius: var(--bkv2-radius);
    box-shadow: 0 12px 40px rgba(15, 42, 58, .25); padding: 24px 22px 22px;
    text-align: center; animation: bkv2-modal-in .18s ease;
}
@keyframes bkv2-modal-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bkv2-modal-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    border: none; background: var(--bkv2-bg); border-radius: 50%; cursor: pointer;
    color: var(--bkv2-muted); display: flex; align-items: center; justify-content: center;
}
.bkv2-modal-close:hover { background: var(--bkv2-border); color: var(--bkv2-ink); }
.bkv2-modal-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    background: var(--bkv2-primary-soft); color: var(--bkv2-primary);
    display: flex; align-items: center; justify-content: center;
}
.bkv2-modal-title { font-size: 19px; font-weight: 800; color: var(--bkv2-ink); margin: 0 0 8px; }
.bkv2-modal-sub { font-size: 14px; color: var(--bkv2-muted); margin: 0 0 20px; line-height: 1.5; }
.bkv2-modal-list {
    list-style: none; padding: 0; margin: 0 0 20px;
    display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.bkv2-modal-list li {
    font-size: 14px; color: var(--bkv2-ink); display: flex; align-items: center; gap: 9px;
}
.bkv2-modal-list li svg { color: var(--bkv2-primary); flex-shrink: 0; }
.bkv2-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.bkv2-modal-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 14px; border-radius: var(--bkv2-radius-sm);
    font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: none;
}
.bkv2-modal-btn--primary,
.bkv2-modal-btn--primary:hover,
.bkv2-modal-btn--primary:focus,
.bkv2-modal-btn--primary:visited { color: #fff; }
.bkv2-modal-btn--primary { background: var(--bkv2-primary); }
.bkv2-modal-btn--primary:hover { background: var(--bkv2-primary-hover); }
.bkv2-modal-btn--ghost { background: #fff; color: var(--bkv2-ink); border: 1px solid var(--bkv2-border-strong); }
.bkv2-modal-btn--ghost:hover { background: var(--bkv2-bg); }

/* Summary rows (review / totals) ----------------------------------------- */
.bkv2-included { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.bkv2-included li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--bkv2-ink); }
.bkv2-included li .bkv2-confirm-check { width: 18px; height: 18px; }

.bkv2-divider { height: 1px; background: var(--bkv2-border); margin: 15px 0; border: 0; }

.bkv2-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--bkv2-ink-soft); margin-bottom: 8px; }
.bkv2-total-row.is-total { font-size: 18px; font-weight: 800; color: var(--bkv2-ink); border-top: 1px solid var(--bkv2-border); padding-top: 12px; margin-top: 4px; }

.bkv2-change-row { display: flex; gap: 10px; margin-top: 14px; }
.bkv2-change-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 1.5px solid var(--bkv2-border-strong); border-radius: var(--bkv2-radius-sm);
    padding: 10px; font-size: 13px; font-weight: 700; color: var(--bkv2-primary); text-decoration: none; background: #fff;
}

/* Sticky bottom CTA ------------------------------------------------------ */
.bkv2-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--bkv2-border);
    box-shadow: 0 -4px 18px rgba(15, 42, 58, .06);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.bkv2-sticky-inner { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.bkv2-sticky-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bkv2-sticky-info-icon { color: var(--bkv2-primary); flex-shrink: 0; display: flex; }
.bkv2-sticky-info-body { min-width: 0; }
.bkv2-sticky-info-title { font-size: 14px; font-weight: 800; color: var(--bkv2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkv2-sticky-info-sub { font-size: 12px; color: var(--bkv2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkv2-sticky-btn {
    border: none; border-radius: var(--bkv2-radius-sm); background: var(--bkv2-primary); color: #fff;
    font-size: 15.5px; font-weight: 800; padding: 14px 26px; cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0;
    transition: background .15s ease;
}
.bkv2-sticky-btn:hover { background: var(--bkv2-primary-hover); }
.bkv2-sticky-btn:disabled { background: #b6c2cc; cursor: not-allowed; }

/* On small screens the long CTA squashes the appointment info — stack them */
@media (max-width: 560px) {
    .bkv2-sticky-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .bkv2-sticky-btn { width: 100%; padding: 13px 18px; }
}

/* Password requirements checklist --------------------------------------- */
.bkv2-pwreq {
    list-style: none; margin: 8px 0 0; padding: 9px 11px;
    background: var(--bkv2-bg); border: 1px solid var(--bkv2-border); border-radius: var(--bkv2-radius-sm);
    display: flex; flex-direction: column; gap: 4px;
}
.bkv2-pwreq li {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; line-height: 1.3; color: var(--bkv2-danger);
}
.bkv2-pwreq li.is-ok { color: var(--bkv2-primary); }
.bkv2-pwreq-mark {
    width: 16px; height: 16px; flex-shrink: 0; position: relative;
}
.bkv2-pwreq-mark::before,
.bkv2-pwreq-mark::after {
    content: ''; position: absolute; background: currentColor;
}
/* default: red X */
.bkv2-pwreq li:not(.is-ok) .bkv2-pwreq-mark::before {
    top: 7px; left: 2px; width: 12px; height: 2px; border-radius: 1px; transform: rotate(45deg);
}
.bkv2-pwreq li:not(.is-ok) .bkv2-pwreq-mark::after {
    top: 7px; left: 2px; width: 12px; height: 2px; border-radius: 1px; transform: rotate(-45deg);
}
/* satisfied: green check */
.bkv2-pwreq li.is-ok .bkv2-pwreq-mark::before {
    top: 8px; left: 1px; width: 5px; height: 2px; border-radius: 1px; transform: rotate(45deg);
}
.bkv2-pwreq li.is-ok .bkv2-pwreq-mark::after {
    top: 6px; left: 4px; width: 10px; height: 2px; border-radius: 1px; transform: rotate(-50deg);
}

/* Inline buttons */
.bkv2-link { color: var(--bkv2-primary); font-weight: 700; text-decoration: none; font-size: 13.5px; background: none; border: none; cursor: pointer; }
.bkv2-link-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Spinner */
.bkv2-spin {
    width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    border-radius: 50%; display: none; animation: bkv2-spin .7s linear infinite;
}
.bkv2-sticky-btn.is-loading .bkv2-spin { display: inline-block; }
.bkv2-sticky-btn.is-loading .bkv2-btn-label { opacity: .7; }
@keyframes bkv2-spin { to { transform: rotate(360deg); } }

/* OTP code input (6 boxes) ---------------------------------------------- */
.bkv2-otp-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.bkv2-otp-box {
    height: 56px;
    width: 100%;
    border: 1px solid var(--bkv2-border, #d6e0e6);
    border-radius: 14px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--bkv2-ink, #123044);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bkv2-otp-box:focus {
    outline: none;
    border-color: var(--bkv2-primary, #07836f);
    box-shadow: 0 0 0 4px rgba(7, 131, 111, .12);
}
.bkv2-help-inline { font-size: 13px; color: var(--bkv2-muted, #8a98a8); }
@media (max-width: 360px) {
    .bkv2-otp-row { gap: 6px; }
    .bkv2-otp-box { height: 50px; font-size: 20px; }
}

/* Utilities -------------------------------------------------------------- */
.is-hidden { display: none !important; }
.bkv2-mt-8 { margin-top: 8px; }
.bkv2-mb-0 { margin-bottom: 0 !important; }

/* Express "minutes" reassurance */
.bkv2-eta {
    text-align: center; background: var(--bkv2-primary-soft); border-radius: var(--bkv2-radius);
    padding: 16px; font-size: 14px; color: var(--bkv2-ink-soft); margin-bottom: 16px;
}
.bkv2-eta strong { display: block; font-size: 16px; color: var(--bkv2-ink); margin-bottom: 3px; }

/* ============================================================
   Mobile density (spec §5): bigger touch targets, 16px inputs to
   stop iOS zoom, spec page padding. Scoped to the booking flow.
   ============================================================ */
@media (max-width: 991px) {
    .bk-page .bk-input,
    .bk-page .bk-select {
        min-height: 56px;
        font-size: 16px;
        border-radius: 16px;
        padding: 0 16px;
    }
    .bk-page .bk-textarea {
        min-height: 128px;
        font-size: 16px;
        border-radius: 16px;
        padding: 14px 16px;
    }
    .bk-page .bkv2-sticky-btn,
    .bk-page .bk-pay-with-card-btn,
    .bk-page .bk-wallet-pay-btn,
    .bk-page .bk-discount-apply,
    .bk-page .bk-discount-remove {
        min-height: 58px;
    }
    .bk-page .bk-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 360px) {
    .bk-page .bk-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   Condition page: shorter sticky appointment bar on mobile
   (client feedback) so more of the condition list is visible.
   Scoped to .bkv2-sticky--conditions; other pages' sticky bars
   are unchanged. The higher-specificity selector also beats the
   .bk-page .bkv2-sticky-btn { min-height: 58px } rule above.
   ============================================================ */
@media (max-width: 767px) {
    .bk-page .bkv2-sticky--conditions .bkv2-sticky-btn {
        height: 56px;
        min-height: 56px;
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 14px;
    }
}
@media (max-width: 560px) {
    /* Stacked layout: use a 10px gap between the appointment summary row and the
       CTA via margin (drop the inner flex gap so it isn't doubled). */
    .bkv2-sticky--conditions .bkv2-sticky-inner { gap: 0; }
    .bkv2-sticky--conditions .bkv2-sticky-info { margin-bottom: 10px; }
}

@media (max-width: 991px) {
    [id^="provesrc"],
    [class^="provesrc"],
    .provesrc-popup,
    .ps-bubble,
    #ps-bubble,
    iframe[src*="provesrc"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}
