.pylvion-chat-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pylvion-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}


.pylvion-chat-window {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.06);

    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}


.pylvion-chat-window.open {
    display: flex;
}


.pylvion-chat-header {
    padding: 18px 20px;
    background: #111827;
    color: #ffffff;
}

.pylvion-chat-header strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pylvion-chat-header span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #cbd5e1;
}


.pylvion-chat-messages {
    flex: 1;
    padding: 20px;

    overflow-y: auto;

    background: #f8fafc;
}


.pylvion-chat-message {
    max-width: 82%;
    margin-bottom: 12px;

    padding: 11px 14px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.5;
}


.pylvion-chat-message.bot {
    margin-right: auto;

    background: #ffffff;
    border: 1px solid #e5e7eb;

    color: #1f2937;
}


.pylvion-chat-message.user {
    margin-left: auto;

    background: #111827;
    color: #ffffff;
}


.pylvion-chat-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-top: 14px;
}


.pylvion-chat-quick-actions button {
    width: 100%;

    padding: 11px 14px;

    background: #ffffff;
    color: #1f2937;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    text-align: left;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.pylvion-chat-quick-actions button:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}


.pylvion-chat-form {
    display: flex;
    gap: 8px;

    padding: 12px;

    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}


.pylvion-chat-input {
    flex: 1;
    min-width: 0;

    padding: 11px 13px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: #ffffff;
    color: #111827;

    font-size: 14px;

    outline: none;

    transition: border-color 0.15s ease;
}


.pylvion-chat-input:focus {
    border-color: #6b7280;
}


.pylvion-chat-input::placeholder {
    color: #9ca3af;
}


.pylvion-chat-send {
    border: 0;

    padding: 11px 16px;

    border-radius: 10px;

    background: #111827;
    color: #ffffff;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}


.pylvion-chat-send:hover {
    background: #1f2937;
    transform: translateY(-1px);
}


@media (max-width: 520px) {

    .pylvion-chat-button {
        right: 16px;
        bottom: 16px;
    }

    .pylvion-chat-window {
        right: 16px;
        bottom: 84px;

        width: calc(100vw - 32px);
        height: min(560px, calc(100vh - 110px));

        border-radius: 16px;
    }

}
