.left-float-contact {
    position: fixed;
    left: 20px;
    top: 64%;
    transform: translate(-100px, -50%);
    opacity: 0;
    visibility: hidden;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.6s;
}

.left-float-contact.is-loaded {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

.left-float-contact.is-loaded.is-scrolling {
    opacity: 0.4;
    transform: translate(0, -50%) scale(0.85);
    pointer-events: none;
}

.left-float-icon-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.left-float-icon {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: var(--primary-color, #ff6b00);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.left-float-icon i {
    animation: floatIconFlash 4.8s ease-in-out infinite;
    will-change: filter, transform, opacity;
}

.left-float-icon-group .left-float-icon:nth-child(2) i {
    animation-delay: 2.2s;
}

@keyframes floatIconFlash {
    0%,
    74%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }

    78% {
        opacity: 0.7;
        transform: scale(0.88);
        filter: brightness(1.35);
    }

    82% {
        opacity: 1;
        transform: scale(1.08);
        filter: brightness(1.95);
    }

    86% {
        opacity: 0.8;
        transform: scale(0.92);
        filter: brightness(1.3);
    }

    90% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

.left-float-icon:hover {
    transform: translateY(-1px) scale(1.05);
    background: var(--primary-color-hover, #e66000);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

.left-float-icon.active {
    background: #fff;
    color: var(--primary-color, #ff6b00);
}

.left-float-panel {
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    width: auto;
    max-width: calc(100vw - 90px);
    background: #fff;
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition: all 0.25s ease;
}

.left-float-panel.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.left-float-panel.mode-phone {
    width: min(320px, calc(100vw - 90px));
}

.left-float-panel.mode-phone.has-extended-callback {
    width: min(360px, calc(100vw - 90px));
}

.dlc-fcb-extra-fields {
    margin-bottom: 10px;
}

.left-float-field-stack {
    margin-bottom: 8px;
}

.left-float-field-stack:last-of-type {
    margin-bottom: 10px;
}

.left-float-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-align: left;
}

.left-float-input-full,
.left-float-select {
    width: 100%;
    box-sizing: border-box;
}

.left-float-select {
    appearance: auto;
    cursor: pointer;
}

.left-float-panel.mode-wechat {
    padding: 8px;
}

.left-float-panel-content {
    display: none;
}

.left-float-panel-content.active {
    display: block;
}

.left-float-wechat-qr {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f3f4f6;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.left-float-panel-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.left-float-input {
    flex: 1;
    border: 1px solid #ffd0ad;
    border-radius: 10px;
    padding: 6px 10px;
    outline: none;
    font-size: 15px;
    min-height: 34px;
}

.left-float-input:focus {
    border-color: var(--primary-color, #ff6b00);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.12);
}

.left-float-submit {
    border: none;
    border-radius: 10px;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 15px;
    min-height: 34px;
    color: #fff;
    background: var(--primary-color, #ff6b00);
}

.left-float-tip {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.right-float-contact {
    position: fixed;
    right: 20px;
    top: 64%;
    transform: translate(100px, -50%);
    opacity: 0;
    visibility: hidden;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.6s;
}

.right-float-contact.is-loaded {
    transform: translate(0, -50%);
    opacity: 1;
    visibility: visible;
}

.right-float-contact.is-loaded.is-scrolling {
    opacity: 0.4;
    transform: translate(0, -50%) scale(0.85);
    pointer-events: none;
}

.right-float-icon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.right-float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.right-float-icon {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: var(--primary-color, #ff6b00);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.right-float-icon i {
    animation: floatIconFlash 4.8s ease-in-out infinite;
    will-change: filter, transform, opacity;
}

.right-float-icon:hover {
    transform: translateY(-1px) scale(1.05);
    background: var(--primary-color-hover, #e66000);
    box-shadow: 0 6px 16px rgba(255, 107, 0, 0.4);
}

.right-float-text {
    font-size: 13px;
    color: var(--primary-color, #ff6b00);
    font-weight: 500;
    text-align: center;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.online-consultation-banner {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.online-consultation-banner.is-open {
    display: block;
}

.online-consultation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.online-consultation-inner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 360px;
    height: 460px;
    max-width: 100vw;
    max-height: min(460px, 85vh);
    background: #fff;
    border-radius: 8px 0 0 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

.online-consultation-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.online-consultation-close:hover {
    background: rgba(0, 0, 0, 0.75);
}

.online-consultation-iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    display: block;
    background: #fff;
}

.online-consultation-banner.tx-banner .online-consultation-inner {
    height: 600px;
    max-height: min(600px, 90vh);
}

@media (max-width: 768px) {
    .left-float-contact {
        left: 20px;
        top: 66%;
    }

    .left-float-icon-group {
        border-radius: 14px;
    }

    .left-float-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .left-float-panel {
        width: min(280px, calc(100vw - 78px));
        max-width: calc(100vw - 78px);
    }

    .left-float-panel.mode-phone {
        width: min(240px, calc(100vw - 88px));
    }

    .left-float-panel.mode-phone .left-float-panel-row {
        flex-direction: column;
        gap: 6px;
    }

    .left-float-panel.mode-phone .left-float-input,
    .left-float-panel.mode-phone .left-float-submit {
        width: 100%;
    }

    .left-float-panel.mode-phone .left-float-submit {
        padding: 8px 12px;
    }

    .left-float-panel.mode-wechat {
        width: auto;
        max-width: calc(100vw - 78px);
    }

    .left-float-wechat-qr {
        width: 140px;
        height: 140px;
    }

    .right-float-contact {
        right: 20px;
        top: 66%;
    }

    .right-float-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .right-float-text {
        font-size: 12px;
        padding: 2px 6px;
    }

    .online-consultation-inner {
        right: 0;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    .online-consultation-close {
        top: 10px;
        right: 12px;
    }

    .online-consultation-banner.tx-banner .online-consultation-inner {
        height: 100%;
        max-height: none;
    }
}
