/* Floating conversational lead form */
.health-chatbot,
.health-chatbot * {
    box-sizing: border-box
}

.health-chatbot button,
.health-chatbot input {
    font: inherit
}

.health-chatbot button {
    cursor: pointer
}

.health-chatbot {
    --chat-blue: #043eb8;
    --chat-teal: #08afbb;
    --chat-pale: #f2f5fa;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 140;
    font-family: 'DM Sans', Arial, sans-serif
}

.health-chat-launcher {
    position: relative;
    display: block;
    width: 79px;
    height: 79px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--chat-blue);
    color: #fff;
    filter: drop-shadow(0 10px 18px rgba(0, 54, 170, .25));
    transition: transform .2s ease, filter .2s ease
}

.health-chat-launcher:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 13px 22px rgba(0, 54, 170, .34))
}

.health-chat-launcher:focus-visible,
.health-chat-panel button:focus-visible,
.health-chat-panel a:focus-visible {
    outline: 3px solid rgba(8, 175, 187, .45);
    outline-offset: 2px
}

.health-chat-launcher img {
    display: block;
    width: 79px;
    height: 79px;
    object-fit: contain;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--chat-blue), var(--chat-teal))
}

.health-chat-notification {
    position: absolute;
    top: -3px;
    right: -3px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #51c5a4;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none
}

.health-chat-panel {
    display: none;
    width: 360px
}

.health-chat-panel.is-open {
    display: block;
    animation: healthChatOpen .24s ease-out
}

@keyframes healthChatOpen {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.health-chat-intro {
    position: relative;
    width: 360px;
    min-height: 188px;
    padding: 27px 21px 21px;
    border: 1px solid #dfe7f2;
    border-radius: 27px 27px 5px 27px;
    background: #fff;
    box-shadow: 0 0 0 2px var(--chat-blue), 0 18px 45px rgba(0, 54, 170, .27)
}

.health-chat-intro-close {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--chat-blue);
    color: #fff;
    font-size: 22px;
    line-height: 22px;
    font-weight: 400
}

.health-chat-intro-copy {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--chat-blue)
}

.health-chat-intro-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.12
}

.health-chat-intro-avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, var(--chat-blue), var(--chat-teal));
    position: relative
}

.health-chat-intro-avatar img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    position: absolute;
    left: -5px;
    top: 3px
}

.health-chat-intro-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 17px
}

.health-chat-intro-actions a,
.health-chat-intro-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none
}

.health-chat-support {
    background: var(--chat-blue)
}

.health-chat-start {
    background: var(--chat-teal)
}

.health-chat-window {
    width: 320px;
    height: 630px;
    min-height: 520px;
    border-radius: 26px 26px 22px 22px;
    background: #fff;
    box-shadow: 0 19px 48px rgba(0, 54, 170, .3)
}

.health-chat-window[hidden],
.health-chat-intro[hidden] {
    display: none
}

.health-chat-header {
    height: 68px;
    padding: 0 18px 0 27px;
    background: var(--chat-blue);
    border-radius: 20px 20px 0 0;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative
}

.health-chat-header strong {
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap
}

.health-chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap
}

.health-chat-status i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16d3cd
}

.health-chat-close {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 22px;
    height: 22px;
    padding: 0;
    z-index: 111;
    border: 0;
    border-radius: 50%;
    background: #f21a25;
    color: #fff;
    font-size: 20px;
    line-height: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.health-chat-form {
    height: calc(100% - 68px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.health-chat-body {
    flex: 1;
    min-height: 125px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd6e5 transparent
}

.health-chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 14px
}

.health-chat-message-bot {
    justify-content: flex-start
}

.health-chat-message-user {
    justify-content: flex-end
}

.health-chat-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #e0e7f1;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f8fc;
    position: relative
}

.health-chat-avatar img {
    display: block;
    width: 48px;
    height: 48px;
    max-width: none;
    object-fit: contain;
    position: absolute;
    left: -4px;
    top: 2px
}

.health-chat-bubble {
    max-width: 240px;
    padding: 13px 15px;
    border-radius: 16px 16px 16px 3px;
    background: var(--chat-pale);
    color: #151515;
    font-size: 13px;
    line-height: 1.4;
    text-align: left
}

.health-chat-bubble small {
    display: block;
    color: #5d6f8e;
    font-size: 10px;
    line-height: 1.3
}

.health-chat-message-user .health-chat-bubble {
    padding: 13px 17px;
    border-radius: 17px 17px 3px 17px;
    background: var(--chat-blue);
    color: #fff
}

.health-chat-note {
    margin: -3px 0 14px;
    padding: 0;
    color: #5d6f8e;
    font-size: 10px;
    line-height: 1.3
}

.health-chat-thinking .health-chat-bubble {
    padding: 13px 17px
}

.health-chat-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 10px
}

