/* =========================================================
   ASSISTENTE VIDA PLENA
   ========================================================= */

.vp-assistant {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 1200;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   BOTÃO FLUTUANTE
   ========================================================= */

.vp-assistant-trigger {
    min-height: 62px;

    padding:
        7px
        20px
        7px
        7px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        rgba(180, 145, 72, 0.32);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--blue-900),
            var(--blue-800)
        );

    color: var(--white);

    box-shadow:
        0 16px 38px
        rgba(16, 47, 64, 0.24);

    cursor: pointer;

    opacity: 1;
    visibility: visible;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.vp-assistant-trigger:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 20px 44px
        rgba(16, 47, 64, 0.30);
}


.vp-assistant-trigger-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        rgba(180, 145, 72, 0.38);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.96);
}


.vp-assistant-trigger-icon img {
    display: block;

    width: 43px;
    height: 43px;

    object-fit: contain;
}


.vp-assistant-trigger-label {
    font-size: 0.84rem;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   CONVITE
   ========================================================= */

.vp-assistant-invite {
    position: absolute;

    right: 0;
    bottom: 78px;

    width: 285px;

    padding:
        15px
        38px
        15px
        16px;

    border:
        1px solid
        rgba(180, 145, 72, 0.25);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        0 15px 38px
        rgba(23, 58, 78, 0.15);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


.vp-assistant-invite.is-visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.vp-assistant-invite-content {
    display: flex;
    align-items: center;

    gap: 12px;
}


.vp-assistant-invite-logo {
    width: 58px;
    height: 42px;

    object-fit: contain;
}


.vp-assistant-invite-content strong {
    display: block;

    color: var(--blue-900);

    font-size: 0.89rem;
}


.vp-assistant-invite-content span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 0.76rem;
}


.vp-assistant-invite-close {
    position: absolute;

    top: 8px;
    right: 8px;

    width: 26px;
    height: 26px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: var(--muted);

    cursor: pointer;
}


/* =========================================================
   JANELA
   ========================================================= */

.vp-assistant-panel {
    position: absolute;

    right: 0;
    bottom: 78px;

    width: min(390px, calc(100vw - 40px));
    height: min(610px, calc(100vh - 130px));

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(180, 145, 72, 0.28);

    border-radius: 24px;

    background: var(--white);

    box-shadow:
        0 30px 70px
        rgba(16, 47, 64, 0.24);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(16px)
        scale(0.97);

    transform-origin:
        bottom right;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


.vp-assistant[data-open="true"]
.vp-assistant-panel {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.vp-assistant-header {
    min-height: 84px;

    padding:
        15px
        16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue-900),
            var(--blue-800)
        );

    color: var(--white);
}


.vp-assistant-header-brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}


.vp-assistant-logo-wrap {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        rgba(180, 145, 72, 0.28);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.08);
}


.vp-assistant-logo {
    width: 42px;
    height: 42px;

    object-fit: contain;
}


.vp-assistant-header-text {
    min-width: 0;
}


.vp-assistant-header-text strong {
    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;

    line-height: 1.2;
}


.vp-assistant-header-text span {
    margin-top: 4px;

    display: flex;
    align-items: center;

    gap: 6px;

    color:
        rgba(255, 255, 255, 0.74);

    font-size: 0.69rem;
}


.vp-assistant-header-text span i {
    color: #68c885;

    font-size: 0.42rem;
}


.vp-assistant-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    color: var(--white);

    cursor: pointer;

    transition:
        background 0.20s ease;
}


.vp-assistant-close:hover {
    background:
        rgba(255, 255, 255, 0.16);
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.vp-assistant-body {
    flex: 1;

    padding: 20px 17px;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            var(--blue-50),
            #ffffff 38%
        );

    scrollbar-width: thin;

    scrollbar-color:
        var(--blue-300)
        transparent;
}


.vp-message {
    display: flex;

    gap: 9px;

    margin-bottom: 16px;
}


.vp-message-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        rgba(180, 145, 72, 0.30);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--white),
            var(--gold-100)
        );
}

.vp-message-avatar img {
    width: 27px;
    height: 27px;

    object-fit: contain;
}


.vp-message-content {
    min-width: 0;

    max-width: calc(100% - 44px);
}


.vp-message-bubble {
    padding:
        13px
        15px;

    border:
        1px solid var(--border);

    border-radius:
        6px
        18px
        18px
        18px;

    background: var(--white);

    box-shadow:
        0 8px 22px
        rgba(23, 58, 78, 0.06);
}


.vp-message-bubble p {
    margin: 0 0 9px;

    color: #425962;

    font-size: 0.83rem;
    line-height: 1.55;
}


.vp-message-bubble p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   AÇÕES RÁPIDAS
   ========================================================= */

.vp-quick-actions {
    margin-top: 13px;

    display: grid;

    gap: 8px;
}


.vp-quick-action {
    width: 100%;

    min-height: 44px;

    padding:
        9px
        13px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        rgba(180, 145, 72, 0.26);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.94);

    color: var(--blue-900);

    font-family: inherit;

    font-size: 0.78rem;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.vp-quick-action i {
    width: 21px;

    color: var(--gold-700);

    font-size: 0.96rem;

    text-align: center;
}


