/* TEYA ChatBot — floating widget */

.teya-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    font-family: Arial, sans-serif;
}

.teya-chatbot *,
.teya-chatbot *::before,
.teya-chatbot *::after {
    box-sizing: border-box;
}

.teya-chatbot__button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: #f4c400;
    color: #252525;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.teya-chatbot__button:hover {
    background: #ffdb35;
}

.teya-chatbot__window {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 370px;
    height: 480px;
    max-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.teya-chatbot__window[hidden] {
    display: none;
}

.teya-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    background: #292929;
    color: #fff;
}

.teya-chatbot__title {
    font-size: 16px;
    font-weight: 700;
}

.teya-chatbot__close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.teya-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.teya-chatbot__message {
    padding: 13px 15px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.teya-chatbot__message--bot {
    background: #fff0a8;
    color: #292929;
}

.teya-chatbot__message--user {
    background: #e8e8e8;
    color: #292929;
    margin-left: 30px;
}

.teya-chatbot__form {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid #eee;
}

.teya-chatbot__input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 9px;
    font: inherit;
}

.teya-chatbot__send {
    padding: 10px 15px;
    border: none;
    border-radius: 9px;
    background: #f4c400;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 480px) {
    .teya-chatbot {
        right: 12px;
        bottom: 12px;
    }

    .teya-chatbot__window {
        width: calc(100vw - 24px);
        height: min(520px, calc(100dvh - 110px));
        bottom: 70px;
    }

    .teya-chatbot__button {
        padding: 13px 16px;
    }
}