/* Help Chatbot widget styles */
.help-chatbot-root {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 1080;
    font-family: inherit;
}

.help-chatbot-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: #2b1a52;
    color: #fff;
    box-shadow: 0 6px 18px rgba(43, 26, 82, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.help-chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(43, 26, 82, 0.45);
}

.help-chatbot-toggle-icon-close { display: none; }

.help-chatbot-root.is-open .help-chatbot-toggle-icon-open { display: none; }
.help-chatbot-root.is-open .help-chatbot-toggle-icon-close { display: inline-block; }

.help-chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 350px;
    max-width: calc(100vw - 24px);
    height: 480px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.help-chatbot-root.is-open .help-chatbot-panel {
    display: flex;
}

.help-chatbot-header {
    background: #2b1a52;
    color: #fff;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.help-chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.help-chatbot-header-text {
    flex: 1;
    min-width: 0;
}

.help-chatbot-header-title {
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
}

.help-chatbot-header-subtitle {
    font-size: 11.5px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.help-chatbot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35d16b;
    display: inline-block;
}

.help-chatbot-header-close {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.85;
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
}

.help-chatbot-header-close:hover { opacity: 1; }

.help-chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    background: #f4f5fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-chatbot-bubble-row {
    display: flex;
    width: 100%;
}

.help-chatbot-bubble-row.bot { justify-content: flex-start; }
.help-chatbot-bubble-row.user { justify-content: flex-end; }

.help-chatbot-bubble {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.help-chatbot-bubble-row.bot .help-chatbot-bubble {
    background: #fff;
    color: #262338;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.help-chatbot-bubble-row.user .help-chatbot-bubble {
    background: #2b1a52;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.help-chatbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
}

.help-chatbot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b7b3c9;
    display: inline-block;
    animation: help-chatbot-blink 1.2s infinite ease-in-out;
}

.help-chatbot-typing span:nth-child(2) { animation-delay: .2s; }
.help-chatbot-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes help-chatbot-blink {
    0%, 80%, 100% { opacity: .3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

.help-chatbot-composer {
    flex-shrink: 0;
    border-top: 1px solid #ece9f5;
    padding: 10px;
    background: #fff;
}

.help-chatbot-composer-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.help-chatbot-composer select,
.help-chatbot-composer input[type="text"],
.help-chatbot-composer input[type="email"],
.help-chatbot-composer input[type="tel"] {
    border: 1px solid #ddd9ec;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
}

.help-chatbot-composer input[type="text"],
.help-chatbot-composer input[type="email"],
.help-chatbot-composer input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.help-chatbot-composer textarea {
    width: 100%;
    border: 1px solid #ddd9ec;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 13px;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 90px;
}

.help-chatbot-composer select.help-chatbot-country-select {
    flex-shrink: 0;
    width: 92px;
}

.help-chatbot-composer select.help-chatbot-select-field {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.help-chatbot-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #2b1a52;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.help-chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.help-chatbot-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-chatbot-choice-btn {
    border: 1px solid #2b1a52;
    color: #2b1a52;
    background: #fff;
    border-radius: 18px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.help-chatbot-choice-btn:hover,
.help-chatbot-choice-btn.is-selected {
    background: #2b1a52;
    color: #fff;
}

.help-chatbot-field-error {
    color: #d9455f;
    font-size: 11.5px;
    margin-top: 4px;
    padding: 0 4px;
}

.help-chatbot-restart-row {
    padding-top: 4px;
    text-align: center;
}

.help-chatbot-restart-btn {
    border: none;
    background: transparent;
    color: #2b1a52;
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 420px) {
    .help-chatbot-root {
        right: 12px;
        bottom: 78px;
    }
    .help-chatbot-panel {
        width: calc(100vw - 20px);
        right: -6px;
    }
}
