/* Widget de suporte WhatsApp (landing + app autenticada) */
.landing-wa {
    --wa-panel-bg: var(--varaio-s2, var(--s2, #1e2535));
    --wa-panel-border: var(--varaio-bd, var(--bd, #2a3347));
    --wa-input-bg: var(--varaio-s3, var(--s3, #252d3d));
    --wa-text: var(--varaio-t, var(--t, #e8eaf0));
    --wa-text-muted: var(--varaio-t2, var(--t2, #8892a4));

    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
}

body.v3-app--module .landing-wa {
    left: max(20px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px) + 12px);
}

body.v3-app--module .landing-wa-panel {
    left: 0;
    right: auto;
}

@media (min-width: 1101px) {
    body.v3-app--module .landing-wa {
        bottom: 20px;
    }
}

.landing-wa-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 16px 12px 14px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.landing-wa-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

.landing-wa-fab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.landing-wa-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(320px, calc(100vw - 40px));
    padding: 16px;
    border-radius: 14px;
    background: var(--wa-panel-bg);
    border: 1px solid var(--wa-panel-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.landing-wa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--wa-text);
}

.landing-wa-close {
    border: none;
    background: transparent;
    color: var(--wa-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.landing-wa-panel-desc {
    font-size: 12px;
    color: var(--wa-text-muted);
    margin-bottom: 12px;
}

.landing-wa-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wa-text-muted);
    margin-bottom: 6px;
}

.landing-wa-textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--wa-panel-border);
    background: var(--wa-input-bg);
    color: var(--wa-text);
    font-family: inherit;
    font-size: 13px;
    margin-bottom: 12px;
}

.landing-wa-textarea:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.landing-wa-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.landing-wa-send:hover {
    color: #fff;
    filter: brightness(1.05);
}

.landing-wa-send-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 575.98px) {
    .landing-wa-fab-label {
        display: none;
    }

    .landing-wa-fab {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
