.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1040;
    width: 58px;
    height: 58px;
}

.floating-contact__toggle,
.floating-contact__action {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 8px 24px rgb(22 30 45 / 20%);
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), bottom 260ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease, visibility 220ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.floating-contact__toggle {
    z-index: 2;
    cursor: pointer;
    background: var(--primary-color, #db1d23);
}

.floating-contact__toggle:hover {
    transform: translateY(-3px);
    background: var(--hover-color, #cd380f);
    box-shadow: 0 12px 28px rgb(22 30 45 / 25%);
}

.floating-contact__toggle:focus-visible,
.floating-contact__action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.floating-contact__toggle svg,
.floating-contact__action svg {
    width: 25px;
    height: 25px;
    flex: none;
}

.floating-contact__chat-icon,
.floating-contact__close-icon {
    position: absolute;
    transition: transform 240ms ease, opacity 180ms ease;
}

.floating-contact__close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(.7);
}

.floating-contact.is-open .floating-contact__chat-icon {
    opacity: 0;
    transform: rotate(90deg) scale(.7);
}

.floating-contact.is-open .floating-contact__close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.floating-contact__action {
    z-index: 1;
    top: auto;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.65);
}

.floating-contact__action--whatsapp {
    background: #25d366;
}

.floating-contact__action--phone {
    background: var(--primary-color, #db1d23);
}

.floating-contact__action:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 28px rgb(22 30 45 / 25%);
}

.floating-contact.is-open .floating-contact__action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-contact.is-open .floating-contact__action--whatsapp {
    bottom: 72px;
    transition-delay: 35ms;
}

.floating-contact.is-open .floating-contact__action--phone {
    bottom: 142px;
    transition-delay: 85ms;
}

.floating-contact__actions {
    position: absolute;
    inset: 0;
}

.floating-contact__label {
    position: absolute;
    right: calc(100% + 12px);
    padding: 7px 11px;
    border-radius: 8px;
    background: #161e2d;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(5px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.floating-contact.is-open .floating-contact__label,
.floating-contact__action:hover .floating-contact__label,
.floating-contact__action:focus-visible .floating-contact__label {
    opacity: 1;
    transform: translateX(0);
}

body.has-floating-contact .progress-wrap {
    bottom: 98px;
}

@media (max-width: 767px) {
    .floating-contact {
        right: 20px;
        bottom: 20px;
    }

    body.has-floating-contact .progress-wrap {
        bottom: 86px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-contact__toggle,
    .floating-contact__action,
    .floating-contact__chat-icon,
    .floating-contact__close-icon,
    .floating-contact__label {
        transition-duration: .01ms;
        transition-delay: 0ms !important;
    }
}
