/* ============================================================
   contact-widget.css — WhatsApp / Viber floating button
   Beauty Atelier IN
   ============================================================ */

.contact-widget {
    position: fixed;
    bottom: 96px;
    /* sit above AI chat FAB (60px tall at bottom:24px + 12px gap) */
    right: 24px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* Main toggle button */
.contact-widget__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1;
}

.contact-widget__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6);
}

.contact-widget__toggle svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    transition: opacity 0.2s ease;
}

.contact-widget__toggle .icon-close-widget {
    display: none;
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

/* When expanded */
.contact-widget.is-open .contact-widget__toggle {
    background: #555;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.contact-widget.is-open .contact-widget__toggle .icon-wa {
    display: none;
}

.contact-widget.is-open .contact-widget__toggle .icon-close-widget {
    display: block;
}

/* Options panel */
.contact-widget__options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

/* Individual option buttons */
.contact-widget__option {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(26, 26, 46, 0.92);
    border-radius: 28px;
    padding: 8px 16px 8px 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    backdrop-filter: blur(6px);
}

.contact-widget__option:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.contact-widget__option__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-widget__option__icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.contact-widget__option--whatsapp .contact-widget__option__icon {
    background: #25D366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.contact-widget__option--viber .contact-widget__option__icon {
    background: #7360F2;
    box-shadow: 0 2px 8px rgba(115, 96, 242, 0.4);
}

.contact-widget__option--messenger .contact-widget__option__icon {
    background: linear-gradient(83.84deg, #0088FF -6.87%, #A033FF 26.54%, #FF5C87 58.58%);
    box-shadow: 0 2px 8px rgba(0, 136, 255, 0.4);
}


/* Pulse animation on the main button when collapsed */
.contact-widget:not(.is-open) .contact-widget__toggle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: widget-pulse 2.2s ease-out infinite;
}

@keyframes widget-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Keep above cookie banner */
/* Tablet — AI chat FAB unchanged, just tighten right margin */
@media (max-width: 768px) {
    .contact-widget {
        right: 16px;
    }
}

/* Mobile — AI chat FAB is 50px tall at bottom:16px, so top is at 66px */
@media (max-width: 480px) {
    .contact-widget {
        bottom: 78px;
        /* 66px (FAB top) + 12px gap */
        right: 16px;
    }
}