#gines-tg-chat {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    font-family: Arial, sans-serif
}

@media (min-width: 992px) {
    #gines-tg-chat {
        right: 100px;
        width: 320px;
    }
}

#gines-tg-chat .panel {
    border: none;
    border-radius: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}

#gines-tg-chat .panel .panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #262626;
    border-color: #1f1f1f;
    border-radius: 0;
    margin-bottom: 0;
}

#gines-tg-chat .panel .panel-heading > span {
    color: white;
    font-weight: bold;
}

#gines-tg-chat .panel .panel-heading button {
    width: 53px;
}

#gines-tg-chat .gines-chat-toggle {
    background: #f58123;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer
}

#gines-tg-chat .gines-chat-window {
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2)
}

.gines-chat-header {
    background: #f5f5f5;
    padding: 10px;
    font-weight: bold
}

#gines-chat-messages {
    display: flex;
    flex-direction: column;
    height: 200px;
    max-height: 100%;
    overflow-y: auto;
    padding: 10px;
}

.msg.user {
    text-align: right;
    background: #f58123;
    color: #fff;
    margin: 5px;
    padding: 5px;
    border-radius: 6px
}

.msg.manager {
    text-align: left;
    background: #f0f0f0;
    margin: 5px;
    padding: 5px;
    border-radius: 6px
}

#gines-chat-form {
    display: flex;
    gap: 5px;
    padding: 10px;
    background-color: var(--bs-white);
}

#gines-chat-user-form {
    background-color: var(--bs-white);
}

#gines-chat-form .form-control,
#gines-chat-user-form .form-control {
    box-shadow: none;
}

#gines-chat-message {
    flex: 1
}

.gines-chat-send {
    background: #f58123;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer
}

#gines-tg-chat .card {
    --bs-card-cap-padding-y: .75rem;
    --bs-card-border-color: transparent;
    --bs-card-bg: transparent;
    --bs-border-radius: 1rem;
    --bs-card-cap-bg: var(--brand);
    --bs-card-cap-color: var(--bs-white);
    overflow: hidden;
}

#gines-tg-chat .card-header {
    cursor: pointer;
}

#gines-tg-chat .card .card-body {
    background-color: var(--bs-white);
}

#gines-tg-chat .msg {
    padding: 4px 8px;
    border-radius: 10px;
    margin-bottom: 4px;
    max-width: 90%;
    word-wrap: break-word;
    font-size: 0.875rem;
}

#gines-tg-chat .msg.user {
    background-color: #262626;
    align-self: flex-end;
}

#gines-tg-chat .msg.manager {
    background-color: #f58123;
    color: white;
    align-self: flex-start;
}

#gines-tg-chat .btn-close {
    --bs-btn-close-bg: none;
    --bs-btn-close-focus-shadow: none;
}

#gines-tg-chat .invalid-feedback {
    display: none;
}