@font-face {
    font-family: 'Golos Text';
    src: url('/webfonts/GolosText-VF.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* Patient-facing theme. Keep legacy styles for admin, embeds and video calls. */
#patient-theme.brand-theme {
    --brand-seashell: #FBF6F2;
    --brand-maya: #8AC9FF;
    --brand-maya-tint: #E6F1F8;
    --brand-indigo: #202F5A;
    --brand-berry: #B13B63;
    --brand-berry-hover: #9A3255;
    --brand-berry-tint: #F6E3EA;
    --brand-taupe: #EBDDD0;
    --brand-muted: #596477;
    --brand-surface: rgba(255, 255, 255, 0.62);
    --brand-white: #FFFFFF;
    /* Legacy helpers inherit the new palette only inside this theme. */
    --gold: var(--brand-indigo);
    --primary: var(--brand-indigo);
    --danger: var(--brand-berry);
    --secondary: var(--brand-muted);
    --dark: var(--brand-indigo);
    --light: var(--brand-seashell);
    min-height: 100vh;
    background: linear-gradient(rgba(251, 246, 242, 0.68), rgba(251, 246, 242, 0.88)),
        var(--brand-seashell) url('/brand/services-bg.webp') center top / cover no-repeat;
    color: var(--brand-indigo);
    font-family: 'Golos Text', sans-serif;
    line-height: 1.5;
    accent-color: var(--brand-berry);
    -webkit-font-smoothing: antialiased;
}

#patient-theme.brand-theme b,
#patient-theme.brand-theme strong {
    font-family: inherit;
    font-weight: 600;
}

#patient-theme.brand-theme h1,
#patient-theme.brand-theme h2,
#patient-theme.brand-theme h3,
#patient-theme.brand-theme h4,
#patient-theme.brand-theme h5,
#patient-theme.brand-theme h6 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;
}

#patient-theme.brand-theme h4 {
    font-size: 1.5rem !important;
}

#patient-theme.brand-theme h5 {
    font-size: 1.125rem !important;
}

#patient-theme.brand-theme a {
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .text-secondary,
#patient-theme.brand-theme .text-muted {
    color: var(--brand-muted) !important;
}

#patient-theme.brand-theme .text-danger {
    color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .bg-danger,
#patient-theme.brand-theme .badge-danger {
    background-color: var(--brand-berry) !important;
    color: var(--brand-white);
}

#patient-theme.brand-theme .bg-light,
#patient-theme.brand-theme .bg-primary,
#patient-theme.brand-theme .bg-gold {
    background: var(--brand-indigo) !important;
    color: var(--brand-white);
}

#patient-theme.brand-theme .bg-light_hover:hover {
    background: var(--brand-maya-tint) !important;
    color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .bg-gray {
    background: linear-gradient(135deg, var(--brand-indigo), #464972);
    color: var(--brand-white);
}

#patient-theme.brand-theme .bg-gray a,
#patient-theme.brand-theme .bg-gold a {
    color: inherit;
}

#patient-theme.brand-theme .login-form.bg-gray {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--brand-white);
    color: var(--brand-indigo) !important;
    box-shadow: 0 6px 22px rgba(32, 47, 90, 0.07);
}

#patient-theme.brand-theme .login-form .btn-light {
    background: var(--brand-berry);
    border-color: var(--brand-berry);
    color: var(--brand-white);
}

#patient-theme.brand-theme .login-form .btn-outline-light,
#patient-theme.brand-theme .login-form button.border-light {
    border-color: var(--brand-berry) !important;
    color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .login-form i.text-white {
    color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .login-form :focus {
    outline-color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .login-field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#patient-theme.brand-theme .login-form .form-group {
    margin-bottom: 20px;
}

#patient-theme.brand-theme .login-form .form-control {
    min-height: 48px;
    height: auto;
    padding: 11px 14px;
    font-size: 16px;
    line-height: 24px;
}

#patient-theme.brand-theme .login-form select.form-control {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23202F5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

#patient-theme.brand-theme .login-password {
    flex-wrap: nowrap;
    overflow: hidden;
    border: 1px solid rgba(177, 59, 99, 0.16);
    border-radius: 14px;
    background: var(--brand-white);
}

#patient-theme.brand-theme .login-password:focus-within {
    outline: 2px solid var(--brand-indigo);
    outline-offset: 3px;
}

#patient-theme.brand-theme .login-password .form-control {
    min-width: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    outline: none !important;
}

#patient-theme.brand-theme .login-password .input-group-append {
    margin: 0;
}

#patient-theme.brand-theme .login-password .btn {
    width: 48px;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    outline-offset: -5px;
}

#patient-theme.brand-theme .login-consents {
    display: grid;
    gap: 16px;
}

#patient-theme.brand-theme .login-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

#patient-theme.brand-theme .login-consent label {
    margin: 0;
    color: var(--brand-indigo);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

#patient-theme.brand-theme .login-consent input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid var(--brand-berry);
    border-radius: 6px;
    background-color: var(--brand-white);
    cursor: pointer;
}

#patient-theme.brand-theme .login-consent input[type="checkbox"]:checked {
    background-color: var(--brand-berry);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
    background-size: 20px;
    background-position: center;
}

#patient-theme.brand-theme .login-policy-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-berry);
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#patient-theme.brand-theme .login-actions {
    display: grid;
    width: 100%;
    gap: 12px;
}

#patient-theme.brand-theme .login-actions .btn {
    min-height: 48px;
    padding: 11px 16px;
}

#patient-theme.brand-theme .rounded-lg {
    border-radius: 28px !important;
}

#patient-theme.brand-theme .shadow-sm {
    box-shadow: 0 2px 8px rgba(32, 47, 90, 0.05) !important;
}

