/* Assist FAB — placements, admission, chat */
.side-float-tabs {
    display: none !important;
}

/* Siona widget uses shadow DOM; hide host until user picks "Chat with us" */
#siona-chatbot-root {
    display: none !important;
}

body.milagres-chat-active #siona-chatbot-root {
    display: block !important;
}

/* Let Siona’s bottom-right launcher (close when open) sit above our FAB */
body.milagres-chat-panel-open .hr-assist-fab {
    visibility: hidden;
    pointer-events: none;
}

body.milagres-mobile-nav-open .hr-assist-fab {
    display: none !important;
}

.hr-assist-fab {
    display: block;
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 2147483001;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.hr-assist-fab__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(300px, calc(100vw - 36px));
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e8ebf3;
    box-shadow: 0 18px 48px rgba(22, 32, 72, 0.18);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}

.hr-assist-fab__menu::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-right: 1px solid #e8ebf3;
    border-bottom: 1px solid #e8ebf3;
    transform: rotate(45deg);
}

.hr-assist-fab.is-open .hr-assist-fab__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hr-assist-fab__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    border: 0;
    background: transparent;
    color: #152a6b;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
}

.hr-assist-fab__item:hover,
.hr-assist-fab__item:focus {
    background: #f4f6fc;
    color: #152a6b;
}

.hr-assist-fab__item + .hr-assist-fab__item {
    border-top: 1px solid #eef1f7;
}

.hr-assist-fab__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 20px;
}

.hr-assist-fab__icon--green {
    background: #e8faf3;
    color: #0f9b74;
}

.hr-assist-fab__icon--violet {
    background: #efedff;
    color: #5238f5;
}

.hr-assist-fab__icon--navy {
    background: #e9eef9;
    color: #2d3e8b;
}

.hr-assist-fab__toggle {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #2d3e8b;
    color: #fff;
    box-shadow: 0 12px 28px rgba(45, 62, 139, 0.38);
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hr-assist-fab__toggle:hover {
    background: #243468;
    transform: scale(1.03);
}

.hr-assist-fab__toggle .ph-x { display: none; }
.hr-assist-fab.is-open .hr-assist-fab__toggle .ph-chat-dots { display: none; }
.hr-assist-fab.is-open .hr-assist-fab__toggle .ph-x { display: block; }

.hr-assist-fab__toggle-fallback {
    display: none;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.hr-assist-fab__toggle:not(:has(.ph)) .hr-assist-fab__toggle-fallback {
    display: block;
}

@media (min-width: 992px) {
    .hr-assist-fab {
        right: 24px;
        bottom: 28px;
    }
}

@media (max-width: 480px) {
    .hr-assist-fab {
        right: 14px;
        bottom: 18px;
    }
    .hr-assist-fab__item {
        font-size: 14px;
        padding: 12px;
    }
}
