#ahs-chatbot-widget {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999999;
    font-family: inherit;
}

#ahs-chatbot-toggle {
    width: 78px;
    height: 78px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0057A8 0%, #006DCB 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(0, 87, 168, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#ahs-chatbot-toggle::before {
    content: "";
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(0, 87, 168, 0.18);
    animation: ahs-chatbot-pulse 1.9s ease-out infinite;
    z-index: -1;
}

#ahs-chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 22px 46px rgba(0, 87, 168, 0.44);
}

.ahs-chatbot-icon {
    width: 42px;
    height: 42px;
    display: block;
    fill: #ffffff;
}

#ahs-chatbot-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 96px;
    width: 410px;
    height: 610px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

#ahs-chatbot-panel.active {
    display: flex;
    flex-direction: column;
}

#ahs-chatbot-header {
    background: linear-gradient(135deg, #004E98 0%, #006ABF 100%);
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
}

.ahs-chatbot-title-wrap strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.ahs-chatbot-title-wrap span {
    display: block;
    font-size: 13px;
    opacity: 0.92;
    margin-top: 5px;
    line-height: 1.3;
}

#ahs-chatbot-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

#ahs-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(90deg);
}

#ahs-chatbot-frame {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
    background: #ffffff;
}

@keyframes ahs-chatbot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.68;
    }
    70% {
        transform: scale(1.34);
        opacity: 0;
    }
    100% {
        transform: scale(1.34);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    #ahs-chatbot-widget {
        right: 18px;
        bottom: 18px;
    }

    #ahs-chatbot-toggle {
        width: 68px;
        height: 68px;
    }

    #ahs-chatbot-toggle::before {
        width: 68px;
        height: 68px;
    }

    .ahs-chatbot-icon {
        width: 36px;
        height: 36px;
    }

    #ahs-chatbot-panel {
        width: calc(100vw - 36px);
        height: 76vh;
        right: 0;
        bottom: 86px;
        border-radius: 22px;
    }
}
