html {
    font-size: 15px;
}

:root {
    --primary: #1089EC;
    --dark-primary: #022B4D;
    --gray: #444444;
    --light: #D0EAFF;
    --shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;

    --ground: #FFFFFF;
    --card: #FFFFFF;
    --border: #E3EDF5;
    --muted: #F4FAFF;

    --success: #0F9D58;
    --warning: #C2410C;
    --danger: #C0392B;
    --star: #F5A524;

    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 28px;
    --r-pill: 50px;

    --sh-1: 0 8px 24px rgba(149, 157, 165, 0.2);
    --sh-2: 0 15px 40px rgba(53, 72, 98, 0.10);
    --sh-3: 0 25px 60px rgba(53, 72, 98, 0.16);

    --focus: #0B63A8;
    --focus-ring: rgba(11, 99, 168, .28);

    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 40px;
    --s-5: 64px;
}

html[data-theme="dark"] {
    --ground: #0f172a;
    --card: #1e293b;
    --border: #334155;
    --muted: #1e293b;
    --star: #F5A524;
    --focus: #7DD3FC;
    --focus-ring: rgba(125, 211, 252, .32);
}


*,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
}

.shadow {
    box-shadow: var(--shadow) !important;
}

body,
html {
    background-color: #FFFFFF !important;
}

.text-dark {
    color: var(--dark-primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark-primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.text-gray {
    color: var(--gray) !important;
}

.bg-gray {
    background-color: var(--gray) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.text-light {
    color: var(--light) !important;
}

.btn {
    border-radius: 50px;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    padding: 10px 20px !important;
}

.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .2);
    width: 95%;
    border-radius: 16px;
    padding: 10px;
    margin: auto;
    /* position: fixed; */

    margin-top: 10px;
}

.navbar-nav {
    margin: auto;
}

.nav-link {
    font-weight: bold;
    color: gray;
    margin-left: 10px;
    margin-right: 10px;
}

.nav-link.active {
    color: var(--primary) !important;
}

.s-card {
    background-color: var(--card);
    border-radius: var(--r-md);
}

.s-card-p-none {
    padding: 0;
}

.s-card-p-sm {
    padding: 15px;
}

.s-card-p-md {
    padding: 24px;
}

.s-card-p-lg {
    padding: 32px;
}

.s-card-r-sm {
    border-radius: var(--r-sm);
}

.s-card-r-md {
    border-radius: var(--r-md);
}

.s-card-r-lg {
    border-radius: var(--r-lg);
}

.s-card-r-xl {
    border-radius: var(--r-xl);
}

.s-card-sh-none {
    box-shadow: none;
}

.s-card-sh-sm {
    box-shadow: var(--shadow);
}

.s-card-sh-md {
    box-shadow: var(--sh-2);
}

.s-card-fill {
    height: 100%;
}

.s-card-hover {
    transition: transform .35s ease, box-shadow .35s ease;
}

.s-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-3);
}


.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.s-btn-sm {
    padding: 10px 20px;
}

.s-btn-md {
    padding: 12px 26px;
}

.s-btn-lg {
    padding: 14px 30px;
}

.s-btn-primary {
    min-width: 150px;
    background-color: var(--primary);
    border-color: var(--dark-primary);
    color: #ffffff;
}

.s-btn-primary:hover {
    background-color: var(--dark-primary);
    color: #ffffff;
}

.s-btn-dark {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
    color: #ffffff;
}

.s-btn-dark:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.s-btn-solid {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.s-btn-solid:hover {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
    color: #ffffff;
}

.s-btn-outline {
    background-color: var(--card);
    border-color: rgba(16, 137, 236, .25);
    border-width: 1px;
    color: var(--dark-primary);
}

.s-btn-outline:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.s-btn-light {
    background-color: var(--muted);
    border-color: var(--border);
    color: var(--dark-primary);
}

.s-btn-light:hover {
    background-color: var(--border);
    color: var(--dark-primary);
}

.s-btn-block {
    width: 100%;
}

html[data-theme="dark"] .s-btn-primary {
    border-color: #38bdf8;
}

html[data-theme="dark"] .s-btn-outline,
html[data-theme="dark"] .s-btn-light {
    color: #f8fafc;
}


.s-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    text-align: center;
}

