.ez2d-chatbot {
    border: 1px solid #d6dce8;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    max-width: 720px;
}

.ez2d-chatbot-header {
    padding: 12px 14px;
    background: #0f3460;
    color: #ffffff;
    font-size: 15px;
}

.ez2d-chatbot-messages {
    padding: 12px;
    height: 360px;
    overflow-y: auto;
    background: #f7f9fc;
}

.ez2d-chatbot-msg {
    margin-bottom: 10px;
    display: flex;
}

.ez2d-chatbot-msg span {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 86%;
    line-height: 1.4;
    white-space: pre-wrap;
}

.ez2d-chatbot-msg-bot span {
    background: #e6edf9;
    color: #0f172a;
}

.ez2d-chatbot-msg-user {
    justify-content: flex-start;
}

.ez2d-chatbot-msg-user span {
    background: #0f3460;
    color: #ffffff;
}

.ez2d-chatbot-live-btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #0f3460;
    color: #fff;
    cursor: pointer;
}

.ez2d-chatbot-inline-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.ez2d-chatbot-msg.is-pending span {
    opacity: 0.7;
}

.ez2d-chatbot-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-top: 1px solid #e3e8f2;
    padding: 10px;
    background: #ffffff;
}

.ez2d-chatbot-form input[type="text"] {
    border: 1px solid #cfd7e6;
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
}

.ez2d-chatbot-form button {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    background: #0f3460;
    color: #ffffff;
    cursor: pointer;
}

.ez2d-chatbot-form button:hover {
    background: #0d2d53;
}

@media (max-width: 640px) {
    .ez2d-chatbot-messages {
        height: 300px;
    }
}

.ez2d-chatbot-bubble {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100050;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    background: #0f3460;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 52, 96, 0.28);
}

.ez2d-chatbot-bubble:hover {
    background: #0d2d53;
}

.ez2d-chatbot-modal {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: none;
}

.ez2d-chatbot-modal.is-open {
    display: block;
}

.ez2d-chatbot-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.ez2d-chatbot-panel {
    position: absolute;
    right: 16px;
    bottom: 74px;
    width: min(420px, calc(100vw - 24px));
    max-height: min(80vh, 720px);
}

.ez2d-chatbot-panel .ez2d-chatbot {
    box-shadow: 0 16px 50px rgba(2, 6, 23, 0.28);
}

.ez2d-chatbot-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 640px) {
    .ez2d-chatbot-bubble {
        right: 12px;
        bottom: 12px;
    }

    .ez2d-chatbot-panel {
        right: 12px;
        bottom: 64px;
        width: calc(100vw - 24px);
    }
}