/* The site's light surfaces, kept in the existing Bootstrap/Svelte layout. */
#patient-theme.brand-theme .bg-white.rounded-lg,
#patient-theme.brand-theme .brand-menu-card {
    background: var(--brand-surface) !important;
    border: 1px solid var(--brand-white);
}

#patient-theme.brand-theme .bg-white.rounded-lg > h5.bg-light {
    background: rgba(255, 255, 255, 0.55) !important;
    color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .border,
#patient-theme.brand-theme .border-top,
#patient-theme.brand-theme .border-bottom,
#patient-theme.brand-theme hr {
    border-color: var(--brand-taupe) !important;
}

#patient-theme.brand-theme .btn {
    border-radius: 999px;
    font-weight: 600;
    white-space: normal;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#patient-theme.brand-theme .btn-gold,
#patient-theme.brand-theme .btn-primary {
    background: var(--brand-berry) !important;
    border-color: var(--brand-berry) !important;
    color: var(--brand-white) !important;
    box-shadow: 0 4px 14px rgba(177, 59, 99, 0.18);
}

#patient-theme.brand-theme .btn-danger {
    background: var(--brand-berry) !important;
    border-color: var(--brand-berry) !important;
    color: var(--brand-white) !important;
}

#patient-theme.brand-theme .btn-outline-gold,
#patient-theme.brand-theme .btn-outline-primary,
#patient-theme.brand-theme .btn-outline-dark,
#patient-theme.brand-theme .btn-outline-secondary {
    background: transparent;
    border-color: var(--brand-berry);
    color: var(--brand-berry);
}

#patient-theme.brand-theme .btn-outline-danger {
    border-color: var(--brand-berry);
    color: var(--brand-berry);
}

#patient-theme.brand-theme .btn-outline-danger:hover {
    background: var(--brand-berry);
    color: var(--brand-white);
}

#patient-theme.brand-theme .btn-outline-gold:hover,
#patient-theme.brand-theme .btn-outline-primary:hover,
#patient-theme.brand-theme .btn-outline-dark:hover,
#patient-theme.brand-theme .btn-outline-secondary:hover,
#patient-theme.brand-theme .btn-outline-primary:not(:disabled):not(.disabled).active,
#patient-theme.brand-theme .btn-outline-primary:not(:disabled):not(.disabled):active,
#patient-theme.brand-theme .btn-outline-gold:not(:disabled):not(.disabled).active,
#patient-theme.brand-theme .btn-outline-gold:not(:disabled):not(.disabled):active,
#patient-theme.brand-theme .btn-outline-secondary:not(:disabled):not(.disabled).active,
#patient-theme.brand-theme .btn-outline-secondary:not(:disabled):not(.disabled):active {
    background: var(--brand-berry) !important;
    border-color: var(--brand-berry) !important;
    color: var(--brand-white) !important;
}

#patient-theme.brand-theme .btn-gold:hover:not(:disabled),
#patient-theme.brand-theme .btn-primary:hover:not(:disabled),
#patient-theme.brand-theme .btn-danger:hover:not(:disabled) {
    background: var(--brand-berry-hover) !important;
    border-color: var(--brand-berry-hover) !important;
}

#patient-theme.brand-theme .btn-light {
    background: var(--brand-maya);
    border-color: var(--brand-maya);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .form-control,
#patient-theme.brand-theme .custom-select,
#patient-theme.brand-theme .input-group-text {
    border-color: rgba(177, 59, 99, 0.16);
    border-radius: 14px;
    background-color: var(--brand-white);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .form-control::placeholder {
    color: var(--brand-muted);
    opacity: 1;
}

#patient-theme.brand-theme .form-control:disabled,
#patient-theme.brand-theme .form-control[readonly],
#patient-theme.brand-theme .custom-select:disabled {
    background-color: var(--brand-seashell);
    color: var(--brand-muted);
}

#patient-theme.brand-theme .form-control:focus,
#patient-theme.brand-theme .custom-select:focus {
    border-color: var(--brand-indigo) !important;
}

/* Preserve validation feedback over the default branded field border. */
#patient-theme.brand-theme .form-control.is-invalid {
    border-color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .btn:focus-visible,
#patient-theme.brand-theme a:focus-visible,
#patient-theme.brand-theme input:focus,
#patient-theme.brand-theme select:focus,
#patient-theme.brand-theme textarea:focus,
#patient-theme.brand-theme button:focus-visible {
    outline: 2px solid var(--brand-indigo) !important;
    outline-offset: 3px;
}

#patient-theme.brand-theme .bg-gray :focus,
#patient-theme.brand-theme .bg-gold :focus,
#patient-theme.brand-theme .brand-drawer :focus {
    outline-color: var(--brand-maya) !important;
}

#patient-theme.brand-theme .btn:disabled,
#patient-theme.brand-theme .btn.disabled {
    opacity: 0.55;
}

/* Font Awesome regular and solid share codepoints for the existing UI icons. */
#patient-theme.brand-theme .far {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

#patient-theme.brand-theme .brand-menu-card.grid {
    border-radius: 20px;
    padding: 1rem 0.75rem;
}

#patient-theme.brand-theme .brand-menu-card > div:first-child {
    min-height: 40px;
    border-radius: 14px;
    background: var(--brand-berry-tint);
}

#patient-theme.brand-theme .brand-bottom-menu,
#patient-theme.brand-theme .brand-bottom-menu .grid {
    background: var(--brand-white) !important;
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .brand-bottom-menu {
    border-top: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .brand-bottom-menu .grid {
    height: 60px;
}

#patient-theme.brand-theme .brand-bottom-menu-item {
    min-height: 60px;
    justify-content: center !important;
    gap: 3px;
    color: var(--brand-muted);
    font-weight: 500;
    text-decoration: none;
}

