.chatbox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 123456;
}

.chatbox__support {
    display: none;
    flex-direction: column;
    width: 380px;
    height: 540px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow: hidden;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 123456;
}

.chatbox--active {
    display: flex;
}

.chatbox__header {
    background: linear-gradient(135deg, #4a7cf7, #6c5ce7);
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.chatbox__image--header {
    margin-right: 10px;
}

.chatbox__image--header img {
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    padding: 2px;
    width: 36px;
    height: 36px;
}

.chatbox__heading--header {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.chatbox__time--header {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.chatbox__close--header {
    margin-left: auto;
}

.chatbox__close--header button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.chatbox__messages {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    padding: 16px;
    background: #f5f5f5;
}

.messages__item {
    margin-top: 10px;
    padding: 10px 14px;
    max-width: 80%;
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.messages__item--bot {
    background: #e6e6e8;
    color: #222;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.messages__item--user {
    background: linear-gradient(135deg, #4a7cf7, #6c5ce7);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chatbox__footer {
    background: #fff;
    padding: 10px 14px;
    border-top: 1px solid #e0e0e0;
}

.chatbox__input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chatbox__input-container textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.88rem;
    resize: none;
    max-height: 100px;
    overflow-y: auto;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.chatbox__input-container textarea:focus {
    outline: none;
    border-color: #4a7cf7;
    box-shadow: 0 0 0 2px rgba(74,124,247,0.15);
}

.send__button {
    background: linear-gradient(135deg, #4a7cf7, #6c5ce7);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send__button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.chatbox__footer--small {
    font-size: 0.68rem;
    text-align: center;
    padding: 6px;
    background: #f5f5f5;
    color: #888;
}

.chatbox__footer--small a {
    color: #4a7cf7;
    text-decoration: none;
}

.chatbox__button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 123457;
}

.chatbox__button button {
    background: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    line-height: 1;
    transition: transform 0.2s;
}

.chatbox__button button:hover {
    transform: scale(1.1);
}

#chatbox-icon {
    width: 46px;
    height: 46px;
    display: block;
}
