.contact-widget {
    position: fixed;
    right: var(--page-gutter);
    bottom: var(--page-gutter);
    z-index: 110;
    width: 48px;
    height: 48px;
}

body.has-quiz .contact-widget {
    bottom: calc(var(--page-gutter) + 72px);
}

@media (max-width: 997px) {
    .contact-widget {
        right: 15px;
        bottom: 15px;
    }

    body.has-quiz .contact-widget {
        bottom: calc(15px + 72px);
    }
}

.contact-widget__trigger {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #31c55d;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.contact-widget__trigger:hover {
    transform: scale(1.05);
}

.contact-widget__trigger:focus-visible {
    outline: 2px solid #31c55d;
    outline-offset: 2px;
}

.contact-widget__trigger-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-widget__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 48px;
    height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        opacity 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        visibility 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-widget--expanded .contact-widget__panel {
    height: 240px;
    opacity: 1;
    visibility: visible;
}

.contact-widget--expanded .contact-widget__trigger {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
    pointer-events: none;
}

.contact-widget__link,
.contact-widget__close {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-widget__link:hover,
.contact-widget__close:hover {
    transform: translateY(-2px);
}

.contact-widget__link:focus-visible,
.contact-widget__close:focus-visible {
    outline: 2px solid #31c55d;
    outline-offset: 2px;
}

.contact-widget__link--whatsapp {
    background-color: #48c95f;
}

.contact-widget__link--email,
.contact-widget__link--phone {
    background-color: #31c55d;
}

.contact-widget__link-icon {
    width: 23px;
    height: 23px;
}

.contact-widget__close {
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
}

.contact-widget__close-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #8c8c8c;
}

.contact-widget__close-icon {
    width: 16px;
    height: 16px;
}
