/*
 * Modern theme for the public appointment pages (appointment/index + appointment/book).
 * Loaded after appointment-style.css; everything is scoped under body.appt-list so the
 * legacy rules only lose where these pages override them.
 */

body.appt-list {
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-soft: #ecfdf5;
    --brand-softer: #ccfbf1;
    /* text in the brand colour (always readable on white), text on brand backgrounds, header gradient */
    --brand-text: #0f766e;
    --on-brand: #fff;
    --hero-a: #0f766e;
    --hero-b: #0d9488;
    --hero-c: #14b8a6;
    --brand-border: #99f6e4;
    --brand-accent: #2dd4bf;
    --brand-ring: #5eead4;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --bg: #f6f8fa;
    --danger: #dc2626;
    --warn: #d97706;

    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.appt-hero {
    position: relative;
    padding: 48px 20px 88px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18) 0, transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .12) 0, transparent 35%),
        linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
    color: #fff;
}

.appt-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    max-width: 100%;
}

.appt-hero__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.appt-hero h1 {
    margin: 0;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
}

.appt-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.appt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s ease;
}

a.appt-chip:hover {
    background: rgba(255, 255, 255, .28);
}

/* Booking page: smaller header so the calendar is visible sooner */
.appt-hero--compact {
    padding: 28px 20px 76px;
}

.appt-hero--compact .appt-hero__logo {
    padding: 10px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
}

.appt-hero--compact .appt-hero__logo img {
    width: auto !important;
    max-height: 110px !important;
}

.appt-hero--compact h1 {
    font-size: clamp(20px, 3vw, 26px);
}

/* ---------- Main ---------- */
.appt-main {
    position: relative;
    max-width: 1120px;
    margin: -56px auto 0;
    padding: 0 20px 48px;
}

.appt-main--plain {
    margin-top: 0;
    padding-top: 40px;
}

.appt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.appt-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.appt-section-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.appt-count {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 13px;
    font-weight: 600;
}

.appt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

/* ---------- Card ---------- */
.appt-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.appt-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-border);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.appt-card__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-accent));
}

.appt-card__body {
    display: flex;
    gap: 14px;
    flex: 1;
    padding: 22px;
}

.appt-card__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 18px;
}

.appt-card__footer {
    padding: 0 22px 22px;
}

.appt-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, gap .2s ease;
}

.appt-book:hover {
    background: var(--brand-dark);
    gap: 14px;
}

.appt-book:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

/* ---------- Admin-authored rich text ----------
 * Keeps bold/italic; font, size and (below the title) colour follow the page.
 * appointment-modern.js tags paragraphs as .appt-title / .appt-subtitle / .appt-desc. */
.appt-rich {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.appt-rich * {
    font-family: inherit !important;
}

.appt-rich p * {
    font-size: inherit !important;
    font-weight: inherit !important;
}

.appt-rich p {
    margin: 0 0 4px;
}

.appt-rich .appt-title {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.appt-rich .appt-title i,
.appt-rich .appt-title em {
    font-weight: 400 !important;
    color: var(--muted);
}

.appt-rich .appt-subtitle {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-text);
}

.appt-rich .appt-desc {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--muted);
}

.appt-rich .appt-subtitle *,
.appt-rich .appt-desc * {
    color: inherit !important;
}

.appt-rich img {
    max-width: 100%;
    height: auto;
}

/* Appointment name on one line (modal + confirmation): first paragraph only */
.appt-type-inline {
    font-weight: 600;
    color: var(--ink);
}

.appt-type-inline * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.appt-type-inline p {
    display: inline;
    margin: 0;
}

.appt-type-inline p ~ p,
.appt-type-inline br {
    display: none;
}

.appt-type-inline i,
.appt-type-inline em {
    font-weight: 400 !important;
    color: var(--muted) !important;
}

/* ---------- Misc ---------- */
.appt-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 16px;
}

.appt-empty i {
    font-size: 32px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.appt-footer {
    padding: 0 20px 32px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.appt-footer a {
    color: var(--muted);
    text-decoration: underline;
}

.appt-footer a:hover {
    color: var(--brand-text);
}

/* =====================================================================
 * Booking page
 * ===================================================================== */
.bk-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px;
    align-items: start;
}

.bk-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}

.bk-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.bk-step__num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 13px;
    font-weight: 700;
}

.bk-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.bk-back:hover {
    text-decoration: underline;
}

.bk-info__head {
    display: flex;
    gap: 14px;
}

.bk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.bk-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 13px;
    font-weight: 600;
}

.bk-desc {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.bk-desc * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.bk-desc p {
    margin: 0 0 6px;
}

.bk-desc:empty {
    display: none;
}

/* Calendar */
.appt-list .calendar-header {
    margin-bottom: 12px;
}

.appt-list #monthLabel {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.appt-list .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.appt-list .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px 4px;
}