.vp-quick-action:hover {
    transform:
        translateX(3px);

    border-color:
        var(--gold-300);

    background:
        var(--gold-100);

    box-shadow:
        0 7px 18px
        rgba(23, 58, 78, 0.07);
}


/* =========================================================
   MENSAGEM DO VISITANTE
   ========================================================= */

.vp-message-user {
    justify-content: flex-end;
}


.vp-message-user .vp-message-content {
    max-width: 82%;
}


.vp-message-user .vp-message-bubble {
    border: 0;

    border-radius:
        18px
        6px
        18px
        18px;

    background:
        var(--blue-900);
}


.vp-message-user .vp-message-bubble p {
    color: var(--white);
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.vp-assistant-footer {
    padding:
        12px
        13px
        10px;

    border-top:
        1px solid var(--border);

    background: var(--white);
}


.vp-assistant-form {
    display: flex;
    align-items: flex-end;

    gap: 8px;
}


.vp-assistant-form textarea {
    min-height: 44px;
    max-height: 104px;

    flex: 1;

    padding:
        11px
        13px;

    resize: none;

    border:
        1px solid var(--border);

    border-radius: 14px;

    outline: none;

    color: var(--text);

    background: var(--blue-50);

    font: inherit;
    font-size: 0.82rem;

    transition:
        border-color 0.20s ease,
        box-shadow 0.20s ease;
}


.vp-assistant-form textarea:focus {
    border-color:
        var(--blue-300);

    box-shadow:
        0 0 0 3px
        rgba(110, 145, 162, 0.12);
}


.vp-assistant-send {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--gold-500),
            var(--gold-700)
        );

    color: var(--white);

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(146, 113, 47, 0.22);

    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease;
}


.vp-assistant-send:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 11px 22px
        rgba(146, 113, 47, 0.28);
}


.vp-assistant-notice {
    margin:
        8px
        4px
        0;

    color: #87949a;

    font-size: 0.61rem;
    line-height: 1.35;

    text-align: center;
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

.vp-sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .vp-assistant {
        right: 14px;
        bottom: 14px;
    }


    .vp-assistant-trigger {
        min-height: 58px;

        padding:
            5px;
    }


    .vp-assistant-trigger-icon {
        width: 48px;
        height: 48px;

        flex-basis: 48px;
    }


    .vp-assistant-trigger-label {
        display: none;
    }


    .vp-assistant-panel {
        position: fixed;

        inset:
            12px
            12px
            12px
            12px;

        width: auto;
        height: auto;

        max-width: none;

        border-radius: 22px;

        transform-origin:
            bottom right;
    }


    .vp-assistant-invite {
        position: fixed;

        right: 14px;
        bottom: 84px;

        width:
            min(
                280px,
                calc(100vw - 28px)
            );
    }


    .vp-assistant-header {
        min-height: 78px;
    }


    .vp-assistant-body {
        padding:
            18px
            14px;
    }
}


.vp-whatsapp-link {
    color: #1a9c4b;

    font-weight: 800;

    text-decoration: none;
}

.vp-whatsapp-link:hover {
    text-decoration: underline;
}


/* =========================================================
   BOTÃO — OCULTAR QUANDO O PAINEL ESTIVER ABERTO
   ========================================================= */

.vp-assistant[data-open="true"]
.vp-assistant-trigger {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(10px)
        scale(0.94);
}


/* =========================================================
   AÇÕES DINÂMICAS
   ========================================================= */

.vp-chat-actions {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 10px;
}


.vp-chat-action {
    width: 100%;

    min-height: 42px;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--white);

    color: var(--blue-900);

    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.vp-chat-action:hover {
    transform: translateY(-1px);

    border-color:
        rgba(180, 145, 72, 0.45);

    background:
        var(--gold-100);

    box-shadow:
        0 6px 15px
        rgba(23, 58, 78, 0.07);
}


.vp-chat-action i {
    width: 18px;

    color: var(--gold-700);

    text-align: center;
}


.vp-chat-action-primary {
    border-color:
        rgba(180, 145, 72, 0.55);

    background:
        linear-gradient(
            135deg,
            var(--gold-100),
            #fffaf0
        );
}


/* =========================================================
   DETALHE DO SERVIÇO
   ========================================================= */

.vp-service-detail {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.vp-service-title {
    color: var(--blue-900);

    font-size: 0.98rem;
}


.vp-service-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 3px;
}


.vp-service-meta span {
    padding: 5px 8px;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    border:
        1px solid
        rgba(40, 86, 109, 0.12);

    border-radius: 999px;

    background:
        var(--blue-50);

    color:
        var(--blue-800);

    font-size:
        0.74rem;

    font-weight:
        650;
}


.vp-service-meta i {
    color:
        var(--gold-700);
}


/* =========================================================
   COMPARAÇÃO
   ========================================================= */

.vp-comparison {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin:
        10px 0;
}


.vp-comparison-item {
    padding:
        9px 10px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 8px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size:
        0.77rem;
}


.vp-comparison-item strong {
    color:
        var(--blue-900);
}


.vp-comparison-item span {
    color:
        var(--muted);

    white-space:
        nowrap;
}


/* =========================================================
   TEXTO AUXILIAR
   ========================================================= */

.vp-chat-small {
    margin-top: 8px;

    color: var(--muted);

    font-size: 0.75rem;

    line-height: 1.45;
}