#patient-theme.brand-theme .brand-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
}

#patient-theme.brand-theme .brand-menu-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 22px !important;
    line-height: 1;
}

#patient-theme.brand-theme .brand-bottom-menu-item > div {
    margin-top: 0 !important;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

#patient-theme.brand-theme .brand-bottom-menu-item.active {
    color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .brand-bottom-menu-item.active .brand-menu-icon {
    background: var(--brand-berry-tint);
}

#patient-theme.brand-theme .brand-drawer .drawer-wrap {
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .brand-drawer .drawer {
    box-shadow: none;
}

#patient-theme.brand-theme .brand-drawer-item {
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .brand-drawer-item .white-img {
    display: none;
}

#patient-theme.brand-theme .brand-drawer-item .dark-img {
    display: inline;
}

#patient-theme.brand-theme .brand-drawer-item.active,
#patient-theme.brand-theme .brand-drawer-item:hover {
    background: var(--brand-berry-tint) !important;
    color: var(--brand-berry) !important;
}

/* Desktop patient navigation. */
@media (min-width: 1025px) {
    #patient-theme.brand-theme .brand-drawer .drawer-wrap {
        background: var(--brand-seashell);
    }

    #patient-theme.brand-theme .brand-drawer .drawer {
        scrollbar-width: thin;
        scrollbar-color: var(--brand-taupe) transparent;
    }

    #patient-theme.brand-theme .brand-drawer-content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 24px 12px 20px;
    }

    #patient-theme.brand-theme .brand-drawer-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        margin: 0 4px 24px;
        border-radius: 12px;
    }

    #patient-theme.brand-theme .brand-drawer-logo img {
        display: block;
        width: 190px;
        max-width: 100%;
        height: auto;
    }

    #patient-theme.brand-theme .brand-drawer-content > .overflow-hidden {
        flex-shrink: 0;
        padding: 2px 0;
    }

    #patient-theme.brand-theme .brand-drawer-item {
        min-height: 52px;
        padding: 8px 10px !important;
        border-radius: 14px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.35;
        transition: background-color 150ms, color 150ms;
    }

    #patient-theme.brand-theme .brand-drawer-item .icon {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        margin-right: 10px;
        border: 1px solid var(--brand-taupe);
        border-radius: 12px;
        background: var(--brand-white);
        color: var(--brand-indigo);
        font-size: 17px;
    }

    #patient-theme.brand-theme .brand-drawer-item > .w-100 {
        min-width: 0;
        gap: 8px;
    }

    #patient-theme.brand-theme .brand-drawer-item .badge {
        flex-shrink: 0;
        min-width: 22px;
        padding: 4px 6px;
        font-size: 11px;
        line-height: 1;
    }

    #patient-theme.brand-theme .brand-drawer-item:hover {
        background: var(--brand-maya-tint) !important;
        color: var(--brand-indigo) !important;
    }

    #patient-theme.brand-theme .brand-drawer-item.active {
        background: var(--brand-berry-tint) !important;
        color: var(--brand-berry) !important;
        font-weight: 600;
    }

    #patient-theme.brand-theme .brand-drawer-item.active .icon {
        border-color: var(--brand-berry);
        background: var(--brand-berry);
        color: var(--brand-white);
    }

    #patient-theme.brand-theme .brand-drawer-item:focus {
        outline-offset: -3px;
    }

    #patient-theme.brand-theme .brand-drawer-divider {
        display: none;
    }

    #patient-theme.brand-theme .brand-drawer-apps {
        margin: 20px 10px 0;
        padding-top: 16px;
        border-top: 1px solid var(--brand-taupe);
    }
}

#patient-theme.brand-theme .bell {
    color: var(--brand-indigo);
}

/* Replace the old metallic card artwork without changing its layout or data. */
#patient-theme.brand-theme .bonus-card,
#patient-theme.brand-theme .bonus-card.bonus-card-dark {
    background: linear-gradient(135deg, #EBDDD0, #FBF6F2 65%, #E6F1F8) !important;
    color: var(--brand-indigo) !important;
    border: 1px solid var(--brand-white);
    border-radius: 28px;
    box-shadow: none;
}

#patient-theme.brand-theme .bonus-card::before,
#patient-theme.brand-theme .bonus-card.bonus-card-dark::before {
    background: none;
}

#patient-theme.brand-theme .bonus-card-caption {
    color: var(--brand-berry);
    opacity: 1;
}

#patient-theme.brand-theme .bonus-details {
    border-radius: 999px;
    background: var(--brand-berry);
    color: var(--brand-white);
    box-shadow: 0 4px 14px rgba(177, 59, 99, 0.18);
}

#patient-theme.brand-theme .bonus-details:hover {
    background: var(--brand-berry-hover);
}

#patient-theme.brand-theme .bonus-actions {
    background: var(--brand-white);
}

#patient-theme.brand-theme .bonus-action {
    border-color: var(--brand-taupe);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .bonus-action:hover,
#patient-theme.brand-theme .bonus-action:focus {
    background: var(--brand-berry-tint);
}

#patient-theme.brand-theme .bonus-action-icon {
    background: var(--brand-maya-tint);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .bonus-actions .list-item {
    border-color: var(--brand-taupe);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .bonus-actions .list-item:hover,
#patient-theme.brand-theme .bonus-actions .list-item:focus {
    background: var(--brand-maya-tint);
}

#patient-theme.brand-theme .bonus-actions .list-item-icon {
    background: var(--brand-maya-tint);
}

