/* ===============================
   ÇÏ´Ü °íÁ¤ Ã¤ÆÃÃ¢
=============================== */

#floatingChat {
    /*
    ±âÁ¸ ÇÃ·ÎÆÃ ¸ðµå
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 350px;
    */

    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;

    background: #b2c7d9;
    border-top: 1px solid #8fa9bd;
    box-shadow: 0 -2px 8px rgba(0,0,0,.2);
    z-index: 99999;
    overflow: hidden;
}

/* Á¢Èù »óÅÂ */
#floatingChat.collapsed {
    height: 42px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#floatingChat.collapsed #floatingChatTitle,
#floatingChat.collapsed #floatingChatBody {
    display: none;
}

/* ===============================
   Çì´õ
=============================== */

#floatingChatHeader {
    background: #3b1e1e;
    color: #fff;
    padding: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* ÇÏ´Ü °íÁ¤ ¸ðµå¿¡¼­´Â µå·¡±× ´À³¦ Á¦°Å */
    cursor: default;
}

#floatingChatHeader.new-message {
    background: red !important;
}

#floatingChatTitle {
    font-size: 13px;
    font-weight: bold;
}

#toggleChat {
    background: #5a3a3a;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
}

/* ===============================
   Ã¤ÆÃ ¿µ¿ª
=============================== */

#floatingChatBody {
    background: #b2c7d9;
}

#chat-box {
    height: 200px;
    overflow-y: auto;
    padding: 10px;
}

/* ===============================
   ¸Þ½ÃÁö °øÅë
=============================== */

.chat-msg {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

/* »ó´ë ¸Þ½ÃÁö */
.chat-msg.other {
    align-items: flex-start;
}

.chat-msg.other .chat-bubble {
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
}

/* ³» ¸Þ½ÃÁö */
.chat-msg.me {
    align-items: flex-end;
    margin-left: auto;
}

.chat-msg.me .chat-bubble {
    background: #ffe812;
    border-radius: 8px;
    padding: 8px 10px;
}

/* ===============================
   ÅØ½ºÆ® ¿ä¼Ò
=============================== */

.chat-name {
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.chat-text {
    word-break: break-all;
    line-height: 1.4;
}

.chat-time {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    text-align: right;
}

/* ===============================
   ÀÔ·ÂÃ¢
=============================== */

#chat-form {
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 8px;
}

#name {
    width: 70px;
    padding: 6px;
    border: 1px solid #ccc;
}

#message {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
}

#chat-form button {
    background: #ffe812;
    border: 1px solid #e0c900;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
}