* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chatbot-wrap {
    width: 400px;
    height: 620px;
    position: fixed;
    top: 120px;
    right: 40px;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(62, 67, 59, 0.16);
    z-index: 9999;
    display: none;
    border: 1px solid #DDE3D5;
}

.chat-header {
    height: 72px;
    padding: 0 18px;
    background: #D9DFCF;
    color: #3E433B;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: bold;
    border-bottom: 1px solid #C8D0BD;
}

.chat-header span {
    flex: 1;
    text-align: left;
    color: #3E433B;
    font-weight: 700;
}

.chat-close-btn {
    border: none;
    background: none;
    color: #3E433B;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 0;
}

.chat-close-btn:hover {
    background: none;
    color: #667455;
}

.chat-body {
    height: calc(100% - 72px);
    padding: 18px;
    background: #F6F7F2;
    overflow-y: auto;
}

.bot-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.bot-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #E8EDE0;
}

.bot-msg {
    position: relative;
    max-width: 74%;
    background: #FFFFFF;
    color: #3E433B;
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.55;
    font-size: 14px;
    box-shadow: 0 3px 9px rgba(62, 67, 59, 0.08);
    border: 1px solid #E1E8DD;
}

.bot-msg::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 15px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 8px solid #FFFFFF;
}

.user-msg {
    position: relative;
    width: fit-content;
    max-width: 72%;
    margin: 12px 10px 12px auto;
    background: #7E8F6A;
    color: white;
    padding: 11px 14px;
    border-radius: 10px;
    line-height: 1.55;
    font-size: 14px;
    text-align: left;
    word-break: keep-all;
    box-shadow: 0 3px 9px rgba(126, 143, 106, 0.2);
}

.user-msg::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 11px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 8px solid #7E8F6A;
}

.quick-menu {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
}

.quick-menu button {
    width: 100%;
    border: 1px solid #DDE3D5;
    background: #FFFFFF;
    color: #3E433B;
    border-radius: 8px;
    padding: 13px 14px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.quick-menu button:hover {
    background: #7E8F6A;
    color: white;
    border-color: #7E8F6A;
}

.back-btn {
    background: #E8EDE0 !important;
    color: #3E433B !important;
    font-weight: bold;
}

.back-btn:hover {
    background: #C8D0BD !important;
    color: #3E433B !important;
}

.chat-body::-webkit-scrollbar {
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #BFC8B2;
    border-radius: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}