#patient-theme.brand-theme .tm-banner,
#patient-theme.brand-theme .tm-banner:hover {
    background: var(--brand-maya-tint);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .tm-banner__subtitle,
#patient-theme.brand-theme .tm-banner__feature {
    color: var(--brand-muted);
}

#patient-theme.brand-theme .tm-banner__button,
#patient-theme.brand-theme .tm-banner:hover .tm-banner__button {
    border-radius: 999px;
    background: var(--brand-berry);
    color: var(--brand-white);
}

#patient-theme.brand-theme .brand-drawer :focus {
    outline-color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .toasts {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 10px;
    width: min(420px, calc(100vw - 24px));
    top: max(15px, env(safe-area-inset-top, 0px)) !important;
    right: 12px;
    pointer-events: none;
}

#patient-theme.brand-theme .toasts > .toast {
    display: block;
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px !important;
    box-shadow: 0 6px 22px rgba(32, 47, 90, 0.16);
    color: var(--brand-white);
    opacity: 1;
    pointer-events: auto;
    animation: brand-toast-enter 200ms ease-out both;
}

#patient-theme.brand-theme .toasts > .toast > .content {
    height: auto;
    min-height: 0;
    padding: 12px 14px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .toasts > .toast > .progress {
    width: 100%;
    height: 4px;
    border-radius: 0;
    background: var(--brand-maya);
    transform-origin: left;
    animation-name: brand-toast-countdown;
}

@keyframes brand-toast-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-toast-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
    #patient-theme.brand-theme .toasts > .toast {
        animation: none;
    }

    #patient-theme.brand-theme .btn,
    #patient-theme.brand-theme .brand-drawer-item {
        transition: none;
    }
}

/* Online booking keeps its existing sequence and modal pickers. */
#patient-theme.brand-theme .doctors-booking .bg-light {
    background: transparent !important;
    color: var(--brand-indigo);
    box-shadow: none;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

#patient-theme.brand-theme .doctors-booking .bg-light .btn-outline-light {
    min-height: 36px;
    padding: 6px 12px !important;
    border-color: var(--brand-berry);
    color: var(--brand-berry);
}

#patient-theme.brand-theme .doctors-booking .bg-light .btn-outline-light:hover {
    background: var(--brand-berry-tint);
}

#patient-theme.brand-theme .doctors-booking .rounded.bg-white {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    background: transparent !important;
}

#patient-theme.brand-theme .doctors-booking .input-group {
    flex-wrap: nowrap;
    border: 1px solid var(--brand-taupe);
    border-radius: 14px;
    background: var(--brand-white);
}

#patient-theme.brand-theme .doctors-booking .input-group .form-control {
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
}

#patient-theme.brand-theme .doctors-booking .input-group-append {
    margin: 0;
}

#patient-theme.brand-theme .doctors-booking .input-group-append .btn {
    width: 44px;
    border: 0;
    border-radius: 0 14px 14px 0;
    box-shadow: none;
}

#patient-theme.brand-theme .doctors-booking .login-modal-lg > .bg-white,
#patient-theme.brand-theme .doctors-booking .login-modal > .bg-white {
    background: var(--brand-seashell) !important;
    box-shadow: 0 12px 40px rgba(32, 47, 90, 0.14) !important;
}

#patient-theme.brand-theme .doctors-booking .booking-option {
    width: calc(100% + 1rem);
    min-height: 52px;
    border: 0;
    background: transparent;
    color: var(--brand-indigo);
    font: inherit;
    text-align: left;
    gap: 12px;
}

#patient-theme.brand-theme .doctors-booking .booking-option:focus-visible {
    outline-offset: -4px !important;
}

#patient-theme.brand-theme .doctors-booking .swiper-navs .swiper-slide-thumb-active {
    background: var(--brand-berry) !important;
    border-color: var(--brand-berry);
    color: var(--brand-white);
}

#patient-theme.brand-theme .doctors-booking .swiper-container .btn {
    min-height: 44px;
}

#patient-theme.brand-theme .doctors-booking #dates-times {
    scroll-margin-top: 20px;
}

#patient-theme.brand-theme .doctors-booking .alert-warning {
    background: var(--brand-maya-tint);
    border-color: var(--brand-maya-tint);
    color: var(--brand-indigo);
    border-radius: 14px;
}

@media (max-width: 575px) {
    #patient-theme.brand-theme .doctors-booking #docs {
        padding-right: 0;
        padding-left: 0;
    }

    #patient-theme.brand-theme .doctors-booking .doc-grid {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    #patient-theme.brand-theme .doctors-booking #dates-times {
        scroll-margin-top: 64px;
    }
}

#patient-theme.brand-theme .doctors-booking .alert-secondary {
    background: var(--brand-maya-tint);
    border-color: var(--brand-maya-tint);
    color: var(--brand-indigo);
    border-radius: 20px;
}

#patient-theme.brand-theme .doctors-booking .booking-modal-content {
    max-height: calc(100vh - 110px) !important;
    max-height: calc(100dvh - 110px) !important;
    padding: 8px 20px 24px !important;
    margin-top: 8px !important;
}

#patient-theme.brand-theme .doctors-booking .booking-confirm,
#patient-theme.brand-theme .doctors-booking .booking-patient-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

#patient-theme.brand-theme .doctors-booking .booking-summary {
    padding: 20px;
    border: 1px solid var(--brand-taupe);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
}

#patient-theme.brand-theme .doctors-booking .booking-summary-time {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--brand-berry);
    font-size: 18px;
}

#patient-theme.brand-theme .doctors-booking .booking-summary dl {
    display: grid;
    gap: 16px;
    margin: 0;
}