.appt-list .day {
    width: 100%;
    max-width: 44px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.appt-list .day:hover {
    background: var(--brand-softer);
    transform: scale(1.06);
}

.appt-list .day.disabled {
    background: transparent;
    color: var(--muted);
    font-weight: 400;
}

.appt-list .day.selected,
.appt-list .day.selected:hover {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 35%, transparent);
}

.bk-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.bk-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bk-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
}

.bk-legend .is-selected {
    background: var(--brand);
    border-color: var(--brand);
}

/* Time slots */
.bk-selected-date {
    margin: -8px 0 14px;
    font-size: 13.5px;
    color: var(--muted);
}

.appt-list #timeButtons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 2px;
}

.appt-list #timeButtons > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 12px;
}

.appt-list button.time-slot {
    width: 100%;
    margin: 0;
    padding: 10px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.appt-list button.time-slot:hover:not(:disabled) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-text);
}

.appt-list button.time-slot:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    text-decoration: line-through;
}

.appt-list .highlight-slot {
    background-color: #fef3c7 !important;
    border-color: var(--warn) !important;
    color: #92400e !important;
}

/* Buttons shared by the modal + confirmation */
.appt-list .confirm,
.appt-list .reschedule,
.appt-list .modal-buttons .cancel,
.appt-list .edit-btn,
.appt-list .cancel-btn {
    margin: 0;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.appt-list .confirm {
    background: var(--brand);
    color: var(--on-brand);
}

.appt-list .confirm:hover {
    background: var(--brand-dark);
}

.appt-list .reschedule {
    background: var(--warn);
    color: #fff;
}

.appt-list .reschedule:hover {
    background: #b45309;
}

.appt-list .modal-buttons .cancel {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.appt-list .modal-buttons .cancel:hover {
    background: #f1f5f9;
}

.appt-list .edit-btn {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand-text);
}

.appt-list .edit-btn:hover {
    background: var(--brand-soft);
}

.appt-list .cancel-btn {
    background: #fff;
    border-color: #fecaca;
    color: var(--danger);
}

.appt-list .cancel-btn:hover {
    background: #fef2f2;
}

/* Loading state (set by setBookingLoading in book.blade.php) */
.appt-list button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: wait;
    opacity: .85;
}

.appt-list button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--on-brand);
    border-radius: 50%;
    animation: appt-spin .7s linear infinite;
}

.appt-list .modal-buttons button:disabled:not(.is-loading) {
    opacity: .5;
    cursor: not-allowed;
}

@keyframes appt-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Summary rows (modal + confirmation) */
.bk-summary {
    margin: 0;
    padding: 6px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.bk-summary__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    font-size: 14px;
    color: var(--ink);
}

.bk-summary__row + .bk-summary__row {
    border-top: 1px solid var(--line);
}

.bk-summary__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 14px;
}

.bk-summary__label {
    display: block;
    margin-bottom: 1px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bk-summary__value {
    font-weight: 600;
}

/* Modal */
.appt-list .modal {
    align-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.appt-list .modal-content {
    width: 100%;
    max-width: 540px;
    min-height: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}

.bk-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.bk-modal__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.bk-modal__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
}

.bk-modal__close:hover {
    background: var(--line);
    color: var(--ink);
}

.bk-form {
    margin-top: 20px;
}

.bk-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bk-field--full {
    grid-column: 1 / -1;
}

.bk-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.appt-list .modal input.form-control {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.appt-list .modal input.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.appt-list .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.appt-list .alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.appt-list .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Confirmation */
.appt-list .confirmation-wrapper {
    min-height: 0;
    padding: 8px 0 24px;
}

.appt-list .confirmation-box {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
    text-align: center;
}

.bk-done__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: 28px;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-soft) 60%, transparent);
}

/* manage link: "Add to your calendar" */
.bk-addcal {
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}

/* in the pharmacy's theme colour; .bk-addcal prefix beats the older .meeting-details a / p rules */
.bk-addcal .bk-addcal__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

.bk-addcal .bk-addcal__google:hover,
.bk-addcal .bk-addcal__google:focus-visible {
    background: var(--brand-dark);
    color: var(--on-brand);
}

.bk-addcal .bk-addcal__google:focus-visible {
    outline: 3px solid var(--brand-ring);
    outline-offset: 2px;
}

