.hfc {
    --hfc-ink: var(--e-global-color-secondary, #202b32);
    --hfc-teal: var(--e-global-color-primary, #00bab5);
    position: fixed;
    z-index: 9980;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: inherit;
}

.hfc[hidden],
.hfc .hfc-links[hidden],
.hfc-toggle[aria-expanded="false"] .hfc-close-icon,
.hfc-toggle[aria-expanded="true"] .hfc-chat-icon {
    display: none;
}

.hfc .hfc-toggle {
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--hfc-teal);
    color: var(--hfc-ink);
    box-shadow: 0 6px 18px #202b3233;
    cursor: pointer;
}

.hfc .hfc-toggle:hover {
    background: #8be3df;
    color: var(--hfc-ink);
}

.hfc .hfc-links {
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 32px);
    overflow: auto;
    padding: 5px;
    border: 1px solid #e3e9eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px #202b3226;
}

.hfc .hfc-links ul {
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hfc .hfc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 19px;
    min-height: 44px;
    padding: 5px 9px 5px 13px;
    border-radius: 9px;
    color: var(--hfc-ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.hfc .hfc-link:hover {
    background: #eaf8f7;
}

.hfc .hfc-channel-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
}

.hfc .hfc-toggle:focus-visible,
.hfc .hfc-link:focus-visible {
    outline: 2px solid #007a78;
    outline-offset: 2px;
}

/* Reserve space above the tour's sticky booking bar while it is visible. */
@media (max-width: 767px) {
    body:has(> .htb-mobile-bar:not([hidden])) .hfc {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    body:has(> .htb-mobile-bar:not([hidden])) .hfc-links {
        max-height: calc(100dvh - 164px - env(safe-area-inset-bottom, 0px));
    }
}
