.contact-widget {
    position: fixed;
    right: 12px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-widget-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-widget.is-open .contact-widget-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-widget-item,
.contact-widget-toggle {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(5, 15, 25, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
    vertical-align: middle;
}

.contact-widget-item svg {
    width: 22px;
    height: 22px;
    fill: #0b1014;
}

.contact-widget-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-widget-item:hover,
.contact-widget-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(5, 15, 25, 0.22);
}

.contact-widget-item.is-whatsapp {
    background: #24d366;
}

.contact-widget-item.is-viber {
    background: #8f5fe8;
    color: #ffffff;
}

.contact-widget-item.is-telegram {
    background: #2aabee;
}

.contact-widget-item.is-chat {
    background: #00b8ae;
}

.contact-widget-item.is-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-widget-item.is-instagram svg {
    fill: none;
    stroke: #fff;
}

.contact-widget-item.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.2);
}

.contact-widget-toggle {
    background: #00b8ae;
}

.contact-widget-toggle-icon {
    width: 22px;
    height: 22px;
    position: relative;
    display: block;
    background: #0b1014;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2h9A3.5 3.5 0 0 1 20 5.5v7A3.5 3.5 0 0 1 16.5 16H9l-4.5 3v-3H7.5A3.5 3.5 0 0 1 4 12.5v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A3.5 3.5 0 0 1 7.5 2h9A3.5 3.5 0 0 1 20 5.5v7A3.5 3.5 0 0 1 16.5 16H9l-4.5 3v-3H7.5A3.5 3.5 0 0 1 4 12.5v-7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-widget-toggle-icon::before,
.contact-widget-toggle-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 2px;
    background: #9aa3af;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-widget-toggle-icon::before {
    transform: rotate(45deg);
}

.contact-widget-toggle-icon::after {
    transform: rotate(-45deg);
}

.contact-widget.is-open .contact-widget-toggle-icon {
    background: transparent;
    -webkit-mask: none;
    mask: none;
}

.contact-widget.is-open .contact-widget-toggle-icon::before,
.contact-widget.is-open .contact-widget-toggle-icon::after {
    opacity: 1;
}

@media (max-width: 700px) {
    .contact-widget {
        right: 8px;
        bottom: 16px;
    }

    .contact-widget-item,
    .contact-widget-toggle {
        width: 42px;
        height: 42px;
    }
}