.bk-addcal p {
    display: block;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.bk-addcal p a {
    color: var(--brand-text);
    font-weight: 600;
}

/* manage link: a cancelled appointment */
.bk-done__icon--off {
    background: #f1f5f9;
    color: #64748b;
    box-shadow: 0 0 0 8px rgba(241, 245, 249, .6);
}

.bk-summary__row[hidden] {
    display: none;
}

/* the appointment's Google Meet link; .meeting-details prefix beats the older .meeting-details a rule */
.bk-summary .bk-meet,
.meeting-details .bk-meet {
    display: inline-block;
    color: var(--brand-text);
    font-weight: 700;
    text-decoration: underline;
}

.bk-summary__value--off {
    color: var(--muted);
    text-decoration: line-through;
}

.appt-list .confirmation-header {
    display: block;
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.bk-done__sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 14px;
}

.appt-list .meeting-details {
    padding: 0;
    background: none;
    text-align: left;
}

.appt-list .button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 0;
}

.appt-list .button-group button {
    flex: 1 1 150px;
    margin: 0;
}

/* appointment-style.css stacks these buttons below 768px; the 150px basis would then be their height */
@media (max-width: 768px) {
    .appt-list .button-group button {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }
}

/* SweetAlert popups (cancel confirmation, messages): the plugin theme is purple with mismatched buttons */
.appt-list .sweet-alert {
    /* the plugin centres with left:50% + negative margin and animates transform, so keep that scheme */
    width: 440px;
    margin-left: -220px;
    padding: 28px 24px 24px;
    border-radius: 20px;
    font-family: inherit;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}

/* same breakpoint as the plugin, which switches to left/right insets on small screens */
@media (max-width: 540px) {
    .appt-list .sweet-alert {
        width: auto;
        left: 16px;
        right: 16px;
        margin-left: 0;
        margin-right: 0;
    }

    .appt-list .sweet-alert .sa-button-container button {
        min-width: 0;
        flex: 1;
    }

    .appt-list .sweet-alert .sa-confirm-button-container {
        flex: 1;
    }

    .appt-list .sweet-alert .sa-confirm-button-container button {
        width: 100%;
    }
}

.appt-list .sweet-alert h2 {
    margin: 16px 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.appt-list .sweet-alert p {
    font-size: 15px;
    color: var(--muted);
}

.appt-list .sweet-alert .sa-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.appt-list .sweet-alert .sa-confirm-button-container {
    display: inline-flex;
}

.appt-list .sweet-alert button,
.appt-list .sweet-alert button.cancel,
.appt-list .sweet-alert button.confirm {
    min-width: 120px;
    height: 44px;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 15px !important;
    font-weight: 600;
}

.appt-list .sweet-alert button.cancel {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}

.appt-list .sweet-alert button.cancel:hover {
    background: #f1f5f9 !important;
}

.appt-list .sweet-alert button.confirm {
    background: var(--brand) !important;
    color: var(--on-brand) !important;
}

.appt-list .sweet-alert button.confirm:hover {
    background: var(--brand-dark) !important;
}

/* destructive questions (e.g. cancel appointment) */
.appt-list .sweet-alert.sa-danger button.confirm {
    background: var(--danger) !important;
}

.appt-list .sweet-alert.sa-danger button.confirm:hover {
    background: #b91c1c !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bk-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .bk-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .appt-hero {
        padding: 32px 16px 76px;
    }

    .appt-hero--compact {
        padding: 22px 16px 70px;
    }

    .appt-hero__logo {
        padding: 10px 16px;
        border-radius: 16px;
    }

    .appt-hero__logo img {
        max-height: 90px !important;
        width: auto !important;
    }

    .appt-hero--compact .appt-hero__logo img {
        max-height: 72px !important;
    }

    .appt-chip {
        font-size: 13px;
        padding: 7px 12px;
    }

    .appt-main {
        padding: 0 16px 32px;
    }

    .appt-section-head {
        padding: 16px;
    }

    .appt-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .appt-card__body {
        padding: 18px;
    }

    .appt-card__footer {
        padding: 0 18px 18px;
    }

    .appt-card:hover {
        transform: none;
    }

    /* booking */
    .bk-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bk-panel {
        padding: 18px;
    }

    .appt-list #timeButtons {
        max-height: none;
        grid-template-columns: repeat(3, 1fr);
    }

    .appt-list .modal {
        align-items: flex-end;
        padding: 0;
    }

    .appt-list .modal-content {
        max-width: none;
        max-height: 92vh;
        padding: 22px 18px;
        border-radius: 20px 20px 0 0;
    }

    .bk-form__grid {
        grid-template-columns: 1fr;
    }

    .appt-list .modal-buttons {
        flex-direction: column-reverse;
    }

    .appt-list .modal-buttons button {
        width: 100%;
    }

    .appt-list .confirmation-box {
        padding: 24px 18px;
    }

    .appt-list .button-group {
        flex-direction: column;
    }

    .appt-list .button-group button {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }
}
