
.chat-floating-button {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    background-color: #222;
    border-top: 1px solid #04ca04;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}

.chat-floating-button:hover {
    background-color: #2e2e2e;
}
.chat-floating-button span {
    color: #04ca04;
    font-size: 16px;
    font-weight: 500;
}

.chat-floating-placeholder {
    color: #555;
    font-size: 16px;
}


.chat-panel {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    background-color: #222;
    /*border-top: 1px solid #04ca04;*/
    z-index: 2000;
    overflow: hidden;
    transition: height 0.3s ease;
    opacity: 75%;
}

.chat-panel.closed {
    height: 0;
    opacity: 0;
}


.chat-panel.open {
    height: 50vh;
}


.chat-header {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    background-color: #333;
    padding: 10px 12px;
}
.chat-title {
    padding-right: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}
.chat-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}
.chat-close-btn:hover {
    color: #53ff53;
}


.chat-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #222;
    scrollbar-width: thin;
    scrollbar-color: #333 #333;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: #333;
}
.chat-messages::-webkit-scrollbar-thumb {
    background-color: #333;
}

.chat-message {
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
    word-wrap: break-word;
}


.chat-input-box {
    display: flex;
    padding: 8px;
    border-top: 1px solid #747474;
    background-color: #222;
}
.chat-input-box input {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    color: #fff;
    background-color: #333;
    border: 1px solid #444;
    margin-right: 8px;
}

.chat-input-box input::placeholder {
    color: #999;
}

.chat-input-box button {
    position : absolute;
    right: 30px;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
    border: none;
    cursor: default;
    width: 32px;
    height: 32px;
    background: url("/images/sendmsgicon-f862952a59ffb9f4d947516cf256c4b7.png") no-repeat center center;
    background-size: contain;
}
.chat-input-box button.active {
    background-image: url("/images/sendmsgiconhover-bc08a749777bfb31dc21700c4e855443.png");
    cursor: pointer;
}

.chat-input-box button:disabled {
    cursor: not-allowed;
}

.chat-panel.size-30 {
    height: 20%;
    opacity: 75%;
}
.chat-panel.size-50 {
    height: 40%;
    opacity: 75%;
}
.chat-panel.size-70 {
    height: 60%;
    opacity: 75%;
}

/*.chat-size-btn {*/
/*    background: none;*/
/*    border: none;*/
/*    color: #aaa;*/
/*    font-size: 16px;*/
/*    cursor: pointer;*/
/*}*/

.chat-size-btn {
    width: 40px;
    /*height: 40px;*/
    font-size: 22px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid #04ca04;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.chat-size-btn:hover {
    background-color: rgba(4, 202, 4, 0.15);
    transform: scale(1.05);
    color: #12f512;
    border-color: #12f512;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 72px;
    height: 72px;
    background: url("/images/chattoggle-0059d09c441ffbe7c40fce6d2513c117.png") no-repeat center center;
    display: flex;
    color: transparent;
    border: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.15);
}

.chat-mobile-tag {
    color: green;
    margin-right: 4px;
}

.chat-pc-tag {
    color: yellow;
    margin-right: 4px;
}

@media screen and (max-width: 768px) {
    .chat-title,
    .chat-close-btn,
    .chat-input-box input,
    .chat-floating-button span,
    .chat-floating-placeholder {
        font-size: 1.5rem;
    }

    .chat-input-box button{
        width: 36px;
        height: 36px;
        bottom: 11px;
    }

    .chat-panel {
        bottom: 80px;
    }

}

@media screen and (min-width: 768px) {
    .chat-toggle-btn {
        left: calc(50% + 370px);
        right: auto;
    }
}