.text-italic {
    font-style: italic;
}

.chat-popup {
    position: fixed;
    bottom: -503px;
    right: 10px;
    width: 100%;
    height: 542px;
    max-width: 300px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #cccccc;
    border-radius: 8px;
    transition: bottom 0.3s ease-in-out;
    overflow: hidden;
    z-index: 10000;
}

.chat-popup .header {
    height: 20px;
    background-color: #b0e24c;
    color: white;
    text-align: center;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chat-popup.open {
    bottom: 10px;
}

.chat-popup .header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.chat-popup .toggle-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.chat-popup .toggle-btn .fa {
    color: #FFFFFF;
}

.chat-popup.open .toggle-btn .arrow {
    transform: rotate(180deg);
}

.chat-popup .chat-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: #b0e24c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    z-index: 99990;
}

.chat-popup .chat-icon-btn:hover {
    background-color: #b0e24c;
    box-shadow: 0 4px 10px rgba(176, 226, 76, 0.4);
}

.chat-popup.open .chat-icon-btn {
    display: none;
}

.chat-popup .content {
    position: relative;
    background-color: #f9f9f9;
    height: 502px;
    overflow-y: auto;
}

.chat-popup .content-header {
    position: sticky;
    text-align: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e9e7e7;
    padding: 2px;
    box-shadow: 0 0 2px 0 gray;
    z-index: 10;
}

.chat-popup .content-header .back-btn {
    background: none;
    border: none;
    color: #333333;
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
    float: left;
}

.chat-popup .c-status-wrap {
    display: inline-block;
    line-height: 17px;
    font-size: 13px;
    cursor: default;
}

.chat-popup .c-status-offline {
    background: #ccc !important;
}

.chat-popup .c-status-online {
    background: #6BCD1C !important;
}

.chat-popup .c-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}

.chat-button {
    position: relative;
}

.chat-button i {
    margin-right: 5px;
}

.popup-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 10001;
}

.popup-loader .spinner {
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border: 4px solid #b0e24c;
    border-top: 4px solid #f3f3f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .chat-popup {
        bottom: -100%;
        right: 0;
        width: 100%;
        height: 100%;
        max-width: none;;
        border-radius: 0;
        border: none;
    }

    .chat-popup.open {
        bottom: 0;
        padding: 0;
    }

    .chat-popup .content {
        height: calc(100% - 40px);
    }

    .chat-popup .chat-icon-btn {
        display: flex;
    }
}