.s-chip-sm {
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.s-chip-md {
    width: 52px;
    height: 52px;
    font-size: 26px;
}

.s-chip-lg {
    width: 60px;
    height: 60px;
    font-size: 28px;
}

.s-chip-plain {
    background-color: var(--card);
    color: var(--dark-primary);
    box-shadow: var(--shadow);
}

.s-chip-light {
    background-color: var(--light);
    color: var(--primary);
}

.s-chip-outline {
    background-color: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--primary);
    font-weight: 700;
}

.s-chip-circle {
    border-radius: 50%;
}


.s-rating {
    display: inline-flex;
    gap: 4px;
    color: var(--star);
    font-size: 18px;
}

.s-star {
    display: inline-flex;
    opacity: .25;
}

.s-star.is-on {
    opacity: 1;
}

.s-star.is-on svg {
    fill: currentColor;
}


.s-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
}

.s-empty-text {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}


.s-req {
    color: var(--danger);
}

html[data-theme="dark"] .s-req {
    color: #fca5a5;
}

.footer * {
    color: white !important;
}


@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] {
        opacity: 0;
        transform: translateY(26px);
        transition:
            opacity .75s cubic-bezier(.16, 1, .3, 1),
            transform .75s cubic-bezier(.16, 1, .3, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .reveal-ready [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
    }
}


.clean-med-navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(16, 137, 236, 0.10);
    box-shadow: 0 12px 35px rgba(2, 43, 77, 0.07);
    padding: 13px 0;
    z-index: 999;
}

.clean-med-brand img {
    height: 50px;
    max-width: 190px;
    object-fit: contain;
}

.clean-med-links {
    background: #F4FAFF;
    border: 1px solid rgba(16, 137, 236, 0.10);
    border-radius: 60px;
    padding: 6px;
    gap: 2px;
}

.clean-med-links .nav-link {
    color: var(--dark-primary);
    font-weight: 800;
    font-size: 15px;
    padding: 10px 20px !important;
    border-radius: 45px;
    transition: 0.25s;
}

.clean-med-links .nav-link:hover {
    color: var(--primary);
    background: #ffffff;
}

.clean-med-links .nav-link.active {
    color: #ffffff;
    background: #0064BC;
    box-shadow: 0 8px 18px rgba(0, 100, 188, .28);
}

.clean-med-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clean-med-lang,
.clean-med-theme {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(16, 137, 236, 0.14);
    background: #ffffff;
    color: var(--dark-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(2, 43, 77, 0.06);
    transition: 0.25s;
}

.clean-med-lang:hover,
.clean-med-theme:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.clean-med-toggler {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 15px;
    background: var(--dark-primary);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 12px;
}

.clean-med-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 20px;
}

.clean-med-toggler:focus {
    box-shadow: none;
}

.clean-med-navbar-space {
    height: 88px;
}

@media (max-width: 991px) {
    .clean-med-navbar .navbar-collapse {
        background: #ffffff;
        margin-top: 14px;
        padding: 16px;
        border-radius: 24px;
        box-shadow: var(--shadow);
    }

    .clean-med-links {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .clean-med-links .nav-link {
        text-align: center;
        background: #F4FAFF;
        margin-bottom: 8px;
    }

    .clean-med-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}


.review-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(16, 137, 236, .10);
    text-align: start;
}

.review-text {
    flex: 1 1 auto;
    margin: 0;
    color: var(--gray);
    font-size: 17px;
    font-weight: 400;
    line-height: 2;
}

.review-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 137, 236, .10);
}

.review-date {
    color: var(--gray);
    font-size: 14px;
    opacity: .7;
    white-space: nowrap;
}

.review-card.is-rating-only {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 190px;
}

.review-card.is-rating-only .review-foot {
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding-top: 0;
    border-top: 0;
}

.review-card.is-rating-only .s-rating {
    font-size: 30px;
    gap: 8px;
}

@media (max-width: 768px) {
    .review-card {
        padding: 26px;
        border-radius: var(--r-lg);
    }

    .review-text {
        font-size: 16px;
    }
}


.hour-item {
    overflow: hidden;
}


