/* Vestlusmull — WhatsApp / Messenger. Iseseisev, ei sõltu app.css-ist. */
.chatw {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
}

.chatw__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #1f2430;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    transition: transform .15s ease;
}
.chatw__toggle:hover { transform: scale(1.05); }
.chatw__toggle svg { width: 26px; height: 26px; }

.chatw__menu {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: 232px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    padding: 8px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.chatw.is-open .chatw__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chatw__title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 6px 10px 8px;
}

.chatw__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2430;
    font-size: 14px;
    font-weight: 500;
    transition: background .12s ease;
}
.chatw__item:hover { background: #f3f4f6; }

.chatw__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chatw__icon svg { width: 22px; height: 22px; }
.chatw__icon--wa { background: #25d366; }
.chatw__icon--ms { background: #0084ff; }

@media (min-width: 720px) {
    .chatw { bottom: 96px; }
}

@media (max-width: 520px) {
    .chatw {
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
    }
    .chatw__toggle {
        width: 48px;
        height: 48px;
    }
    .chatw__toggle svg {
        width: 22px;
        height: 22px;
    }
    .chatw__menu {
        bottom: 58px;
    }
}
