
/*
handler: single-follow-menu
version: 1.0.3
deps: bootstrap-5,bootstrap-icons
*/

.btn-follow {
    height: auto;
     -webkit-user-select: none;
    -moz-user-select: none;  
    -ms-user-select: none;
    user-select: none; 
}

.btn-follow label {
    cursor: pointer;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #29303d;
    line-height: 32px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e8ebee;
    border-radius: 8px;
    transition: all 0.1s;
    gap: 8px;
}

.btn-follow label:hover, 
.btn-follow input:checked + label {
    background-color: #e8ebeecc;
}

.btn-follow label i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: block;
    line-height: 16px;
    color: #29303d;
    transition: transform 0.3s;
}

.btn-follow input {
    display: none;
}

.btn-follow ul.submenu {
    position: absolute;
    right: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    display: block;
    width: -webkit-fill-available;
    width: 100%;
    z-index: 9;
    overflow: hidden;
    border-radius: 4px;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: max-height 0.2s ease-in-out;
    background-color: var(--gray-extra-light);
    border: 1px solid var(--gray-light);
}

.btn-follow input:checked~ul.submenu {
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    max-width: 250px;
}

.btn-follow ul.submenu li {
    width: 100%;
}

.btn-follow ul.submenu li a {
    color: var(--gray-dark);
    width: 100%;
    text-decoration: none;
    display: flex;
    padding: 0 10px;
    justify-content: start;
    align-items: center;
    background-color: var(--gray-extra-light);
    font-size: 14px;
    line-height: 40px;
    font-weight: 500;
}
.btn-follow ul.submenu li a:hover {
    background-color: var(--gray-light);
    color: var(--blue-dark);
}

.btn-follow ul.submenu li a strong {
    font-weight: 600;
}

.btn-follow ul.submenu li a i {
    font-size: 15px;
    line-height: 20px;
    margin-right: 10px;
}

@media all and (min-width:992px) {
    .btn-follow ul.submenu li a {
        font-size: 12px;
    }
}