.ipano-help-widget {
    --ipano-accent: #3b82f6;
    --ipano-accent-strong: #2563eb;
    --ipano-accent-soft: #1f2937;
    --ipano-accent-border: #2b3a52;
    --ipano-bg: #0f1724;
    --ipano-panel: #111c2b;
    --ipano-panel-2: #162336;
    --ipano-text: #e6edf7;
    --ipano-muted: #9db0cc;
    border: 1px solid var(--ipano-accent-border);
    border-radius: 10px;
    background: var(--ipano-bg);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.ipano-help-widget .ipano-head {
    padding: 0.5rem 0.7rem;
    background: #132033;
    border-bottom: 1px solid var(--ipano-accent-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ipano-help-widget .ipano-head [data-role="clear"] {
    background: #1b2a3f !important;
    color: #c8d8ef !important;
    border: 1px solid #2b3a52 !important;
}

.ipano-help-widget .ipano-head [data-role="clear"]:hover {
    background: #223752 !important;
    color: #e6edf7 !important;
}

.ipano-help-widget .ipano-title {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--ipano-accent-strong);
}

.ipano-help-widget .ipano-chat {
    height: 72px;
    min-height: 72px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.7rem;
    background: #0f1724;
}

.ipano-help-widget .ipano-msg {
    margin-bottom: 0.75rem;
    display: flex;
}

.ipano-help-widget .ipano-msg.user {
    justify-content: flex-end;
}

.ipano-help-widget .ipano-msg.bot {
    justify-content: flex-start;
}

.ipano-help-widget .ipano-bubble {
    max-width: 86%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 0.92rem;
    white-space: normal;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.ipano-help-widget .ipano-msg.user .ipano-bubble {
    background: var(--ipano-accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ipano-help-widget .ipano-msg.bot .ipano-bubble {
    background: var(--ipano-panel-2);
    color: var(--ipano-text);
    border: 1px solid var(--ipano-accent-border);
    border-bottom-left-radius: 4px;
}

.ipano-help-widget .ipano-composer {
    padding: 0.55rem;
    background: var(--ipano-panel);
    border-top: 1px solid var(--ipano-accent-border);
}

.ipano-help-widget .ipano-input-wrap {
    position: relative;
}

.ipano-help-widget .ipano-question {
    padding-right: 2.7rem !important;
    resize: none;
    min-height: 34px;
    max-height: 130px;
    overflow-y: hidden;
    background: #0f1724 !important;
    color: var(--ipano-text) !important;
    border-color: #29415f !important;
}

.ipano-help-widget .ipano-question::placeholder {
    color: var(--ipano-muted) !important;
}

.ipano-help-widget .ipano-send {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    border-radius: 999px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ipano-accent) !important;
    color: #fff !important;
}

.ipano-help-widget .ipano-send:hover {
    background: var(--ipano-accent-strong) !important;
}

.ipano-help-widget .ipano-send i.icon {
    margin: 0 !important;
    font-size: 0.82rem;
}

.ipano-help-widget .ipano-render p {
    margin: 0 0 0.5rem 0;
}

.ipano-help-widget .ipano-render ul,
.ipano-help-widget .ipano-render ol {
    margin: 0.3rem 0 0.5rem 1.1rem;
    padding: 0;
}

.ipano-help-widget .ipano-render li {
    margin: 0.2rem 0;
}

.ipano-help-widget .ipano-render a {
    color: var(--ipano-accent-strong);
    text-decoration: underline;
}

.ipano-help-widget .ipano-render p,
.ipano-help-widget .ipano-render li,
.ipano-help-widget .ipano-render strong,
.ipano-help-widget .ipano-render code {
    color: var(--ipano-text);
}

.ipano-help-widget .typing {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    min-height: 1rem;
}

.ipano-help-widget .typing span {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #7b9fe0;
    display: inline-block;
    animation: ipano-typing-bounce 1s infinite ease-in-out;
}

.ipano-help-widget .ipano-question:focus {
    border-color: var(--ipano-accent) !important;
    box-shadow: 0 0 0 2px rgba(31, 111, 229, 0.15) !important;
}

.ipano-help-widget .ipano-chat::-webkit-scrollbar {
    width: 8px;
}

.ipano-help-widget .ipano-chat::-webkit-scrollbar-thumb {
    background: #284267;
    border-radius: 999px;
}

.ipano-help-widget .ipano-chat::-webkit-scrollbar-track {
    background: #101a2a;
}

.ipano-help-widget .typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.ipano-help-widget .typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes ipano-typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .ipano-help-widget .ipano-title {
        font-size: 0.9rem !important;
    }
}
