.hongfo-floating-contact-toolbar {
    --efct-width: 124px;
    --efct-x-offset: 18px;
    --efct-y-offset: 0px;
    --efct-main-gap: 24px;
    --efct-mobile-bar-height: 64px;
    --efct-mobile-primary-width: 22%;
    --efct-mobile-item-width: 52px;
    --efct-mobile-fold-width: 52px;
    --efct-tooltip-bg: #1f2328;
    --efct-tooltip-color: #fff;
    --efct-tooltip-offset: 12px;
    position: fixed;
    width: var(--efct-width);
    font-family: inherit;
    line-height: 1.2;
    z-index: 99990;
}

.hongfo-floating-contact-toolbar.efct-right {
    right: var(--efct-x-offset);
}

.hongfo-floating-contact-toolbar.efct-left {
    left: var(--efct-x-offset);
}

.hongfo-floating-contact-toolbar.efct-v-top {
    top: var(--efct-y-offset);
}

.hongfo-floating-contact-toolbar.efct-v-middle {
    top: calc(50% + var(--efct-y-offset));
    transform: translateY(-50%);
}

.hongfo-floating-contact-toolbar.efct-v-bottom {
    bottom: var(--efct-y-offset);
}

.efct-expanded {
    display: grid;
    gap: var(--efct-main-gap);
}

.efct-primary,
.efct-item,
.efct-fold,
.efct-collapsed {
    appearance: none;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, color .2s ease, background-color .2s ease;
}

.efct-primary {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 124px;
    padding: 16px 10px;
    color: #fff;
    background: #b38a00;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.efct-panel {
    display: grid;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
}

.efct-tooltips .efct-panel {
    overflow: visible;
}

.efct-primary,
.efct-panel,
.efct-collapsed {
    box-shadow: 0 18px 36px rgba(0, 0, 0, .18);
}

