/**
 * Mloun Side Contact - Frontend Styles
 * 
 * @package Mloun_Side_Contact
 * @version 1.0.0
 */

.mlsc {
    position: fixed;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.mlsc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mlsc li {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0;
}

.mlsc li.contact-item {
    height: auto;
}

.mlsc .contact-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mlsc .item-inner {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    height: 50px;
    width: 50px;
    overflow: hidden;
    transition: width .3s ease, background 0.3s ease;
    color: #fff;
    text-decoration: none;
}

.mlsc li:hover .item-inner {
    width: 240px;
}

.mlsc .mlsc-svg-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mlsc .mlsc-svg-icon svg {
    width: 24px;
    height: 24px;
}

.mlsc .item-inner img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 0 10px;
    flex-shrink: 0;
}

.mlsc .text {
    white-space: nowrap;
    padding-right: 15px;
    opacity: 0;
    transition: opacity .2s ease .1s;
}

.mlsc li:hover .text {
    opacity: 1;
}

.mlsc .qr {
    position: absolute;
    top: 50px;
    width: 190px;
    background: #fff;
    padding: 10px;
    display: none;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mlsc li:hover .qr {
    display: block;
}

.mlsc .qr img {
    object-fit: contain;
    display: block;
}

/* Mobile Styles */
@media(max-width:768px) {
    .mlsc.mlsc-mobile-hide {
        display: none;
    }
    
    .mlsc:not(.mlsc-mobile-hide) {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        background: #fff;
    }
    
    .mlsc:not(.mlsc-mobile-hide) ul {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .mlsc:not(.mlsc-mobile-hide) li {
        flex: 1;
        width: auto;
        height: 50px;
        margin: 0;
    }
    
    .mlsc:not(.mlsc-mobile-hide) li.contact-item {
        display: none;
    }
    
    .mlsc:not(.mlsc-mobile-hide) .item-inner {
        position: static;
        width: 100%;
        height: 100%;
        justify-content: center;
        overflow: visible;
        border-radius: 0;
    }
    
    .mlsc:not(.mlsc-mobile-hide) li:hover .item-inner {
        width: 100%;
    }
    
    .mlsc:not(.mlsc-mobile-hide) .text {
        display: none;
    }
    
    .mlsc:not(.mlsc-mobile-hide) .qr {
        top: auto;
        bottom: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .mlsc:not(.mlsc-mobile-hide) li:hover .qr {
        display: block;
    }
}
