.eb3-chatbot {
    --chat-navy: #263d72;
    --chat-red: #951719;
    --chat-ink: #1f2733;
    --chat-muted: #667085;
    --chat-line: #dce3ee;
    --chat-soft: #f7f9fc;
    font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
}

.eb3-chatbot * {
    box-sizing: border-box;
}

.eb3-chatbot__button {
    align-items: center;
    background: var(--chat-navy);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(38, 61, 114, .28);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: 800 15px/1 Montserrat, system-ui, sans-serif;
    gap: 10px;
    height: 58px;
    justify-content: center;
    min-height: 58px;
    padding: 0;
    position: relative;
    width: 58px;
}

.eb3-chatbot__button::after {
    background: var(--chat-red);
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
    height: 13px;
    position: absolute;
    right: 3px;
    top: 3px;
    width: 13px;
}

.eb3-chatbot__button:focus-visible,
.eb3-chatbot__close:focus-visible,
.eb3-chatbot__submit:focus-visible,
.eb3-chatbot__accept:focus-visible {
    outline: 3px solid rgba(38, 61, 114, .32);
    outline-offset: 3px;
}

.eb3-chatbot__button-icon {
    align-items: center;
    animation: eb3-chat-pulse 1.8s ease-in-out infinite;
    background: transparent;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 31px;
    height: 42px;
    justify-content: center;
    width: 30px;
}

@keyframes eb3-chat-pulse {
    0%, 100% { opacity: .72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.eb3-chatbot__panel {
    background: #fff;
    border: 1px solid var(--chat-line);
    border-radius: 18px;
    bottom: 72px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .24);
    display: none;
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(390px, calc(100vw - 28px));
}

.eb3-chatbot.is-open .eb3-chatbot__panel {
    display: block;
}

.eb3-chatbot__header {
    align-items: center;
    background: var(--chat-navy);
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.eb3-chatbot__title {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .01em;
    margin: 0;
}

.eb3-chatbot__subtitle {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 700;
    margin: 4px 0 0;
}

.eb3-chatbot__close {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.eb3-chatbot__body {
    padding: 18px;
}

.eb3-chatbot__disclaimer {
    color: var(--chat-ink);
    font-size: 13px;
    line-height: 1.58;
}

.eb3-chatbot__question-cloud {
    align-items: center;
    border-bottom: 1px solid var(--chat-line);
    display: flex;
    flex-wrap: wrap;
    gap: 2px 7px;
    justify-content: center;
    margin: 0 0 14px;
    min-height: 108px;
    overflow: hidden;
    padding: 8px 18px 16px;
    position: relative;
}

.eb3-chatbot__question-cloud::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .64), rgba(255, 255, 255, 0) 68%);
    content: "";
    height: 96px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
}

.eb3-chatbot__question-cloud span {
    animation: eb3-chat-drift 4.6s ease-in-out infinite;
    display: inline-block;
    font-weight: 900;
    line-height: 1;
    opacity: .68;
    position: relative;
}

.eb3-chatbot__question-cloud span:nth-child(2n) {
    animation-delay: -.8s;
}

.eb3-chatbot__question-cloud span:nth-child(3n) {
    animation-delay: -1.7s;
}

.eb3-chatbot__question-cloud span:nth-child(5n) {
    animation-delay: -2.5s;
}

.eb3-chatbot__question-cloud .is-xs { font-size: 14px; }
.eb3-chatbot__question-cloud .is-sm { font-size: 18px; }
.eb3-chatbot__question-cloud .is-md { font-size: 24px; }
.eb3-chatbot__question-cloud .is-lg { font-size: 32px; }
.eb3-chatbot__question-cloud .is-xl { font-size: 46px; }

.eb3-chatbot__question-cloud .is-blue { color: #6f8fc4; }
.eb3-chatbot__question-cloud .is-navy { color: #263d72; opacity: .58; }
.eb3-chatbot__question-cloud .is-light-blue { color: #a8c7ea; }
.eb3-chatbot__question-cloud .is-gray { color: #98a2b3; }
.eb3-chatbot__question-cloud .is-light-gray { color: #c9d1dc; }
.eb3-chatbot__question-cloud .is-green { color: #b8d7bf; }
.eb3-chatbot__question-cloud .is-pink { color: #e6b6c4; }

@keyframes eb3-chat-drift {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.eb3-chatbot__check {
    align-items: flex-start;
    background: var(--chat-soft);
    border: 1px solid var(--chat-line);
    border-radius: 12px;
    color: var(--chat-ink);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    line-height: 1.45;
    margin: 14px 0;
    padding: 12px;
}

.eb3-chatbot__check input {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.eb3-chatbot__accept,
.eb3-chatbot__submit {
    background: var(--chat-red);
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font: 900 13px/1 Montserrat, system-ui, sans-serif;
    min-height: 44px;
    padding: 0 16px;
}

.eb3-chatbot__accept:disabled,
.eb3-chatbot__submit:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.eb3-chatbot__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 2px;
}

.eb3-chatbot__msg {
    border-radius: 14px;
    color: var(--chat-ink);
    font-size: 13px;
    line-height: 1.55;
    max-width: 88%;
    padding: 11px 12px;
    white-space: pre-wrap;
}

.eb3-chatbot__msg--bot {
    align-self: flex-start;
    background: #eef3fb;
    border: 1px solid #d8e2f2;
}

.eb3-chatbot__msg--user {
    align-self: flex-end;
    background: var(--chat-navy);
    color: #fff;
}

.eb3-chatbot__composer {
    border-top: 1px solid var(--chat-line);
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
}

.eb3-chatbot__textarea {
    border: 1px solid var(--chat-line);
    border-radius: 12px;
    color: var(--chat-ink);
    font: 600 13px/1.45 Montserrat, system-ui, sans-serif;
    min-height: 82px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.eb3-chatbot__submit {
    align-items: center;
    align-self: stretch;
    background: var(--chat-navy);
    border-radius: 12px;
    display: flex;
    font-size: 19px;
    justify-content: center;
    min-height: 82px;
    padding: 0;
}

.eb3-chatbot__submit::before {
    border-bottom: 8px solid transparent;
    border-left: 14px solid #fff;
    border-top: 8px solid transparent;
    content: "";
    display: block;
    height: 0;
    margin-left: 3px;
    width: 0;
}

.eb3-chatbot__submit:hover {
    background: #1f3261;
}

.eb3-chatbot__small {
    grid-column: 1 / -1;
    color: var(--chat-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}

.eb3-chatbot__error {
    color: var(--chat-red);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    margin-top: 10px;
}

@media (max-width: 620px) {
    .eb3-chatbot {
        bottom: 14px;
        right: 14px;
    }

    .eb3-chatbot__button-label {
        display: none;
    }

    .eb3-chatbot__button {
        min-height: 56px;
    }

    .eb3-chatbot__panel {
        bottom: 68px;
    }
}
