/* floating toggle button */
.chat-toggle {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25bb03;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* chat panel */
.chat-panel {
    position: fixed;
    bottom: 88px;
    right: 20px;
    width: 320px;
    max-height: 480px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: "Open Sans", sans-serif;
    /* from style.min.css :contentReference[oaicite:4]{index=4} */
    font-size: 18px;
    /* --bs-body-font-size: 18px :contentReference[oaicite:5]{index=5} */
    line-height: 28px;
    /* --bs-body-line-height: 28px :contentReference[oaicite:6]{index=6} */
    color: #4a4a4a;
}

/* header bar */
.chat-header {
    background: #3a9c6a;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .close-btn {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* message area */
.chat-log {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: #f7f7f7;
    color: inherit;
}

.chat-log .msg {
    margin: 6px 0;
    max-width: 80%;
    padding: 6px 10px;
    border-radius: 12px;
    line-height: 1.4;
}

.chat-log .msg.user {
    background: #d1e7ff;
    align-self: flex-end;
}

.chat-log .msg.assistant {
    background: #e2e3e5;
    align-self: flex-start;
}

/* input bar */
.chat-input-bar {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input-bar input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
}

.chat-input-bar button {
    border: none;
    background: #21ae49;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
}

.chat-input-bar input:focus {
    outline: none;
}

.chat-input-bar input,
.chat-input-bar button {
    color: inherit;
}