.efct-item,
.efct-fold {
    display: grid;
    place-items: center;
    gap: 8px;
    width: 100%;
    min-height: 104px;
    padding: 14px 8px;
    color: #5b5b5b;
    background: transparent;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.efct-fold {
    border-top: 1px solid rgba(230, 0, 0, .22);
}

.efct-icon {
    display: inline-grid;
    place-items: center;
    line-height: 1;
    color: currentColor;
}

.efct-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.efct-primary .efct-icon {
    font-size: 38px;
}

.efct-item .efct-icon,
.efct-fold .efct-icon {
    font-size: 34px;
}

.efct-primary:hover,
.efct-item:hover,
.efct-fold:hover,
.efct-collapsed:hover {
    opacity: .94;
    transform: translateY(-1px);
}

.efct-collapsed {
    display: none;
    place-items: center;
    width: 72px;
    height: 72px;
    color: #fff;
    background: #b38a00;
}

.efct-collapsed .efct-icon {
    font-size: 40px;
}

.efct-right .efct-collapsed {
    border-radius: 999px 0 0 999px;
}

.efct-left .efct-collapsed {
    border-radius: 0 999px 999px 0;
}

.hongfo-floating-contact-toolbar.is-collapsed {
    width: auto;
}

.hongfo-floating-contact-toolbar.is-collapsed .efct-expanded {
    display: none;
}

.hongfo-floating-contact-toolbar.is-collapsed .efct-collapsed {
    display: grid;
}

.hongfo-floating-contact-toolbar.is-collapsed.efct-right {
    right: 0 !important;
}

.hongfo-floating-contact-toolbar.is-collapsed.efct-left {
    left: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
    .efct-tooltips [data-efct-tooltip]::after,
    .efct-tooltips [data-efct-tooltip]::before {
        position: absolute;
        top: 50%;
        z-index: 2;
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease;
    }

    .efct-tooltips [data-efct-tooltip]::after {
        content: attr(data-efct-tooltip);
        right: calc(100% + var(--efct-tooltip-offset));
        max-width: 220px;
        padding: 8px 10px;
        color: var(--efct-tooltip-color);
        background: var(--efct-tooltip-bg);
        border-radius: 6px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        transform: translate(4px, -50%);
    }

    .efct-tooltips [data-efct-tooltip]::before {
        content: "";
        right: calc(100% + var(--efct-tooltip-offset) - 10px);
        border-width: 6px 0 6px 7px;
        border-style: solid;
        border-color: transparent transparent transparent var(--efct-tooltip-bg);
        transform: translate(4px, -50%);
    }

    .efct-tooltips.efct-left [data-efct-tooltip]::after {
        right: auto;
        left: calc(100% + var(--efct-tooltip-offset));
        transform: translate(-4px, -50%);
    }

    .efct-tooltips.efct-left [data-efct-tooltip]::before {
        right: auto;
        left: calc(100% + var(--efct-tooltip-offset) - 10px);
        border-width: 6px 7px 6px 0;
        border-color: transparent var(--efct-tooltip-bg) transparent transparent;
        transform: translate(-4px, -50%);
    }

    .efct-tooltips [data-efct-tooltip]:hover::after,
    .efct-tooltips [data-efct-tooltip]:focus-visible::after,
    .efct-tooltips [data-efct-tooltip]:hover::before,
    .efct-tooltips [data-efct-tooltip]:focus-visible::before {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar {
        --efct-width: 100vw !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw;
        max-width: 100vw;
        transform: none !important;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-expanded {
        display: flex !important;
        align-items: stretch;
        gap: var(--efct-main-gap);
        width: 100%;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-primary {
        flex: 0 0 var(--efct-mobile-primary-width);
        min-width: 0;
        min-height: var(--efct-mobile-bar-height) !important;
        height: var(--efct-mobile-bar-height);
        padding: 8px 4px;
        border-radius: 0;
        font-size: 11px;
        box-shadow: none;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar [data-efct-tooltip]::after,
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar [data-efct-tooltip]::before {
        display: none !important;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel::-webkit-scrollbar {
        display: none;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-item {
        flex: 0 0 var(--efct-mobile-item-width);
        min-width: 0;
        min-height: var(--efct-mobile-bar-height) !important;
        height: var(--efct-mobile-bar-height);
        gap: 4px;
        padding: 8px 3px;
        border-top: 0;
        border-left: 1px solid rgba(0, 0, 0, .08);
        font-size: 10px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-fold {
        flex: 0 0 var(--efct-mobile-fold-width);
        min-width: 0;
        min-height: var(--efct-mobile-bar-height) !important;
        height: var(--efct-mobile-bar-height);
        gap: 4px;
        padding: 8px 3px;
        border-top: 0;
        border-left: 1px solid rgba(0, 0, 0, .08);
        font-size: 10px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-primary span,
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-item span,
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-fold span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-primary .efct-icon {
        font-size: 24px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-item .efct-icon,
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-fold .efct-icon {
        font-size: 22px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar.is-collapsed {
        right: 12px !important;
        bottom: 12px !important;
        left: auto !important;
        width: auto;
        max-width: none;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar.is-collapsed .efct-expanded {
        display: none !important;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar.is-collapsed .efct-collapsed {
        display: grid !important;
        border-radius: 999px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating {
        --efct-width: 82px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-expanded {
        gap: 12px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-primary {
        min-height: 82px;
        padding: 12px 6px;
        font-size: 13px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-item,
    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-fold {
        min-height: 74px;
        gap: 6px;
        padding: 10px 4px;
        font-size: 12px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-primary .efct-icon {
        font-size: 30px;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-item .efct-icon,
    .hongfo-floating-contact-toolbar.efct-mobile-floating .efct-fold .efct-icon {
        font-size: 27px;
    }

    .efct-collapsed {
        width: 58px;
        height: 58px;
    }

    .efct-collapsed .efct-icon {
        font-size: 34px;
    }
}

.hongfo-floating-contact-toolbar .hf-toolbar-language {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 8px;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language summary {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 6px;
    background: #20272b;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language summary::-webkit-details-marker {
    display: none;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language-list {
    position: absolute;
    right: calc(100% + 8px);
    top: 0;
    width: 156px;
    max-height: 40vh;
    overflow: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid #e2e5e7;
    border-radius: 6px;
    list-style: none;
    background: #fff;
    box-shadow: 0 8px 24px #20272b26;
}

.hongfo-floating-contact-toolbar.efct-left .hf-toolbar-language-list {
    right: auto;
    left: calc(100% + 8px);
}

.hongfo-floating-contact-toolbar .hf-toolbar-language-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 3px;
    color: #20272b;
    font-size: 14px;
    text-decoration: none;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language-list a:hover,
.hongfo-floating-contact-toolbar .hf-toolbar-language-list a:focus-visible {
    background: #f9efc6;
}

@media (min-width: 768px) {
    .hongfo-floating-contact-toolbar {
        max-width: 60px;
    }

    .hongfo-floating-contact-toolbar .efct-label {
        display: none;
    }

    .hongfo-floating-contact-toolbar :is(.efct-primary, .efct-item, .efct-fold) {
        min-height: 48px !important;
        padding: 8px !important;
    }

    .hongfo-floating-contact-toolbar .efct-expanded {
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .hf-toolbar-language {
        width: 48px;
        margin-inline: auto 12px;
    }

    .hongfo-floating-contact-toolbar .hf-toolbar-language-list,
    .hongfo-floating-contact-toolbar.efct-left .hf-toolbar-language-list {
        top: auto;
        right: 0;
        bottom: calc(100% + 8px);
        left: auto;
    }
}

/* Keep button names in aria-label and the hover tooltip. */
.hongfo-floating-contact-toolbar[data-efct-toolbar] .efct-expanded .efct-label[hidden] {
    display: none !important;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language > summary {
    position: relative;
    box-sizing: border-box;
    margin-left: auto;
}

.hongfo-floating-contact-toolbar.efct-left .hf-toolbar-language > summary {
    margin-left: 0;
}

.hongfo-floating-contact-toolbar .hf-toolbar-language[open] > summary[data-efct-tooltip]::before,
.hongfo-floating-contact-toolbar .hf-toolbar-language[open] > summary[data-efct-tooltip]::after {
    opacity: 0;
}

.hongfo-floating-contact-toolbar .efct-panel:has(.hf-toolbar-language) {
    overflow: visible;
}

.hongfo-floating-contact-toolbar .efct-panel .hf-toolbar-language {
    margin: 0;
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel:has(.hf-toolbar-language) {
        overflow: auto hidden;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel .hf-toolbar-language {
        flex: 0 0 auto;
        width: auto;
        min-width: var(--efct-mobile-item-width);
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .hf-toolbar-language > summary {
        min-height: var(--efct-mobile-bar-height);
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .hf-toolbar-language-list {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: calc(var(--efct-mobile-bar-height) + 8px);
        left: auto;
    }
}

.hongfo-floating-contact-toolbar .efct-panel > :is(.efct-item, .hf-toolbar-language) + .efct-item {
    margin-block-start: var(--hf-contact-gap, 0px);
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel > :is(.efct-item, .hf-toolbar-language) + .efct-item {
        margin-block-start: 0;
        margin-inline-start: var(--hf-contact-gap, 0px);
    }
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: var(--hf-contact-gap, 0px);
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel > :is(.hf-toolbar-language, .efct-item, .efct-fold) {
        width: 100% !important;
        min-width: 0;
        max-width: none;
        margin: 0;
    }

    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel .hf-toolbar-language > summary {
        width: 100% !important;
        height: 100%;
    }
}

.hongfo-floating-contact-toolbar .efct-panel {
    box-sizing: border-box;
    border-width: 0;
    box-shadow:
        var(--hf-panel-shadow-x, 0px)
        var(--hf-panel-shadow-y, 18px)
        var(--hf-panel-shadow-blur, 36px)
        var(--hf-panel-shadow-spread, 0px)
        var(--hf-panel-shadow-color, rgba(0, 0, 0, .18));
}

@media (max-width: 767px) {
    .hongfo-floating-contact-toolbar.efct-mobile-bottom_bar .efct-panel {
        box-shadow:
            var(--hf-panel-shadow-x, 0px)
            var(--hf-panel-shadow-y, 0px)
            var(--hf-panel-shadow-blur, 0px)
            var(--hf-panel-shadow-spread, 0px)
            var(--hf-panel-shadow-color, rgba(0, 0, 0, .18));
    }
}
