html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow:
      0 0 0 .1rem white,
      0 0 0 .25rem color-mix(in srgb, var(--tenant-primary, #27c7c2) 55%, transparent);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/*
 * Critical shared header sizing lives globally so MVC views and Identity
 * Razor Pages always render the tenant logo in exactly the same way.
 */
.site-nav .site-brand {
    display: inline-block !important;
    color: var(--tenant-secondary, #10282f);
    text-decoration: none;
}

.site-brand-inline {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 11px;
}

.site-brand-mark {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.site-brand-mark img,
.site-brand-mark .site-brand-custom-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 43px;
    max-height: 43px;
    display: block;
    padding: 5px;
    border-radius: inherit;
    object-fit: contain;
}

.site-brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1;
}

.site-brand-copy strong {
    font-size: 18px;
}

.site-brand-copy small {
    margin-top: 5px;
    font-size: 7px;
    line-height: 1;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.appointment-message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

    .appointment-message.success {
        background: #eaf8ef;
        color: #237a3b;
    }

.appointment-message.error {
    background: #fdecec;
    color: #a12626;
}

.site-settings-menu {
    min-width: 240px;
    margin-top: 8px !important;
    padding: 8px;
    border: 1px solid rgba(16, 40, 47, .1);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(16, 40, 47, .12);
}

.site-nav-links .site-settings-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1rem;
    font-weight: 400;
    line-height: inherit;
}

.site-settings-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.show > .site-settings-toggle .site-settings-caret {
    margin-top: 3px;
    transform: rotate(225deg);
}

.site-settings-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--tenant-secondary, #10282f);
    font-size: 1rem;
    font-weight: 400;
}

.site-settings-menu .dropdown-item:hover,
.site-settings-menu .dropdown-item:focus {
    background: var(--tenant-primary-soft, #e6f8f5);
    color: var(--tenant-secondary, #10282f);
}

.site-tenant-toolbar {
    border-bottom: 1px solid rgba(16, 40, 47, .07);
    background: color-mix(in srgb, var(--tenant-primary) 10%, white);
}

.site-tenant-toolbar-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-tenant-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0;
}

.site-tenant-switcher > label {
    color: var(--tenant-muted, #62767a);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.site-tenant-select-wrap {
    position: relative;
}

.site-tenant-select-wrap select {
    min-width: 250px;
    min-height: 38px;
    appearance: none;
    border: 1px solid rgba(16, 40, 47, .12);
    border-radius: 12px;
    padding: 0 38px 0 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--tenant-secondary, #10282f);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 7px 18px rgba(16, 40, 47, .07);
    cursor: pointer;
}

.site-tenant-select-wrap > span {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--tenant-primary-dark, #159f9b);
    border-bottom: 1.5px solid var(--tenant-primary-dark, #159f9b);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.site-tenant-switcher small {
    min-width: 78px;
    color: var(--tenant-primary-dark, #159f9b);
    font-size: 11px;
    font-weight: 700;
}

.site-tenant-switcher.is-loading select {
    opacity: .6;
    pointer-events: none;
}

main.tenant-content-loading {
    opacity: .42;
    pointer-events: none;
    transition: opacity .18s ease;
}

@media (max-width: 575.98px) {
    .site-tenant-toolbar-inner {
        padding-block: 9px;
    }

    .site-tenant-switcher {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .site-tenant-select-wrap select {
        width: 100%;
        min-width: 0;
    }

    .site-tenant-switcher small {
        min-width: 0;
    }
}
/* Font-independent diagonal arrow; avoids platform emoji rendering. */
.site-diagonal-arrow {
    position: relative;
    width: 13px;
    height: 13px;
    display: inline-block;
    flex: 0 0 13px;
    color: currentColor;
}

.site-diagonal-arrow::before,
.site-diagonal-arrow::after {
    content: "";
    position: absolute;
    display: block;
}

.site-diagonal-arrow::before {
    width: 7px;
    height: 7px;
    top: 1px;
    right: 1px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.site-diagonal-arrow::after {
    width: 9px;
    height: 2px;
    left: 2px;
    bottom: 2px;
    transform: rotate(-45deg);
    transform-origin: left center;
    border-radius: 999px;
    background: currentColor;
}