.ai-chat-wrapper {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    font-family: inherit;
}

html[dir="rtl"] .ai-chat-wrapper {
    right: auto;
    left: 25px;
}

.ai-chat-toggle {
    position: relative;
    width: 65px;
    height: 65px;
    padding: 0;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #1089ec, #0064bc);
    box-shadow: 0 12px 30px rgba(16, 137, 236, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-chat-toggle:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 35px rgba(16, 137, 236, 0.5);
}

.ai-chat-status {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 15px;
    height: 15px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #24c875;
}

.ai-chat-box {
    position: absolute;
    right: 0;
    bottom: 80px;
    width: 370px;
    max-width: calc(100vw - 30px);
    height: 500px;
    max-height: calc(100vh - 130px);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.97);
    transform-origin: bottom right;
    transition: all 0.25s ease;
}

html[dir="rtl"] .ai-chat-box {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.ai-chat-box.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    min-height: 76px;
    padding: 15px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #1089ec, #0064bc);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
}

.ai-chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    color: #1089ec;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55ef9b;
    display: inline-block;
}

.ai-chat-close {
    padding: 0;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    background: #f5f8fb;
}

.ai-message {
    width: fit-content;
    max-width: 85%;
    margin-bottom: 12px;
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    word-break: break-word;
}

