#zarya-ai-widget {
    direction: rtl;
    font-family: inherit;
}

#zarya-ai-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999990;
    width: 62px;
    height: 62px;
    border: 2px solid #c6a75b;
    border-radius: 50%;
    background: #0f8f8a;
    color: #fff;
    font: inherit;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .20);
}

#zarya-ai-toggle:focus-visible,
#zarya-ai-panel button:focus-visible,
#zarya-ai-input:focus-visible {
    outline: 3px solid #c6a75b;
    outline-offset: 2px;
}

#zarya-ai-panel {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 999991;
    display: flex;
    flex-direction: column;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100dvh - 130px);
    overflow: hidden;
    border: 1px solid rgba(11, 95, 90, .12);
    border-radius: 18px;
    background: #fff;
    color: #183c38;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .20);
    text-align: right;
}

#zarya-ai-panel.zarya-ai-hidden {
    display: none !important;
}

.zarya-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    background: #0b5f5a;
    color: #fff;
}

.zarya-ai-brand strong,
.zarya-ai-brand small {
    display: block;
}

.zarya-ai-brand strong {
    font-size: 16px;
}

.zarya-ai-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
}

#zarya-ai-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

#zarya-ai-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;
    overflow-y: auto;
    padding: 15px;
    background: #f7fafa;
}

.zarya-ai-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.zarya-ai-message.bot {
    align-self: flex-start;
    background: #e6f5f3;
    color: #174d43;
}

.zarya-ai-message.user {
    align-self: flex-end;
    background: #0f8f8a;
    color: #fff;
}

#zarya-ai-form {
    display: flex;
    gap: 8px;
    padding: 11px;
    border-top: 1px solid #e9eeee;
    background: #fff;
}

#zarya-ai-input {
    flex: 1;
    min-width: 0;
    max-height: 90px;
    resize: vertical;
    border: 1px solid #d7e1df;
    border-radius: 10px;
    padding: 9px 10px;
    color: #183c38;
    font: inherit;
    font-size: 13px;
    line-height: 1.7;
}

#zarya-ai-send {
    align-self: stretch;
    border: 0;
    border-radius: 10px;
    padding: 8px 13px;
    background: #0f8f8a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#zarya-ai-send:disabled {
    opacity: .55;
    cursor: wait;
}

.zarya-ai-footer {
    padding: 6px 10px 8px;
    background: #fff;
    color: #778581;
    font-size: 10px;
    text-align: center;
}

.zarya-ai-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    #zarya-ai-toggle {
        right: 16px;
        bottom: 16px;
    }

    #zarya-ai-panel {
        right: 8px;
        bottom: 88px;
        width: calc(100vw - 16px);
        max-width: none;
        height: min(520px, calc(100dvh - 110px));
    }
}
