
:root {
    --custom-color: #c31c37;
    --yellow-color: #f7f301;
}

.ec-right-bottom {
    bottom: 15px;
    right: 15px;
    float: right;
}

.ec-panel .ec-body ul {
    margin: 0;
    padding: 0;
}

.ec-style {
    display: inline-block;
    position: fixed;
    letter-spacing: 0.1px;
    z-index: 9998;
}

.ec-style .ec-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-style .ec-panel {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    visibility: hidden;

    display: block; /* always block, toggle via visibility */
    margin-bottom: 5px;
    width: 163px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.479);
    background-color: #fff;
    position: absolute;
    bottom: 60px;
    right: 0;
    z-index: 9999;
}
.ec-style .ec-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}


.ec-style .ec-panel .ec-header {
    padding: 4px 9px 5px;
    text-align: center;
    color: #fff;
    background: #c31c37;
}

.ec-style .ec-panel .ec-body {
    min-width: 250px;
    white-space: nowrap;
    list-style: none;
    overflow-y: auto;
}

.ec-style .ec-header strong {
    font-size: 15px;
    line-height: 20px;
}

.ec-style .ec-header p {
    margin-bottom: 0;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
}

.ec-style .ec-list .ec-user-img {
    height: 40px;
    width: 40px;
    vertical-align: middle;
}

.ec-style .ec-list .ec-status-icon {
    position: absolute;
    bottom: 5px;
    right: 1px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: #67d71e;
}

.ec-style .ec-list .ec-online {
    background-color: #2ab674;
}

.ec-style .ec-list .ec-offline {
    background-color: #a0a0a0;
}

.ec-style .ec-list .ec-user-info {
    margin-top: 0;
    margin-bottom: auto;
    margin-left: 15px;
}

.ec-style .ec-list .ec-user-info span {
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
    color: #555;
}

.ec-style .ec-list .ec-user-info p {
    margin-bottom: 0;
    color: #888;
    font-size: 12px;
    line-height: 15px;
    font-weight: 300;
}

.ec-style .ec-list .ec-chat-icon {
    margin-top: -46px;
    right: -10px;
    position: absolute;
    color: #d4d4d4;
    font-size: 60px;
    opacity: 0.5;
    transition: 50ms ease-in-out;
    overflow: hidden;
}

.ec-style .ec-body li {
    display: block;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    border-bottom: 1px solid #eee;
    list-style-type: none;
    transition: 0.3s ease-in-out;
}

.ec-style .ec-body li:hover {
    background-color: rgba(42, 182, 116, 0.07);
}

.ec-right-bottom .ec-box {
    background-color: #fff;
    border: 2px solid #c31c37;
    border-radius: 5px;
    cursor: pointer;
}

.ec-right-bottom .ec-box:hover {
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#scrollUp {
    background-color: var(--custom-color) !important;
    color: #fff;
    width: 40px;
    height: 40px;
    right: 15px;
    bottom: 70px;
    text-align: center;
    overflow: hidden;
    z-index: 9997 !important;
    font-size: 18px;
    line-height: 40px;
    border-radius: 5px;
    position: fixed;
    display: none;
}

#scrollUp:hover {
    background: #fff !important;
    color: var(--custom-color) !important;
}

.rotateBackward {
    animation-name: rotateB;
    animation-duration: 0.65s;
    animation-iteration-count: 1;
}

@keyframes rotateB {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0);
    }
}


@media (max-width: 575.98px) {
    .ec-right-bottom {
        bottom: 60px !important; /* নিচ থেকে 60px উপরে থাকবে */
    }

    #scrollUp {
        bottom: 120px !important; /* scrollUp যেন overlap না করে */
    }
}
