.chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    font-family: inherit;
}

.chatbot-toggle,
.chatbot-form button {
    border: 0;
    background: #ff5500;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.chatbot-toggle:hover,
.chatbot-form button:hover {
    background: #ff7133;
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    display: flex;
    flex-direction: column;
    width: min(360px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid #ff5500;
    border-radius: 12px;
    background: #111;
    color: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55);
}

.chatbot-panel[hidden] {
    display: none !important;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, #1e1e1e, #090909);
}

.chatbot-header strong,
.chatbot-header span {
    display: block;
}

.chatbot-header span,
.chatbot-status {
    color: #aaa;
    font-size: 0.8rem;
}

.chatbot-close {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #ff5500;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.chatbot-close span {
    font-size: 1.5rem;
}

.chatbot-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
    max-height: 310px;
    overflow-y: auto;
    padding: 15px;
}

.chatbot-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.chatbot-message--assistant {
    align-self: flex-start;
    background: #242424;
}

.chatbot-message--user {
    align-self: flex-end;
    background: #ff5500;
}

.chatbot-link {
    display: block;
    margin-top: 8px;
    color: #ff8b5e;
    font-weight: 700;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 15px 12px;
}

.chatbot-suggestions button {
    border: 1px solid #555;
    border-radius: 999px;
    padding: 6px 9px;
    background: transparent;
    color: #ddd;
    cursor: pointer;
    font-size: 0.75rem;
}

.chatbot-suggestions button:hover {
    border-color: #ff5500;
    color: #fff;
}

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid #333;
}

.chatbot-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 9px;
    background: #090909;
    color: #fff;
}

.chatbot-form button {
    width: 38px;
    border-radius: 6px;
}

.chatbot-status {
    min-height: 18px;
    margin: 0;
    padding: 0 15px 10px;
}

@media (max-width: 480px) {
    .chatbot {
        right: 16px;
        bottom: 16px;
    }

    .chatbot-toggle-label {
        display: none;
    }

    .chatbot-toggle {
        width: 48px;
        height: 48px;
        justify-content: center;
        padding: 0;
    }
}
