﻿.ai-advisor {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    font-family: Arial, sans-serif;
}

.ai-advisor__toggle {
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ai-advisor__links {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.ai-advisor__links-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ai-advisor__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #f7f7f7;
    margin-bottom: 8px;
}

.ai-advisor__panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 680px;
    max-width: calc(100vw - 32px);
    height: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    display: none;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

    .ai-advisor__panel.is-open {
        display: flex;
        flex-direction: column;
    }

.ai-advisor__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 18px;
    border-bottom: 1px solid #ececec;
    background: #f8f8f8;
}

.ai-advisor__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ai-advisor__subtitle {
    font-size: 12px;
    color: #666;
}

.ai-advisor__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.ai-advisor__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #ffffff;
}

.ai-advisor__message {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
}

.ai-advisor__message--assistant {
    background: #f2f4f7;
    color: #222;
}

.ai-advisor__message--user {
    background: #111;
    color: #fff;
    margin-left: 40px;
}

.ai-advisor__message--meta {
    background: #f9fafb;
    color: #444;
    font-size: 12px;
    border: 1px solid #ececec;
}

.ai-advisor__composer {
    padding: 16px;
    border-top: 1px solid #ececec;
    background: #fafafa;
}

.ai-advisor__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.ai-advisor__input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d7d7d7;
    font-size: 14px;
}
.ai-advisor__input--textarea {
    min-height: 96px;
    resize: vertical;
}

.ai-advisor__send {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
}

    .ai-advisor__send:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

@media (max-width: 640px) {
    .ai-advisor {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .ai-advisor__toggle {
        width: 100%;
    }

    .ai-advisor__panel {
        right: 0;
        left: 0;
        width: auto;
        height: 70vh;
        bottom: 64px;
    }
}
