/* Floating WhatsApp widget with QR popup */
.whatsapp-widget__fab {
    position: fixed;
    bottom: var(--whatsapp-fab-bottom, 124px);
    right: 30px;
    z-index: 9989;
    width: 80px;
    height: 80px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-widget__fab:hover {
    background-color: #1ebe57;
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.whatsapp-widget__fab:focus {
    outline: 2px solid #128c7e;
    outline-offset: 2px;
}

.whatsapp-widget__fab.is-open {
    background-color: #128c7e;
}

.whatsapp-widget__icon {
    width: 46px;
    height: 46px;
}

.whatsapp-widget__overlay {
    position: fixed;
    inset: 0;
    z-index: 9991;
    background: rgba(0, 0, 0, 0.45);
}

.whatsapp-widget__overlay[hidden],
.whatsapp-widget__panel[hidden] {
    display: none !important;
}

.whatsapp-widget__panel {
    position: fixed;
    bottom: calc(var(--whatsapp-fab-bottom, 124px) + 96px);
    right: 30px;
    z-index: 9992;
    width: min(320px, calc(100vw - 40px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.whatsapp-widget__panel-inner {
    padding: 24px 20px 20px;
    text-align: center;
}

.whatsapp-widget__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}

.whatsapp-widget__close:hover {
    background: #f3f4f6;
    color: #111;
}

.whatsapp-widget__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.whatsapp-widget__hint {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.whatsapp-widget__qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.whatsapp-widget__qr {
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: inline-block;
}

.whatsapp-widget__qr img {
    display: block;
}

.whatsapp-widget__phone {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.whatsapp-widget__link {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #25d366;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.whatsapp-widget__link:hover {
    background: #1ebe57;
    color: #fff !important;
}

@media (max-width: 575px) {
    .whatsapp-widget__fab {
        right: 20px;
    }

    .whatsapp-widget__panel {
        right: 20px;
        left: 20px;
        width: auto;
    }
}
