.grecaptcha-badge {
    visibility: hidden !important;
}

/* ─── Widget Wrapper ────────────────────────────────────────────── */
#chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 9999;
    pointer-events: none;
}

#chat-widget.opened {
    pointer-events: all;
}

/* ─── Popup Container ───────────────────────────────────────────── */
#chat-popup {
    width: 290px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 14px;
    pointer-events: none;

    /* Hidden state */
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.32s cubic-bezier(.4, 0, .2, 1),
    transform 0.32s cubic-bezier(.4, 0, .2, 1);
}

#chat-popup.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ─── Popup Header ──────────────────────────────────────────────── */
.popup-header {
    background: #25D366;
    padding: 18px 20px 16px;
}

.popup-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: initial;
    margin-bottom: 0;
}

/* ─── Items List ────────────────────────────────────────────────── */
.popup-list {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.popup-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
    background: #f7f9ff;
    border: 1.5px solid transparent;
    transition: background 0.18s, border-color 0.18s, transform 0.15s;
    text-decoration: none;

    /* Scroll-up animation initial state */
    opacity: 0;
    transform: translateY(18px);
}

.popup-item.animate-in {
    animation: itemScrollUp 0.38s cubic-bezier(.22, 1, .36, 1) forwards;
}

.popup-item:hover {
    background: #eef4ff;
    border-color: #ccdeff;
    transform: translateY(-1px);
}

.popup-item:active {
    transform: scale(0.98);
}

@keyframes itemScrollUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon bubble */
.item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #25D366;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37,211,102,0.30);
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

/* Text */
.item-text {
    display: flex;
    flex-direction: column;
}

.item-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1f36;
    line-height: 1.2;
}

.item-sub {
    font-size: 0.73rem;
    color: #8895aa;
    margin-top: 2px;
}

/* ─── FAB Toggle Button ─────────────────────────────────────────── */
#chat-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    pointer-events: all;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(37,211,102,0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.22s;
    outline: none;
}

#chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(37,211,102,0.30);
}

#chat-fab:active {
    transform: scale(0.96);
}

/* Icon slot inside FAB — we rotate between icons */
.fab-icon-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cycling icons — slide in from bottom, out to top */
.fab-icon-track svg {
    position: absolute;
    width: 26px;
    height: 26px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.35s, transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.fab-icon-track svg.fab-visible {
    opacity: 1;
    transform: translateY(0);
}

.fab-icon-track svg.fab-exit {
    opacity: 0;
    transform: translateY(-30px);
}

/* Close icon for expanded state */
.fab-close {
    position: absolute;
    width: 22px;
    height: 22px;
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
    transition: opacity 0.28s, transform 0.28s cubic-bezier(.4, 0, .2, 1);
}

.fab-close.fab-visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Ripple pulse ring */
#chat-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37,211,102,0.30);
    animation: fabPulse 2.4s ease-out infinite;
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0.30);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Stop pulsing when open */
#chat-fab.open::after {
    animation: none;
}