.ai-message-bot {
    margin-inline-end: auto;
    color: #344054;
    background: #ffffff;
    border-bottom-inline-start-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.ai-message-user {
    margin-inline-start: auto;
    color: #ffffff;
    background: #1089ec;
    border-bottom-inline-end-radius: 4px;
}

.ai-message-loading {
    color: #667085;
    font-size: 13px;
}

.ai-chat-form {
    padding: 13px;
    border-top: 1px solid #eaecf0;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 9px;
}

.ai-chat-input {
    flex: 1;
    height: 48px;
    max-width: 85%;
    padding: 0 15px;
    border: 1px solid #dfe5ec;
    border-radius: 13px;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-input:focus {
    border-color: #1089ec;
    box-shadow: 0 0 0 4px rgba(16, 137, 236, 0.1);
}

.ai-chat-send {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: #1089ec;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 575.98px) {
    .ai-chat-wrapper {
        right: 15px;
        bottom: 15px;
    }

    html[dir="rtl"] .ai-chat-wrapper {
        right: auto;
        left: 15px;
    }

    .ai-chat-toggle {
        width: 58px;
        height: 58px;
    }

    .ai-chat-box {
        position: fixed;
        right: 15px;
        bottom: 85px;
        left: 15px;
        width: auto;
        height: min(500px, calc(100vh - 110px));
        max-width: none;
    }

    html[dir="rtl"] .ai-chat-box {
        right: 15px;
        left: 15px;
    }
}


/* Dark Mode */
html[data-theme="dark"] {
    --gray: #d1d5db;
    --light: #1f2937;
    --shadow: rgba(0, 0, 0, 0.35) 0px 8px 24px;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #e5e7eb !important;
}

html[data-theme="dark"] .navbar {
    background-color: #111827 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .nav-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-link.active {
    color: #38bdf8 !important;
}

html[data-theme="dark"] .navbar-toggler {
    border-color: #334155;
}

html[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

html[data-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-gray {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .s-chip-plain {
    color: #f8fafc;
}

html[data-theme="dark"] .btn {
    color: #f8fafc;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .reservation-box,
html[data-theme="dark"] .pos-panel {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .form-text,
html[data-theme="dark"] .form-label {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] table,
html[data-theme="dark"] .table {
    color: #e5e7eb !important;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .btn-outline-dark {
    color: #f8fafc !important;
    border-color: #475569 !important;
}

html[data-theme="dark"] .btn-outline-dark:hover {
    background-color: #334155 !important;
}

html[data-theme="dark"] .footer {
    background-color: #020617 !important;
}

html[data-theme="dark"] {
    background-color: #020617 !important;
}

html[data-theme="dark"] .vision-hero {
    background: #020617 !important;
}

html[data-theme="dark"] .bg-body-tertiary,
html[data-theme="dark"] .service-item,
html[data-theme="dark"] .home-info-content,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .doctor-item,
html[data-theme="dark"] .hour-item,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .clean-med-links,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .bg-light {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

@media (max-width: 991.98px) {
    html[data-theme="dark"] .navbar-collapse {
        background-color: #1e293b !important;
        color: #f8fafc !important;
    }
}


.s-skip {
    position: fixed;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 2000;
    padding: 12px 20px;
    border-radius: var(--r-md);
    background: var(--dark-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform .2s ease;
}

.s-skip:focus {
    color: #ffffff;
    transform: translateY(0);
}

#main:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.s-btn:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.clean-med-lang:focus-visible,
.clean-med-theme:focus-visible,
.clean-med-toggler:focus-visible,
.offer-card:focus-visible,
.time-slot:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-ring);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.s-tap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.s-btn {
    min-height: 44px;
}

.s-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.btn-close {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
}

.ai-chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.clean-med-links .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.s-field-error:empty {
    display: none !important;
}

@media (prefers-contrast: more) {
    :focus-visible {
        outline-width: 4px;
    }
}


.s-toasts {
    position: fixed;
    top: 100px;
    inset-inline-end: 20px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}

.s-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--toast-accent, var(--primary));
    border-radius: var(--r-md);
    background: var(--card);
    box-shadow: var(--sh-2);
    color: var(--dark-primary);
    font-weight: 600;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: auto;
}

.s-toast.is-in {
    opacity: 1;
    transform: none;
}

.s-toast-icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--toast-accent, var(--primary));
    font-size: 20px;
}

.s-toast-text {
    flex: 1 1 auto;
    word-break: break-word;
}

.s-toast-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-block: -4px;
    margin-inline-end: -6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: .6;
    cursor: pointer;
}

.s-toast-close:hover {
    opacity: 1;
    background: var(--muted);
}

.s-toast-success {
    --toast-accent: var(--success);
}

.s-toast-danger {
    --toast-accent: var(--danger);
}

.s-toast-warning {
    --toast-accent: var(--warning);
}

.s-toast-info {
    --toast-accent: var(--primary);
}

html[data-theme="dark"] .s-toast {
    background: #1e293b;
    color: #f8fafc;
}

html[data-theme="dark"] .s-toast-success {
    --toast-accent: #4ade80;
}

html[data-theme="dark"] .s-toast-danger {
    --toast-accent: #fca5a5;
}

html[data-theme="dark"] .s-toast-warning {
    --toast-accent: #fbbf24;
}

@media (max-width: 575.98px) {
    .s-toasts {
        top: auto;
        bottom: 95px;
        inset-inline: 15px;
        width: auto;
    }

    .s-toast {
        transform: translateY(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .s-toast {
        transition: none;
        transform: none;
    }
}


.is-busy {
    position: relative;
    color: transparent !important;
    cursor: progress;
}

.is-busy > * {
    visibility: hidden;
}

.is-busy::after {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-start: calc(50% - 9px);
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid var(--busy-spinner, var(--dark-primary));
    border-top-color: transparent;
    border-radius: 50%;
    animation: s-spin .7s linear infinite;
}

.s-btn-primary.is-busy,
.s-btn-solid.is-busy,
.s-btn-dark.is-busy {
    --busy-spinner: #ffffff;
}

html[data-theme="dark"] .is-busy {
    --busy-spinner: #f8fafc;
}

.s-btn:disabled,
.btn:disabled,
.s-btn[disabled],
.btn[disabled] {
    opacity: .65;
    pointer-events: none;
}

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

@media (prefers-reduced-motion: reduce) {
    .is-busy::after {
        animation-duration: 2s;
    }
}


.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.is-invalid:focus,
.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, .2);
}

html[data-theme="dark"] .is-invalid,
html[data-theme="dark"] .form-control.is-invalid,
html[data-theme="dark"] .form-select.is-invalid {
    border-color: #fca5a5 !important;
}


.clean-med-links .nav-link.active {
    color: #ffffff !important;
}

html[data-theme="dark"] .clean-med-links .nav-link {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .clean-med-links .nav-link:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .clean-med-links .nav-link.active {
    background-color: #0064BC !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(0, 100, 188, .45);
}

@media (max-width: 991px) {
    html[data-theme="dark"] .clean-med-links .nav-link {
        background-color: #334155 !important;
    }

    html[data-theme="dark"] .clean-med-links .nav-link.active {
        background-color: #0064BC !important;
    }
}


.clean-med-navbar {
    width: min(1320px, 95%);
    margin-top: 10px;
    padding: 12px 0 !important;
    border: 1px solid rgba(16, 137, 236, .12);
    border-radius: 20px;
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(2, 43, 77, .08);
    transition:
        padding .28s cubic-bezier(.16, 1, .3, 1),
        margin-top .28s cubic-bezier(.16, 1, .3, 1),
        border-radius .28s ease,
        box-shadow .28s ease,
        background-color .28s ease;
}

.clean-med-navbar.is-stuck {
    margin-top: 6px;
    padding: 7px 0 !important;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(2, 43, 77, .16);
}

.clean-med-brand img {
    transition: height .28s cubic-bezier(.16, 1, .3, 1);
}

.clean-med-navbar.is-stuck .clean-med-brand img {
    height: 40px;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .clean-med-navbar {
        background-color: rgba(255, 255, 255, .82) !important;
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
    }

    .clean-med-navbar.is-stuck {
        background-color: rgba(255, 255, 255, .93) !important;
    }

    html[data-theme="dark"] .clean-med-navbar {
        background-color: rgba(15, 23, 42, .78) !important;
    }

    html[data-theme="dark"] .clean-med-navbar.is-stuck {
        background-color: rgba(15, 23, 42, .93) !important;
    }
}

html[data-theme="dark"] .clean-med-navbar {
    border-color: rgba(56, 189, 248, .16);
    background-color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .clean-med-navbar.is-stuck {
    box-shadow: 0 16px 44px rgba(0, 0, 0, .6);
}

.clean-med-toggler span {
    transition: transform .25s ease, opacity .2s ease;
}

.clean-med-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.clean-med-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.clean-med-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
    .clean-med-navbar,
    .clean-med-navbar.is-stuck {
        padding: 10px 0 !important;
    }

    .clean-med-navbar .navbar-collapse {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }

    html[data-theme="dark"] .clean-med-navbar .navbar-collapse {
        background: #0f172a !important;
        border: 1px solid rgba(56, 189, 248, .16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clean-med-navbar,
    .clean-med-brand img,
    .clean-med-toggler span {
        transition: none;
    }
}


.hours-panel {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hours-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 26px;
    border-top: 1px solid var(--border);
}

.hours-row:first-child {
    border-top: 0;
}

.hours-icon {
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--light);
    color: var(--primary);
    font-size: 22px;
}

.hours-days {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--dark-primary);
    font-size: 17px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hours-time {
    flex: 0 0 auto;
    margin: 0;
    color: var(--primary);
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hours-row.is-closed .hours-icon {
    background: var(--muted);
    color: var(--gray);
}

.hours-row.is-closed .hours-time {
    color: var(--gray);
    font-weight: 700;
    opacity: .8;
}

html[data-theme="dark"] .hours-panel {
    border-color: #334155;
}

html[data-theme="dark"] .hours-row {
    border-top-color: #334155;
}

html[data-theme="dark"] .hours-days {
    color: #f8fafc;
}

html[data-theme="dark"] .hours-time {
    color: #38bdf8;
}

html[data-theme="dark"] .hours-row.is-closed .hours-icon {
    background: #0f172a;
    color: #94a3b8;
}

html[data-theme="dark"] .hours-row.is-closed .hours-time {
    color: #cbd5e1;
}

@media (max-width: 575.98px) {
    .hours-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 18px;
    }

    .hours-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 19px;
    }

    .hours-days,
    .hours-time {
        font-size: 15px;
    }

    .hours-time {
        flex: 1 1 100%;
        padding-inline-start: 56px;
    }
}

html[data-theme="dark"] .modal-content {
    background-color: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: #1f2937;
}

html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .modal-content label {
    color: #e5e7eb;
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: #0f172a;
    border-color: #1f2937;
    color: #e5e7eb;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: #0f172a;
    color: #e5e7eb;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #6b7280;
}

html[data-theme="dark"] .form-text {
    color: #9ca3af;
}

.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
