/* Customer-type quick access: general patients, corporate screening and referrals. */
.wb-floating {
    --wb-access-blue: #1789a6;
    --wb-access-navy: #154d5b;
    --wb-access-teal: #086d86;
    --wb-access-cyan: #16849f;
    --wb-access-ink: #244750;
    position: fixed;
    z-index: 900;
    right: 18px;
    bottom: 22px;
    display: grid;
    gap: 9px;
}

.wb-floating a {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: center;
    width: 152px;
    min-height: 56px;
    padding: 8px 12px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 18px;
    box-shadow: 0 11px 28px rgba(12, 59, 71, .2);
    white-space: nowrap;
    transition: filter .18s ease, transform .18s ease;
    touch-action: manipulation;
}

.wb-floating a.is-phone { background: var(--wb-access-blue); }
.wb-floating a.is-general { background: var(--wb-access-navy); }
.wb-floating a.is-corporate { background: var(--wb-access-teal); }
.wb-floating a.is-referral { background: var(--wb-access-cyan); }
.wb-floating a.is-faq { background: var(--wb-access-ink); }

.wb-floating span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
}

.wb-floating svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wb-floating em {
    visibility: visible;
    margin: 0;
    opacity: 1;
    font-size: 12px;
    font-style: normal;
    font-weight: 820;
    letter-spacing: -.02em;
}

.wb-floating a:hover,
.wb-floating a:focus-visible {
    width: 152px;
    filter: brightness(1.05);
    transform: translateX(-2px);
}

.wb-floating a:hover em,
.wb-floating a:focus-visible em {
    visibility: visible;
    opacity: 1;
}

.wb-floating a:focus-visible {
    outline: 3px solid #72d4ec;
    outline-offset: 3px;
}

@media (min-width: 761px) and (max-height: 520px) {
    .wb-floating {
        right: auto;
        bottom: 10px;
        left: 50%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: min(760px, calc(100% - 20px));
        gap: 6px;
        transform: translateX(-50%);
    }

    .wb-floating a,
    .wb-floating a:hover,
    .wb-floating a:focus-visible {
        grid-template-columns: 24px 1fr;
        gap: 8px;
        width: 100%;
        min-height: 56px;
        padding: 8px 10px;
        transform: none;
    }
}

@media (max-width: 760px) {
    html { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    :where(a, button, input, textarea, select):focus-visible {
        scroll-margin-bottom: calc(94px + env(safe-area-inset-bottom));
    }

    .wb-floating {
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        border-top: 1px solid #d9e7eb;
        box-shadow: 0 -8px 26px rgba(10, 64, 78, .14);
    }

    .wb-floating a,
    .wb-floating a:hover,
    .wb-floating a:focus-visible {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
        justify-items: center;
        width: auto;
        min-width: 0;
        min-height: 74px;
        padding: 8px 1px 7px;
        overflow: visible;
        color: #315c67;
        border: 0;
        border-right: 1px solid #e1ebee;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
        transform: none;
        filter: none;
    }

    .wb-floating a:last-child { border-right: 0; }
    .wb-floating a.is-general,
    .wb-floating a.is-corporate,
    .wb-floating a.is-referral,
    .wb-floating a.is-faq { color: #315c67; background: #fff; }
    .wb-floating a.is-phone { color: #fff; background: var(--wb-access-blue); }
    .wb-floating a:not(.is-phone):hover,
    .wb-floating a:not(.is-phone):focus-visible { color: #0b6980; background: #edf7fa; }
    .wb-floating a[aria-current="page"]:not(.is-phone) { color: #fff; background: var(--wb-access-navy); }
    .wb-floating a[aria-current="page"]::before {
        content: "";
        position: absolute;
        top: 0;
        right: 20%;
        left: 20%;
        height: 3px;
        background: #7cd5eb;
    }

    .wb-floating span { width: 26px; height: 27px; }
    .wb-floating svg { width: 23px; height: 23px; }
    .wb-floating em,
    .wb-floating a:hover em,
    .wb-floating a:focus-visible em {
        visibility: visible;
        opacity: 1;
        font-size: 10.5px;
        line-height: 1.25;
        letter-spacing: -.045em;
    }
    .wb-floating a:focus-visible { outline: 3px solid #1194b5; outline-offset: -4px; }

    .wb-section-nav ul { scrollbar-width: none; }
    .wb-section-nav ul::-webkit-scrollbar { display: none; }
}

@media (max-width: 360px) {
    .wb-floating em { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .wb-floating a,
    .wb-floating em { transition-duration: .01ms !important; }
}

@media print {
    .wb-floating { display: none !important; }
}