#patient-theme.brand-theme .doctors-booking .booking-summary dt {
    margin-bottom: 4px;
    color: var(--brand-muted);
    font-size: 13px;
    font-weight: 400;
}

#patient-theme.brand-theme .doctors-booking .booking-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .doctors-booking .booking-summary-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .doctors-booking .booking-summary-price dd {
    font-weight: 600;
}

#patient-theme.brand-theme .doctors-booking .booking-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

#patient-theme.brand-theme .doctors-booking .booking-actions .btn {
    min-height: 48px;
    padding: 11px 16px;
}

#patient-theme.brand-theme .doctors-booking .booking-form-intro {
    margin-bottom: 24px;
    color: var(--brand-muted);
    font-size: 14px;
}

#patient-theme.brand-theme .doctors-booking .booking-patient-form .form-group {
    margin-bottom: 20px;
}

#patient-theme.brand-theme .doctors-booking .booking-patient-form label,
#patient-theme.brand-theme .doctors-booking .booking-birthday legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

#patient-theme.brand-theme .doctors-booking .booking-patient-form .form-control {
    min-width: 0;
    height: 48px;
    padding: 11px 14px;
    font-size: 16px;
    line-height: 24px;
}

#patient-theme.brand-theme .doctors-booking .booking-birthday {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#patient-theme.brand-theme .doctors-booking .booking-birthday-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.3fr);
    align-items: center;
}

#patient-theme.brand-theme .doctors-booking .booking-birthday-fields .form-control {
    padding-left: 8px;
    padding-right: 4px;
}

#patient-theme.brand-theme .doctors-booking .booking-consent {
    margin-top: 24px;
}

#patient-theme.brand-theme .doctors-booking .booking-consent label {
    margin: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .doctors-booking .booking-consent a {
    color: var(--brand-berry);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#patient-theme.brand-theme .doctors-booking .booking-consent input[type="checkbox"] {
    flex-shrink: 0;
}

@media (max-width: 575px) {
    #patient-theme.brand-theme .doctors-booking .booking-modal-content {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    #patient-theme.brand-theme .doctors-booking .booking-summary {
        padding: 16px;
    }
}

/* Specialists retain the specialty groups and existing card grid. */
#patient-theme.brand-theme .specialists-catalog .specialists-search .input-group {
    flex-wrap: nowrap;
    border: 1px solid var(--brand-taupe);
    border-radius: 14px;
    background: var(--brand-white);
}

#patient-theme.brand-theme .specialists-catalog .specialists-search .form-control {
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
    font-size: 16px;
}

#patient-theme.brand-theme .specialists-catalog .input-group-append {
    margin: 0;
}

#patient-theme.brand-theme .specialists-catalog .input-group-append .btn {
    width: 44px;
    border: 0;
    border-radius: 0 14px 14px 0;
    box-shadow: none;
}

#patient-theme.brand-theme .specialists-catalog .specialists-heading {
    font-size: 20px !important;
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .specialists-catalog .doc-grid {
    gap: 16px;
    height: 100%;
}

#patient-theme.brand-theme .specialists-catalog .doc-grid .img {
    border-radius: 20px !important;
    background: var(--brand-seashell);
}

#patient-theme.brand-theme .specialists-catalog .doctor-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .specialists-catalog .doc-grid .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
}

#patient-theme.brand-theme .specialists-catalog .doctor-details {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--brand-taupe);
    color: var(--brand-indigo);
    box-shadow: none;
}

#patient-theme.brand-theme .specialists-catalog .doctor-details:hover {
    background: var(--brand-berry-tint);
    border-color: var(--brand-taupe);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .specialists-catalog .login-modal-lg > .bg-white,
#patient-theme.brand-theme .specialists-catalog .login-modal > .bg-white {
    background: var(--brand-seashell) !important;
    box-shadow: 0 12px 40px rgba(32, 47, 90, 0.14) !important;
}

#patient-theme.brand-theme .specialists-catalog .specialist-modal-content,
#patient-theme.brand-theme .doctors-booking .specialist-modal-content {
    max-height: calc(100vh - 110px) !important;
    max-height: calc(100dvh - 110px) !important;
    padding: 8px 20px 24px !important;
    margin-top: 8px !important;
}

#patient-theme.brand-theme .specialists-catalog .specialist-profile,
#patient-theme.brand-theme .doctors-booking .specialist-profile {
    max-width: 560px;
    margin: 0 auto;
}

#patient-theme.brand-theme .specialists-catalog .specialist-portrait img,
#patient-theme.brand-theme .doctors-booking .specialist-portrait img {
    max-height: 360px;
    object-fit: contain;
    border-radius: 20px !important;
}

#patient-theme.brand-theme .specialists-catalog .specialist-name,
#patient-theme.brand-theme .doctors-booking .specialist-name {
    margin: 20px 0 0;
    font-size: 22px !important;
}

#patient-theme.brand-theme .specialists-catalog .specialist-book {
    margin-bottom: 24px;
}

#patient-theme.brand-theme .specialists-catalog .specialist-book .btn {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
}

#patient-theme.brand-theme .specialists-catalog .specialist-description,
#patient-theme.brand-theme .doctors-booking .specialist-description {
    padding: 20px;
    border: 1px solid var(--brand-taupe);
    border-radius: 20px;
    background: var(--brand-surface);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .specialists-catalog .specialist-description img,
#patient-theme.brand-theme .doctors-booking .specialist-description img {
    max-width: 100%;
    height: auto;
}

#patient-theme.brand-theme .specialists-catalog .specialist-description > :last-child,
#patient-theme.brand-theme .doctors-booking .specialist-description > :last-child {
    margin-bottom: 0;
}

