/* CSS cho phần nút liên hệ nổi */
.addThis_listSharing {
    position: fixed;
    right: 10px;
    bottom: 40px;
    z-index: 999;
}

/* CSS cho nút scroll top */
.scroll-top {
    position: fixed;
    right: 10px;
    bottom: 200px;
    width: 44px;
    height: 44px;
    background-color: #FF6600;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden !important;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background-color: #E85D00;
}

.scroll-top i {
    font-size: 20px;
    color: white !important;
}

/* Đảm bảo nút scroll top hoạt động với wire:navigate */
html.navigating .scroll-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.listSharing_action {
    position: relative;
}

.addThis_close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.addThis_close svg {
    width: 14px;
    height: 14px;
}

.addThis_listing {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.addThis_item {
    position: relative;
}

.addThis_item--icon {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.addThis_item--icon:hover {
    transform: scale(1.1);
}

.addThis_item--icon svg {
    width: 100%;
    height: 100%;
}

.tooltip-text {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.addThis_item--icon:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .addThis_listSharing {
        bottom: 20px;
        right: 5px;
    }
    
    .addThis_item--icon {
        width: 40px;
        height: 40px;
    }
}