/* .direct-chat-msg {
    display: flex;
    margin-bottom: 10px;
    flex-direction: column;
}

.direct-chat-msg.left {
    justify-content: flex-start;

    text-align: left;
}

.direct-chat-msg.right {
    justify-content: flex-end;

    text-align: right;
}

.direct-chat-infos {
    display: inline;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #6C757D;
}

.direct-chat-name {
    font-weight: bold;
}

.direct-chat-timestamp {
    font-size: 12px;
    color: #ADB5BD;

}

.direct-chat-msg.right>.direct-chat-text {
    color: #ffffff;
    background: #3A3A6A;
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-right-radius: 1px;
}

.right>.direct-chat-text {
    margin-right: 10px;
}

.right>.direct-chat-text {
    float: right;
} */
.chat-container {
    height: 400px;
}

.direct-chat-text {
    width: fit-content;
}

.right .direct-chat-text {
    float: right;
}

.direct-chat-timestamp {
    margin: 0 10px;
}

.direct-chat-text {
    margin: 5px 0 0 10px;
}

.right .direct-chat-text {
    margin-right: 10px;
}

.direct-chat-messages {
    height: 100%;
    overflow-y: auto;
}

.direct-chat-msg.right>.direct-chat-text {
    color: #ffffff;
    background: #3A3A6A;
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-right-radius: 1px;
}

.direct-chat-msg.left>.direct-chat-text {
    color: #ffffff;
    background: var(--primary-color);
    width: fit-content;
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    border-bottom-left-radius: 1px;
}

.direct-chat-msg.right>.direct-chat-text::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #3A3A6A;
    border-right: 0;
    margin-top: 6px;
    border-bottom-right-radius: 0px;
}

.direct-chat-msg.left>.direct-chat-text::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--primary-color);
    border-left: 0;
    margin-top: 6px;
    border-bottom-left-radius: 0px;
}

.direct-chat-msg::after {
    display: block;
    clear: both;
    content: "";
}

.bg-primary {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(66, 133, 244, 0.12) !important;
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 400;
    border: 1px solid var(--bs-primary);
}

.bg-warning {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(255, 84, 109, 0.12) !important;
    color: #f48900;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #f48900;
}

.bg-danger {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(181, 32, 70, 0.12) !important;
    color: #b52046;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #b52046;
}

.bg-success {
    display: flex;
    width: fit-content;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(52, 168, 83, 0.12) !important;
    color: #34a853;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #34a853;
}

.bg-secondary {
    display: flex;
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(71, 85, 105, 0.1) !important;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #475569;
}

.bg-info {
    display: flex;
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(111, 66, 193, 0.12) !important;
    color: #6F42C1;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #6F42C1;
}

.bg-dark {
    width: fit-content;
    display: flex;
    height: 25px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: rgba(71, 85, 105, 0.1) !important;
    color: #475569;
    font-size: 12px;
    font-weight: 400;
    border: 1px solid #475569;
}

.disabled_chat_btn {
    pointer-events: none;
    opacity: 0.5;
}

#bank_transfer_slide {
    display: none;
}

/* Fix: Footer hidden behind mobile bottom navigation bar (47px height) */
@media only screen and (max-width: 991px) {
    .footer {
        padding-bottom: 60px !important;
    }

    /* Move sticky scroll/chat buttons above the bottom nav bar */
    .sticky-btn-box {
        bottom: 60px;
    }

    /* Ensure page content also clears the bottom nav on mobile */
    #page-content {
        margin-bottom: 10px;
    }

    /* Fix my-account dashboard sidebar on mobile */
    .dashboard-sidebar {
        position: static;
        top: auto;
    }
}

/* Fix: Proper mobile responsive for my-account page */
@media only screen and (max-width: 767px) {
    .dashboard-tab .nav-tabs {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 4px;
    }

    .dashboard-tab .nav-tabs .nav-item .nav-link {
        font-size: 12px;
        padding: 6px 10px;
        border: 1px solid #eee;
        border-radius: 4px;
        white-space: nowrap;
    }

    .dashboard-tab .nav-tabs .nav-item .nav-link:hover,
    .dashboard-tab .nav-tabs .nav-item.show .nav-link,
    .dashboard-tab .nav-tabs .nav-link.active {
        background-color: var(--secondary-color);
        color: #fff;
        border-color: var(--secondary-color);
    }

    .dashboard-sidebar {
        padding: 20px 15px 15px 15px;
    }

    .profile-top {
        margin-bottom: 1rem !important;
    }

    .dashboard-content .box-info {
        margin-bottom: 1rem !important;
    }
}

/* Category Nav Dropdown */
#siteNav > li.category-nav-item > .category-dropdown {
    min-width: 220px;
    width: 220px;
    padding: 6px 0;
}

#siteNav > li.category-nav-item > .category-dropdown > li {
    position: relative;
    border-top: 1px solid #f4f4f4;
}

#siteNav > li.category-nav-item > .category-dropdown > li:first-child {
    border-top: none;
}

#siteNav > li.category-nav-item > .category-dropdown > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-weight: 500;
    font-size: 13px;
    color: #171717;
    white-space: nowrap;
}

#siteNav > li.category-nav-item > .category-dropdown > li > a:hover {
    color: var(--primary-color);
    background-color: #f9f9f9;
}

#siteNav > li.category-nav-item > .category-dropdown > li.has-sub > a .anm-angle-right-l {
    font-size: 12px;
    opacity: 0.6;
}

/* Subcategory fly-out */
#siteNav > li.category-nav-item > .category-dropdown > li > ul {
    list-style: none;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    width: 210px;
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 999;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    padding: 6px 0;
    border-radius: 0;
}

#siteNav > li.category-nav-item > .category-dropdown > li.has-sub:hover > ul {
    opacity: 1;
    visibility: visible;
}

#siteNav > li.category-nav-item > .category-dropdown > li > ul > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: #171717;
    border-top: 1px solid #f4f4f4;
}

#siteNav > li.category-nav-item > .category-dropdown > li > ul > li:first-child > a {
    border-top: none;
}

#siteNav > li.category-nav-item > .category-dropdown > li > ul > li > a:hover {
    color: var(--primary-color);
    background-color: #f9f9f9;
}

/* View all link at bottom */
#siteNav > li.category-nav-item > .category-dropdown > li.view-all-cats > a {
    font-weight: 600;
    color: var(--primary-color);
    border-top: 2px solid #f0f0f0 !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