@media (min-width: 321px) and (max-width: 575px) {
    #patient-theme.brand-theme .specialists-catalog .doc-grid {
        padding: 10px !important;
        gap: 12px;
        border-radius: 20px !important;
    }

    #patient-theme.brand-theme .specialists-catalog .doctor-name {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    #patient-theme.brand-theme .specialists-catalog .specialist-modal-content,
    #patient-theme.brand-theme .doctors-booking .specialist-modal-content {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    #patient-theme.brand-theme .specialists-catalog .specialist-description,
    #patient-theme.brand-theme .doctors-booking .specialist-description {
        padding: 16px;
    }
}

@media (min-width: 768px) {
    #patient-theme.brand-theme .specialists-catalog .specialist-book .btn {
        width: auto;
        min-width: 200px;
        max-width: 100%;
        padding-right: 32px;
        padding-left: 32px;
    }
}

/* Contacts and patient information retain their existing order and grid. */
#patient-theme.brand-theme .contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

#patient-theme.brand-theme .contact-card,
#patient-theme.brand-theme .info-link {
    border: 1px solid var(--brand-white);
    border-radius: 24px;
    background: var(--brand-surface);
    box-shadow: 0 4px 16px rgba(32, 47, 90, 0.04);
}

#patient-theme.brand-theme .contact-card {
    padding: 24px;
    min-width: 0;
}

#patient-theme.brand-theme .contact-card h4,
#patient-theme.brand-theme .contact-card h5 {
    margin: 0 0 20px;
}

#patient-theme.brand-theme .contact-center h4 {
    font-size: 20px !important;
}

#patient-theme.brand-theme .contact-phone-row,
#patient-theme.brand-theme .contact-hours {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .contact-phone-row > i,
#patient-theme.brand-theme .contact-hours > i {
    color: var(--brand-muted);
    margin-top: 5px;
}

#patient-theme.brand-theme .contact-label {
    display: block;
    color: var(--brand-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

#patient-theme.brand-theme .contact-phone-row a,
#patient-theme.brand-theme .office-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 18px;
    font-weight: 600;
}

#patient-theme.brand-theme .contact-site,
#patient-theme.brand-theme .contact-maps a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--brand-taupe);
    border-radius: 14px;
    color: var(--brand-indigo);
    background: rgba(255, 255, 255, 0.5);
    font: inherit;
    text-align: left;
    text-decoration: none;
}

#patient-theme.brand-theme .contact-site {
    margin-top: 4px;
    cursor: pointer;
}

#patient-theme.brand-theme .contact-site > i:last-child,
#patient-theme.brand-theme .contact-maps a > i:last-child {
    margin-left: auto;
    font-size: 11px;
    color: var(--brand-muted);
}

#patient-theme.brand-theme .office-phone {
    gap: 14px;
    margin-bottom: 16px;
}

#patient-theme.brand-theme .office-phone i {
    font-size: 16px;
    color: var(--brand-muted);
}

#patient-theme.brand-theme .contact-maps {
    display: grid;
    gap: 8px;
}

#patient-theme.brand-theme .info-links {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

#patient-theme.brand-theme .info-link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    color: var(--brand-indigo);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

#patient-theme.brand-theme .info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-seashell);
    font-size: 20px;
}

#patient-theme.brand-theme .info-arrow {
    color: var(--brand-muted);
    font-size: 12px;
}

#patient-theme.brand-theme .info-delete {
    margin-top: 8px;
    color: var(--brand-muted);
}

#patient-theme.brand-theme .info-delete .info-icon {
    color: var(--brand-berry);
    background: var(--brand-berry-tint);
}

#patient-theme.brand-theme .info-link:hover,
#patient-theme.brand-theme .contact-site:hover,
#patient-theme.brand-theme .contact-maps a:hover {
    background: var(--brand-seashell);
    border-color: var(--brand-taupe);
}

#patient-theme.brand-theme .info-link:focus-visible,
#patient-theme.brand-theme .contacts-page a:focus-visible,
#patient-theme.brand-theme .contact-site:focus-visible {
    outline: 2px solid var(--brand-berry);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    #patient-theme.brand-theme .contacts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #patient-theme.brand-theme .contacts-grid-spacer {
        display: none;
    }

    #patient-theme.brand-theme .contact-card {
        padding: 20px 16px;
    }

    #patient-theme.brand-theme .info-link {
        grid-template-columns: 40px minmax(0, 1fr) 12px;
        gap: 12px;
        padding: 18px 16px;
        border-radius: 20px;
    }

    #patient-theme.brand-theme .info-icon {
        width: 40px;
        height: 40px;
    }
}

#patient-theme.brand-theme .info-page .login-modal > .bg-white,
#patient-theme.brand-theme .info-page .login-modal-lg > .bg-white {
    background: var(--brand-seashell) !important;
    box-shadow: 0 12px 40px rgba(32, 47, 90, 0.12) !important;
}

#patient-theme.brand-theme .info-delete-content {
    padding: 8px 24px 28px !important;
    max-height: calc(100vh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
}

#patient-theme.brand-theme .info-delete-content h5 {
    font-size: 18px !important;
    line-height: 1.5;
}

#patient-theme.brand-theme .info-delete-content .mt-5 {
    margin-top: 24px !important;
}

#patient-theme.brand-theme .info-delete-content .btn {
    min-height: 48px;
}

/* Patient account screens and shared medical lists. */
#patient-theme.brand-theme .brand-account-page {
    padding-bottom: 32px;
}

