.g4c-chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    font-family: Arial, sans-serif;
}

.g4c-chatbot__toggle {
    width: 68px;
    height: 68px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.35);
    display: grid;
    place-items: center;
    padding: 5px;
    overflow: hidden;
}

.g4c-chatbot__toggle-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.g4c-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(380px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 110px));
    background: #fff;
    border: 1px solid #d9e2f2;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
    display: none;
    overflow: hidden;
}

.g4c-chatbot.is-open .g4c-chatbot__panel {
    display: flex;
    flex-direction: column;
}

.g4c-chatbot__header {
    background: #0b5ed7;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.g4c-chatbot__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    flex: 0 0 auto;
}

.g4c-chatbot__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.g4c-chatbot__subtitle {
    font-size: 12px;
    margin: 2px 0 0;
    opacity: 0.88;
}

.g4c-chatbot__close {
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    margin-left: auto;
}

.g4c-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f7f9fc;
}

.g4c-chatbot__msg {
    max-width: 86%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-line;
}

.g4c-chatbot__msg--bot {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e4e9f2;
}

.g4c-chatbot__msg--user {
    margin-left: auto;
    background: #0d6efd;
    color: #fff;
}

.g4c-chatbot__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
    background: #f7f9fc;
}

.g4c-chatbot__chip,
.g4c-chatbot__action {
    border: 1px solid #bfd2f3;
    background: #fff;
    color: #0b5ed7;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    text-decoration: none;
}

.g4c-chatbot__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.g4c-chatbot__form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e4e9f2;
    background: #fff;
}

.g4c-chatbot__input {
    flex: 1;
    border: 1px solid #cfd8e6;
    border-radius: 6px;
    padding: 10px 12px;
    min-width: 0;
}

.g4c-chatbot__send {
    border: 0;
    border-radius: 6px;
    background: #0d6efd;
    color: #fff;
    min-width: 44px;
    padding: 0 14px;
}

.g4c-chatbot__send:disabled {
    opacity: 0.65;
}

@media (max-width: 575px) {
    .g4c-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .g4c-chatbot__panel {
        bottom: 70px;
    }
}
