.wt-ai-assistant {
    bottom: 24px;
    position: fixed;
    right: 24px;
    z-index: 1040;
}

.wt-ai-assistant__button {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(18, 50, 92, .16);
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(18, 50, 92, .18);
    color: #12325c;
    display: flex;
    font-weight: 700;
    gap: 10px;
    min-height: 54px;
    padding: 7px 18px 7px 7px;
}

.wt-ai-assistant__avatar {
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(18, 50, 92, .18);
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.wt-ai-assistant__panel {
    background: #ffffff;
    border: 1px solid rgba(18, 50, 92, .14);
    border-radius: 8px;
    bottom: 64px;
    box-shadow: 0 22px 64px rgba(18, 50, 92, .22);
    display: flex;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 120px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(380px, calc(100vw - 32px));
}

.wt-ai-assistant__header {
    align-items: center;
    border-bottom: 1px solid rgba(18, 50, 92, .10);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}


.wt-ai-assistant__header-avatar {
    border-radius: 999px;
    height: 44px;
    object-fit: cover;
    width: 44px;
}
.wt-ai-assistant__header strong,
.wt-ai-assistant__header span {
    display: block;
}

.wt-ai-assistant__header span {
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
}

.wt-ai-assistant__close {
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
}

.wt-ai-assistant__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
}

.wt-ai-assistant__message {
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    max-width: 88%;
    padding: 10px 12px;
    white-space: pre-wrap;
}

.wt-ai-assistant__message--assistant {
    align-self: flex-start;
    background: #f1f5f9;
    color: #102033;
}

.wt-ai-assistant__message--user {
    align-self: flex-end;
    background: #2563eb;
    color: #ffffff;
}

.wt-ai-assistant__form {
    border-top: 1px solid rgba(18, 50, 92, .10);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    padding: 12px;
}

.wt-ai-assistant__form textarea {
    border: 1px solid rgba(18, 50, 92, .18);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    min-height: 44px;
    padding: 10px;
    resize: none;
}

.wt-ai-assistant__form button {
    align-self: end;
    background: #12325c;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    min-height: 44px;
    padding: 0 14px;
}

@media (max-width: 575.98px) {
    .wt-ai-assistant {
        bottom: 16px;
        right: 16px;
    }

    .wt-ai-assistant__button-text {
        display: none;
    }
}