#patient-theme.brand-theme .brand-account-page .container > h4,
#patient-theme.brand-theme .brand-account-page .container > div > h4 {
    padding-right: 44px;
    padding-left: 44px;
    line-height: 1.3;
}

#patient-theme.brand-theme .brand-account-page h4 > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 40px;
    top: -5px !important;
    border: 1px solid var(--brand-taupe);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

#patient-theme.brand-theme .brand-menu-card {
    color: var(--brand-indigo);
    text-decoration: none;
    border: 1px solid var(--brand-white);
    transition: background-color 150ms, border-color 150ms;
}

#patient-theme.brand-theme .brand-menu-card:hover {
    background: var(--brand-white) !important;
    border-color: var(--brand-taupe);
}

#patient-theme.brand-theme .brand-menu-card > i:last-child {
    font-size: 14px !important;
    color: var(--brand-muted);
}

#patient-theme.brand-theme .brand-empty {
    min-height: 220px;
    padding: 32px 24px !important;
}

#patient-theme.brand-theme .brand-empty > i,
#patient-theme.brand-theme .brand-empty > .rounded-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px !important;
    height: 64px !important;
    padding: 0 !important;
    background: var(--brand-indigo) !important;
    color: var(--brand-white) !important;
    font-size: 24px;
}

#patient-theme.brand-theme .brand-empty > .rounded-circle i {
    color: var(--brand-white) !important;
    font-size: 24px;
}

#patient-theme.brand-theme .brand-data-table {
    border: 1px solid var(--brand-white);
    border-radius: 24px !important;
    background: var(--brand-surface);
    box-shadow: 0 2px 8px rgba(32, 47, 90, 0.05) !important;
}

#patient-theme.brand-theme .brand-data-table .cell {
    padding-top: 14px;
    padding-bottom: 14px;
    border-color: var(--brand-taupe);
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .brand-data-table .btn-gold {
    min-height: 36px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: var(--brand-taupe) !important;
    color: var(--brand-berry) !important;
    box-shadow: none;
}

#patient-theme.brand-theme .brand-data-table .btn-gold:hover {
    background: var(--brand-berry-tint) !important;
}

#patient-theme.brand-theme .brand-data-table .badge-light {
    padding: 4px 8px;
    background: var(--brand-seashell);
    color: var(--brand-muted);
    font-weight: 400;
    white-space: normal;
    line-height: 1.3;
}

#patient-theme.brand-theme .brand-pagination .btn {
    min-height: 40px;
    padding: 7px;
    box-shadow: none;
}

#patient-theme.brand-theme .brand-pagination .form-control {
    min-height: 44px;
    margin-top: 6px;
    border-color: var(--brand-taupe);
}

#patient-theme.brand-theme .brand-documents .document {
    min-height: 88px;
    padding: 18px 20px !important;
    gap: 20px;
    border: 1px solid var(--brand-white);
    border-radius: 22px;
    background: var(--brand-surface);
    color: var(--brand-indigo);
    text-decoration: none;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .brand-documents .document:hover {
    background: var(--brand-white);
    border-color: var(--brand-taupe);
}

#patient-theme.brand-theme .brand-documents .document > i {
    flex-shrink: 0;
    color: var(--brand-muted) !important;
    font-size: 14px !important;
}

#patient-theme.brand-theme .brand-documents .badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    margin-top: 8px;
    line-height: 1.2;
}

#patient-theme.brand-theme .brand-status-pending {
    background: var(--brand-berry-tint);
    color: var(--brand-berry);
}

#patient-theme.brand-theme .brand-status-signed {
    background: var(--brand-maya-tint);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .brand-period-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--brand-taupe);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    overflow: visible;
}

#patient-theme.brand-theme .brand-period-option {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--brand-muted);
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

#patient-theme.brand-theme .brand-period-option:hover {
    background: var(--brand-maya-tint);
    color: var(--brand-indigo);
}

#patient-theme.brand-theme .brand-period-option[aria-pressed="true"] {
    background: var(--brand-indigo);
    color: var(--brand-white);
}

#patient-theme.brand-theme .brand-notification > div {
    padding: 16px 20px !important;
}

#patient-theme.brand-theme .brand-notification .badge-light {
    padding: 0;
    border: 0 !important;
    background: transparent;
    color: var(--brand-muted);
    font-size: 12px;
    font-weight: 400;
}

#patient-theme.brand-theme .brand-notification .unread {
    background: var(--brand-berry);
    flex-shrink: 0;
}

#patient-theme.brand-theme .brand-notification:hover {
    background: var(--brand-white) !important;
    border-color: var(--brand-taupe) !important;
}

#patient-theme.brand-theme .brand-profile-details {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px 12px;
}

#patient-theme.brand-theme .brand-profile-details > .text-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-seashell);
    border: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .brand-profile-details > div:not(.text-center) {
    min-width: 0;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .brand-profile-details .d-flex > div {
    min-width: 0;
}

#patient-theme.brand-theme .brand-profile-edit {
    flex: 0 0 40px;
    width: 40px;
    min-height: 40px;
    border: 1px solid var(--brand-taupe);
    background: var(--brand-white);
    color: var(--brand-berry) !important;
}

#patient-theme.brand-theme .brand-profile-edit i {
    font-size: 16px !important;
}

#patient-theme.brand-theme .brand-profile-toggle {
    gap: 16px;
    min-height: 48px;
    margin-bottom: 4px !important;
}

#patient-theme.brand-theme .brand-profile-toggle [role="switch"] {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 28px;
    min-height: 28px;
    border: 1px solid var(--brand-taupe);
    border-radius: 999px;
    background: var(--brand-taupe);
}

#patient-theme.brand-theme .brand-profile-toggle [role="switch"] i {
    display: none;
}

