/* Floating Contact Sidebar */
.hst-contact-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 9999;
    width: 56px;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translate(88px, -50%);
    transition: width 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.hst-contact-sidebar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.hst-contact-sidebar:hover,
.hst-contact-sidebar:focus-within {
    width: 292px;
}

.hst-contact-sidebar__item {
    height: 58px;
    display: flex;
    align-items: center;
    background: #e60012;
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
}

.hst-contact-sidebar__item:last-child {
    border-bottom: 0;
}

.hst-contact-sidebar__item:hover,
.hst-contact-sidebar__item:focus {
    background: #c40010;
    color: #fff !important;
}

.hst-contact-sidebar__icon {
    width: 56px;
    height: 58px;
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
}

.hst-contact-sidebar__icon svg {
    width: 24px;
    height: 24px;
}

.hst-contact-sidebar__text {
    min-width: 0;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hst-contact-sidebar:hover .hst-contact-sidebar__text,
.hst-contact-sidebar:focus-within .hst-contact-sidebar__text {
    opacity: 1;
    transform: translateX(0);
}

.hst-contact-sidebar__text strong,
.hst-contact-sidebar__text em {
    display: block;
    overflow: hidden;
    color: inherit;
    font-style: normal;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hst-contact-sidebar__text strong {
    font-size: var(--hst-font-body-sm);
    font-weight: 700;
}

.hst-contact-sidebar__text em {
    font-size: var(--hst-font-caption);
    opacity: 0.86;
}

.hst-contact-mobile {
    display: none;
}

@media (max-width: 992px) {
    .hst-contact-sidebar {
        display: none;
    }

    .hst-contact-mobile {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow: hidden;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .hst-contact-mobile__item {
        min-height: 64px;
        padding: 9px 4px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #333 !important;
        font-size: var(--hst-font-caption);
        line-height: 1.2;
        text-align: center;
        text-decoration: none !important;
        border-right: 1px solid #eee;
        box-sizing: border-box;
    }

    .hst-contact-mobile__item:last-child {
        border-right: 0;
    }

    .hst-contact-mobile__item span {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e60012;
    }

    .hst-contact-mobile__item svg {
        width: 22px;
        height: 22px;
    }

    .hst-contact-mobile__item em {
        display: block;
        overflow: hidden;
        max-width: 100%;
        color: inherit;
        font-style: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 480px) {
    .hst-contact-mobile {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 14px;
    }

    .hst-contact-mobile__item {
        min-height: 58px;
        font-size: var(--hst-font-caption);
    }
}
