﻿.obial-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.obial-chat-toggle {
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f5c8c 0%, #0b3d5d 100%);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(15, 92, 140, 0.35);
    cursor: pointer;
}

.obial-chat-panel {
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: none;
    flex-direction: column;
    margin-bottom: 12px;
}

    .obial-chat-panel.active {
        display: flex;
    }

.obial-chat-header {
    background: linear-gradient(135deg, #0f5c8c 0%, #0b3d5d 100%);
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.obial-chat-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}

.obial-chat-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.obial-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f6f8fb;
}

.obial-chat-message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 14px;
}

    .obial-chat-message.assistant {
        background: #fff;
        color: #1f2937;
        border: 1px solid #e5e7eb;
    }

    .obial-chat-message.user {
        background: #0f5c8c;
        color: #fff;
        margin-left: auto;
    }

.obial-chat-input-area {
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    gap: 10px;
    align-items: end;
}

    .obial-chat-input-area textarea {
        flex: 1;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        resize: none;
        padding: 12px;
        font-size: 14px;
        outline: none;
    }

    .obial-chat-input-area button {
        border: none;
        border-radius: 12px;
        background: #0f5c8c;
        color: #fff;
        padding: 12px 16px;
        font-weight: 600;
        cursor: pointer;
    }

@media (max-width: 768px) {
    .obial-chat-widget {
        right: 12px;
        bottom: 12px;
    }

    .obial-chat-panel {
        width: calc(100vw - 24px);
        height: 72vh;
    }

    .obial-chat-toggle {
        width: 58px;
        height: 58px;
    }
}