#patient-theme.brand-theme .brand-profile-toggle [role="switch"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-white);
}

#patient-theme.brand-theme .brand-profile-toggle [aria-checked="true"] {
    border-color: var(--brand-berry);
    background: var(--brand-berry);
}

#patient-theme.brand-theme .brand-profile-toggle [aria-checked="true"]::after {
    left: 21px;
}

#patient-theme.brand-theme .brand-profile-form .bg-light {
    border-radius: 16px;
    background: var(--brand-maya-tint) !important;
    color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .brand-profile-form .form-control,
#patient-theme.brand-theme .brand-tax-form .form-control {
    min-height: 48px;
    padding: 10px 14px;
    min-width: 0;
}

#patient-theme.brand-theme .brand-profile-form label,
#patient-theme.brand-theme .brand-review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#patient-theme.brand-theme .brand-profile-form .input-group {
    flex-wrap: nowrap;
    overflow: hidden;
    border: 1px solid var(--brand-taupe);
    border-radius: 14px;
    background: var(--brand-white);
}

#patient-theme.brand-theme .brand-profile-form .input-group .form-control {
    border: 0;
    border-radius: 0;
}

#patient-theme.brand-theme .brand-profile-form .input-group:focus-within {
    outline: 2px solid var(--brand-indigo);
    outline-offset: 2px;
}

#patient-theme.brand-theme .brand-profile-form .input-group .form-control:focus {
    outline: 0 !important;
    box-shadow: none;
}

#patient-theme.brand-theme .brand-profile-form .input-group .btn {
    width: 48px;
    border: 0;
    border-left: 1px solid var(--brand-taupe);
    border-radius: 0;
    background: var(--brand-white) !important;
    color: var(--brand-indigo) !important;
}

#patient-theme.brand-theme .brand-profile-form .btn[type="submit"] {
    min-height: 44px;
    padding: 10px 24px;
}

#patient-theme.brand-theme .brand-tax-form .hover-row {
    min-height: 52px;
    gap: 16px;
    border-bottom: 1px solid var(--brand-taupe);
}

#patient-theme.brand-theme .brand-tax-form .progress {
    height: 6px;
    border-radius: 999px;
    background: var(--brand-taupe);
}

#patient-theme.brand-theme .brand-tax-form .progress-bar {
    background: var(--brand-berry);
}

#patient-theme.brand-theme .brand-tax-form b {
    font-family: inherit;
    font-weight: 600;
}

#patient-theme.brand-theme .brand-review-form textarea {
    min-height: 180px;
    padding: 14px;
    resize: vertical;
}

#patient-theme.brand-theme .brand-account-page[data-section="review"] .bg-white {
    padding: 24px !important;
}

#patient-theme.brand-theme .brand-account-page[data-section="main"] .head-grid {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 8px 0 24px;
}

#patient-theme.brand-theme .brand-account-page[data-section="main"] .head-grid > div:last-child {
    display: none;
}

#patient-theme.brand-theme .brand-account-page[data-section="main"] .head-grid h3 {
    margin: 0 !important;
    text-align: left !important;
    font-size: 24px;
    overflow-wrap: anywhere;
}

#patient-theme.brand-theme .brand-account-page[data-section="main"] .bonus-card {
    aspect-ratio: auto;
    min-height: 220px;
}

#patient-theme.brand-theme .brand-account-page[data-section="main"] .bonus-card-content {
    min-height: 220px;
    gap: 32px;
    padding: 24px;
}

@media (min-width: 768px) {
    #patient-theme.brand-theme .brand-data-table .d-content:first-child > div {
        min-height: 48px;
        padding: 14px 16px;
        background: var(--brand-seashell) !important;
        color: var(--brand-indigo) !important;
        border-bottom: 1px solid var(--brand-taupe);
        font-size: 14px;
        font-weight: 600 !important;
    }

    #patient-theme.brand-theme .brand-data-table .report > div {
        padding: 14px 16px;
    }
}

@media (max-width: 767px) {
    #patient-theme.brand-theme .brand-data-table {
        border: 0;
        border-radius: 0 !important;
        background: transparent;
        box-shadow: none !important;
    }

    #patient-theme.brand-theme .brand-data-table .item-grid,
    #patient-theme.brand-theme .brand-data-table .report {
        border: 1px solid var(--brand-white);
        background: var(--brand-surface);
    }

    #patient-theme.brand-theme .brand-account-page .container > h4,
    #patient-theme.brand-theme .brand-account-page .container > div > h4 {
        font-size: 22px !important;
    }

    #patient-theme.brand-theme .brand-period-switch {
        width: 100%;
        border-radius: 24px;
        flex-wrap: nowrap;
    }

    #patient-theme.brand-theme .brand-period-option {
        flex: 1;
        min-width: 0;
        padding: 10px;
        font-size: 14px;
    }

    #patient-theme.brand-theme .brand-account-page[data-section="main"] .bonus-card,
    #patient-theme.brand-theme .brand-account-page[data-section="main"] .bonus-card-content {
        min-height: 190px;
    }
}

#patient-theme.brand-theme .btn:focus:not(:focus-visible),
#patient-theme.brand-theme a:focus:not(:focus-visible),
#patient-theme.brand-theme button:focus:not(:focus-visible) {
    outline: none !important;
}

#patient-theme.brand-theme .brand-profile-form .input-group-text {
    min-height: 48px;
    border: 0;
    border-right: 1px solid var(--brand-taupe);
    border-radius: 0;
    background: var(--brand-seashell);
}

#patient-theme.brand-theme .brand-profile-toggle [aria-checked="false"] {
    background: #8993A3;
    border-color: #8993A3;
}
