/* Reset basic */
.bottom-scoll-right {
    position: fixed;
    z-index: 9999;
}

.bottom-scoll-right ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bottom-scoll-right ul li {
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    justify-content: flex-end;
}

.bottom-scoll-right ul li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    background: #007bff; /* default */
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.bottom-scoll-right ul li > a i {
    font-size: 20px;
    width: 45px;
    text-align: center;
    flex-shrink: 0;
}

.bottom-scoll-right ul li > a img.lnh-fc-img-icon {
    width: 45px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

.bottom-scoll-right ul li > a span {
    font-size: 14px;
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    font-weight: 500;
}

/* Hover effects */
.bottom-scoll-right ul li > a:hover,
.bottom-scoll-right ul li > a.active {
    width: auto;
    padding-right: 15px;
}

.bottom-scoll-right ul li > a:hover span,
.bottom-scoll-right ul li > a.active span {
    opacity: 1;
    width: auto;
    margin-left: 5px;
}

.bottom-scoll-right ul li > a:hover {
    filter: brightness(1.1);
}

/* Dropdown Content */
.bottom-scoll-right .content-contact-phone {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    background: #01235D; /* Màu nền xanh navy giống ảnh */
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.bottom-scoll-right ul li:hover .content-contact-phone {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-scoll-right .content-contact-phone::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #01235D; /* Mũi tên cùng màu nền */
}

/* User custom HTML styling support based on user structure */
.bottom-scoll-right .content-contact-phone .content {
    padding: 20px 25px; /* Rộng rãi hơn chút theo ảnh */
}

.bottom-scoll-right .content-contact-phone .contact-detail {
    margin-bottom: 15px;
}
.bottom-scoll-right .content-contact-phone .contact-detail:last-child {
    margin-bottom: 0;
}

.bottom-scoll-right .content-contact-phone .text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9); /* Chữ trắng mờ nhẹ */
    margin-bottom: 5px;
}

.bottom-scoll-right .content-contact-phone .contact-phone a {
    color: #ffffff; /* Số điện thoại màu trắng */
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.bottom-scoll-right .content-contact-phone .contact-phone a i {
    font-size: 18px;
    margin-right: 8px;
}
/* PC Positions */
@media (min-width: 769px) {
    .lnh-fc-desktop-middle-right {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    
    .lnh-fc-desktop-middle-right ul li {
        justify-content: flex-end;
    }
    
    /* Modify for left positions if needed */
    .lnh-fc-desktop-middle-left {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
    .lnh-fc-desktop-middle-left ul li {
        justify-content: flex-start;
    }
    .lnh-fc-desktop-middle-left ul li > a {
        flex-direction: row-reverse;
    }
    .lnh-fc-desktop-middle-left ul li > a:hover,
    .lnh-fc-desktop-middle-left ul li > a.active {
        padding-right: 0;
        padding-left: 15px;
    }
    .lnh-fc-desktop-middle-left ul li > a:hover span,
    .lnh-fc-desktop-middle-left ul li > a.active span {
        margin-left: 0;
        margin-right: 5px;
    }
    .lnh-fc-desktop-middle-left .content-contact-phone {
        right: auto;
        left: 100%;
        margin-right: 0;
        margin-left: 10px;
    }
    .lnh-fc-desktop-middle-left .content-contact-phone::after {
        right: auto;
        left: -6px;
        border-left: none;
        border-right: 6px solid #fff;
    }

    .lnh-fc-desktop-bottom-right {
        bottom: 20px;
        right: 20px;
    }
    
    .lnh-fc-desktop-bottom-left {
        bottom: 20px;
        left: 20px;
    }
}

/* Mobile Positions */
@media (max-width: 768px) {
    .lnh-fc-mobile-bottom-right {
        bottom: 20px;
        right: 15px;
    }
    .lnh-fc-mobile-bottom-left {
        bottom: 20px;
        left: 15px;
    }
    .lnh-fc-mobile-middle-right {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    .lnh-fc-mobile-middle-left {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }
    
    /* Adjust content for mobile bottom right */
    .lnh-fc-mobile-bottom-right .content-contact-phone,
    .lnh-fc-mobile-bottom-left .content-contact-phone {
        top: auto;
        bottom: 100%;
        transform: none;
        margin-bottom: 10px;
    }
    
    .lnh-fc-mobile-bottom-right .content-contact-phone::after,
    .lnh-fc-mobile-bottom-left .content-contact-phone::after {
        display: none;
    }
}

/* Fix back to top */
.lnh-back-to-top {
    margin-top: 10px !important;
}
