/* =========================================================
   ATENDIMENTO FLUTUANTE - SAAE PASSOS
   ========================================================= */

.floating-service {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9998;

    display: flex;
    align-items: flex-end;
    gap: 12px;
}


/* =========================================================
   BOTÃO FLUTUANTE
   ========================================================= */
.floating-service-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    padding: 8px;
    border: 1px solid rgba(0, 91, 172, 0.18);
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(0, 59, 115, .22);
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.floating-service-button:hover {
    transform: translateY(-3px) scale(1.03);
    background: #f5faff;
    box-shadow:
        0 15px 34px rgba(0, 59, 115, .30);
}


.floating-service-button img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}


/* =========================================================
   TEXTO "PRECISA DE AJUDA?"
   ========================================================= */
.floating-service-hint {
    position: absolute;
    right: 78px;
    bottom: 9px;
    padding: 11px 15px;
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 12px;
    color: #003B73;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow:
        0 8px 22px rgba(0, 59, 115, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: .2s ease;
}

.floating-service:hover .floating-service-hint {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.floating-service.is-open .floating-service-hint {
    opacity: 0;
    visibility: hidden;
}


/* =========================================================
   PAINEL
   ========================================================= */
.floating-service-panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: 390px;
    max-height: min(650px, calc(100vh - 120px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 20px;
    box-shadow:
        0 22px 55px rgba(0, 45, 90, .25);
    opacity: 0;
    visibility: hidden;
    transform:
        translateY(15px) scale(.97);
    transform-origin: bottom right;
    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s ease;
}

.floating-service.is-open .floating-service-panel {
    opacity: 1;
    visibility: visible;
    transform:
        translateY(0) scale(1);
}

/* =========================================================
   CABEÇALHO
   ========================================================= */
.floating-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg,
            #003B73,
            #005BAC);
    color: #ffffff;
}

.floating-service-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-service-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 5px;
    background: #ffffff;
    border-radius: 14px;
}

.floating-service-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-service-header-info strong {
    display: block;
    margin-bottom: 3px;
    font-size: 16px;
}

.floating-service-header-info small {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.floating-service-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.floating-service-close:hover {
    background: rgba(255, 255, 255, .22);
}

/* =========================================================
   INTRO
   ========================================================= */
.floating-service-intro {
    padding: 18px 20px 14px;
    background: #f6faff;
    border-bottom: 1px solid #e3ecf5;
}

.floating-service-intro p {
    margin: 0;
    color: #003B73;
}

.floating-service-intro p:first-child {
    margin-bottom: 4px;
    font-weight: 700;
}

.floating-service-intro p:nth-child(2) {
    font-size: 17px;
    font-weight: 800;
}

.floating-service-intro span {
    display: block;
    margin-top: 5px;
    color: #64748B;
    font-size: 12px;
}


/* =========================================================
   OPÇÕES
   ========================================================= */

.floating-service-options {
    max-height: 410px;
    padding: 10px;
    overflow-y: auto;
}

.floating-service-option {
    display: grid;
    grid-template-columns:
        44px minmax(0, 1fr) 20px;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition:
        background .2s ease,
        transform .2s ease;
}

.floating-service-option:hover {
    background: #edf6ff;
    transform: translateX(2px);
}

.floating-service-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #e8f3fd;
    border-radius: 12px;
    font-size: 20px;
}

.floating-service-option-text {
    min-width: 0;
}

.floating-service-option-text strong {
    display: block;
    margin-bottom: 3px;
    color: #003B73;
    font-size: 14px;
}

.floating-service-option-text small {
    display: block;
    color: #6b7889;
    font-size: 11px;
    line-height: 1.35;
}

.floating-service-arrow {
    color: #4080b8;
    font-size: 22px;
    text-align: center;
}


/* =========================================================
   RODAPÉ
   ========================================================= */
.floating-service-footer {
    padding: 15px 20px;
    background: #f4f8fc;
    border-top: 1px solid #dde7f0;
}

.floating-service-footer span {
    display: block;
    margin-bottom: 5px;
    color: #64748B;
    font-size: 11px;
}

.floating-service-footer a {
    color: #005BAC;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.floating-service-footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   SCROLL
   ========================================================= */
.floating-service-options::-webkit-scrollbar {
    width: 6px;
}

.floating-service-options::-webkit-scrollbar-track {
    background: transparent;
}

.floating-service-options::-webkit-scrollbar-thumb {
    background: #c2d5e8;
    border-radius: 999px;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
    .floating-service {
        right: 16px;
        bottom: 18px;
    }

    .floating-service-panel {
        position: fixed;
        right: 12px;
        bottom: 94px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 120px);
        border-radius: 18px;
    }

    .floating-service-button {
        width: 60px;
        height: 60px;
    }

    .floating-service-button img {
        width: 42px;
        height: 42px;
    }

    .floating-service-hint {
        display: none;
    }
}

.floating-service-ai {
    width: 100%;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.floating-service-ai .floating-service-arrow {
    justify-self: end;
}

/* =========================================================
   BOTÃO ORIGINAL DO CHATBOT MAPLOG
   Ocultamos porque usamos o botão do próprio portal
   ========================================================= */

.vox-chat-float__button {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}