.chat-dock.btn-float {
    position: fixed;
    bottom: 24px;
    left: -18px;
    z-index: 9999;
    display: flex;
    width: 52px;
    height: 48px;
    margin: 0;
    padding: 4px 9px 4px 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    outline: none;
    background: rgba(255, 255, 255, .97);
    color: #334155;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .16);
    cursor: pointer;
    transform: none;
    transition:
        left .24s ease,
        width .24s ease,
        border-radius .24s ease,
        box-shadow .24s ease,
        transform .24s ease;
}

.chat-dock.btn-float:hover,
.chat-dock.btn-float:focus,
.chat-dock.btn-float:focus-visible {
    left: 18px;
    width: 136px;
    border-left: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .22);
    transform: translateY(-2px);
}

.chat-dock__icon {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, .12));
    transition: transform .24s ease;
}

.chat-dock:hover .chat-dock__icon,
.chat-dock:focus .chat-dock__icon,
.chat-dock:focus-visible .chat-dock__icon {
    transform: rotate(-4deg) scale(1.04);
}

.chat-dock__label {
    max-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .015em;
    line-height: 1;
    opacity: 0;
    white-space: nowrap;
    transform: translateX(-8px);
    transition: max-width .24s ease, opacity .18s ease, transform .24s ease;
}

.chat-dock:hover .chat-dock__label,
.chat-dock:focus .chat-dock__label,
.chat-dock:focus-visible .chat-dock__label {
    max-width: 62px;
    opacity: 1;
    transform: translateX(0);
}

.chat-dock.btn-float #chatCounter {
    top: -6px;
    right: -6px;
    width: 21px;
    height: 21px;
    border: 2px solid #fff;
    background: #dc2626;
    box-sizing: border-box;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(127, 29, 29, .28);
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
    .chat-dock.btn-float,
    .chat-dock.btn-float:hover,
    .chat-dock.btn-float:focus,
    .chat-dock.btn-float:focus-visible {
        bottom: 14px;
        left: 10px;
        width: 48px;
        height: 48px;
        padding: 5px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        transform: none;
    }

    .chat-dock__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .chat-dock__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-dock.btn-float,
    .chat-dock__icon,
    .chat-dock__label {
        transition: none;
    }
}
