/**
 * Widget "Precisa de Ajuda?" — landing e login
 */
:root {
    --bra-help-azul: #005de0;
    --bra-help-azul-hover: #004fc2;
    --bra-help-azul-escuro: #19395E;
    --bra-help-azul-claro: #E3F2FD;
    --bra-help-cinza: #444444;
}

.bra-help-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.bra-help-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.125rem;
    border: none;
    border-radius: 999px;
    background: var(--bra-help-azul);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 93, 224, 0.35);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.bra-help-launcher:hover {
    transform: translateY(-2px);
    background: var(--bra-help-azul-hover);
    box-shadow: 0 12px 28px rgba(0, 93, 224, 0.4);
}

.bra-help-launcher__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.bra-help-launcher__label {
    white-space: nowrap;
}

.bra-help-popover {
    position: relative;
    width: min(18rem, calc(100vw - 2rem));
    padding: 1.25rem 1.125rem 1.125rem;
    background: var(--bra-help-azul-claro);
    border: 1px solid rgba(0, 93, 224, 0.22);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(25, 57, 94, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.22s, visibility 0.22s, transform 0.22s;
}

.bra-help-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.bra-help-popover__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--bra-help-azul-escuro);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, background 0.2s;
}

.bra-help-popover__close:hover {
    opacity: 1;
    background: rgba(25, 57, 94, 0.08);
}

.bra-help-popover__title {
    margin: 0 2rem 0.375rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bra-help-azul-escuro);
}

.bra-help-popover__desc {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--bra-help-cinza);
}

.bra-help-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: #25D366;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.bra-help-whatsapp-btn:hover {
    background: #1fb855;
    color: #fff;
}

.bra-help-whatsapp-btn:active {
    transform: scale(0.98);
}

.bra-help-whatsapp-btn__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .bra-help-widget {
        right: 1rem;
        bottom: 1rem;
    }

    .bra-help-launcher {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .bra-help-launcher__label {
        white-space: normal;
        max-width: 7rem;
        text-align: left;
    }
}