.health-chat-dots i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #92a2b8;
    animation: healthChatDot 1s infinite ease-in-out
}

.health-chat-dots i:nth-child(2) {
    animation-delay: .12s
}

.health-chat-dots i:nth-child(3) {
    animation-delay: .24s
}

@keyframes healthChatDot {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-3px)
    }
}

.health-chat-controls {
    flex: 0 0 auto;
    padding: 7px 16px 17px;
}

.health-chat-controls-options {
    display: grid;
    gap: 7px;
    max-height: 355px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd6e5 transparent
}

.health-chat-option {
    width: 100%;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #d7e0eb;
    border-radius: 999px;
    background: #fff;
    color: #151515;
    font-size: 13px !important;
    line-height: 1.15;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease
}

.health-chat-option:hover,
.health-chat-option.is-selected {
    border-color: var(--chat-teal);
    background: var(--chat-teal);
    color: #fff;
    font-weight: 700
}

.health-chat-option:disabled:not(.is-selected) {
    opacity: .58
}

.health-chat-privacy-link {
    color: inherit;
    cursor: pointer;
    text-decoration: underline
}

.health-chat-controls-fields {
    padding-top: 6px
}

.health-chat-controls-fields label {
    display: block;
    margin: 0 0 7px;
    color: #5d6f8e;
    font-size: 11px;
    font-weight: 700
}

.health-chat-controls-fields input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d4deeb;
    border-radius: 12px;
    background: #fff;
    color: #151515;
    font-size: 12px;
    outline: 0
}

.health-chat-controls-fields input::placeholder {
    color: #93a4bc
}

.health-chat-controls-fields input.has-error {
    border-color: #dd3345
}

.health-chat-input-error {
    min-height: 14px;
    margin: 3px 0 2px;
    color: #c92839;
    font-size: 10px
}

.health-chat-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    min-height: 40px;
    margin: 5px auto 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--chat-teal);
    color: #fff;
    font-size: 13px;
    font-weight: 700
}

.health-chat-body.is-success {
    padding: 0;
    display: flex;
    overflow: hidden
}

.health-chat-success {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 16px;
    text-align: center
}

.health-chat-success>img {
    width: 120px;
    height: 145px;
    object-fit: contain;
    margin: 0 auto 8px
}

.health-chat-success>div {
    width: 100%;
    padding: 18px 18px 12px;
    border: 1px solid var(--chat-blue);
    border-radius: 19px;
    background: #f2f5fb;
    color: #151515;
    font-size: 13px;
    line-height: 1.5
}

.health-chat-success strong {
    display: block;
    margin-bottom: 17px;
    font-weight: 400
}

.health-chat-success p {
    margin: 0 0 4px
}

.health-chat-success>span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    color: var(--chat-teal);
    font-size: 12px;
    font-weight: 700
}

.health-chat-success>span:after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(8, 175, 187, .25);
    border-top-color: var(--chat-teal);
    border-radius: 50%;
    animation: healthChatSpin .8s linear infinite
}

@keyframes healthChatSpin {
    to {
        transform: rotate(360deg)
    }
}

@media (max-width:600px) {
    .health-chatbot {
        right: 10px;
        bottom: 10px
    }

    .health-chat-launcher {
        width: 79px;
        height: 79px;
        padding: 0
    }

    .health-chat-panel,
    .health-chat-intro {
        width: min(350px, calc(100vw - 20px))
    }

    .health-chat-window {
        width: calc(100vw - 20px);
        height: calc(100dvh - 20px);
        max-height: none;
        min-height: 0;
        border-radius: 23px
    }

    .health-chat-header {
        height: 64px;
        padding-left: 20px
    }

    .health-chat-header strong {
        font-size: 13px
    }

    .health-chat-form {
        height: calc(100% - 64px)
    }

    .health-chat-body {
        padding-left: 14px;
        padding-right: 14px
    }

    .health-chat-controls {
        padding-left: 14px;
        padding-right: 14px
    }

    .health-chat-controls-options {
        max-height: 355px
    }
}

@media (prefers-reduced-motion:reduce) {

    .health-chat-panel.is-open,
    .health-chat-dots i,
    .health-chat-success>span:after {
        animation: none
    }
}
@media(max-width: 500px){
.health-chat-window {
        width: 100%;
    }
}
