.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    width: 85%;
    max-width: 320px;
    height: 95vh;
    border-radius: 0;
    padding: 18px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 10px  0px  0px  10px;
    overflow-y: scroll;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-overlay.open .modal-container {
    transform: translateX(0);
}

/* Left slide-in */
.modal-container.modal-left {
    left: 0;
    right: unset;
    top: 2.5vh;
    transform: translateX(-100%);
    border-radius: 0 10px 10px 0;
}

.modal-overlay.open .modal-container.modal-left {
    transform: translateX(0);
}

/* Custom scrollbar for WebKit browsers */
.modal-container::-webkit-scrollbar {
    width: 6px; /* width of the entire scrollbar */
}

.modal-container::-webkit-scrollbar-thumb {
    background: #ccc; /* color of the scroll thumb */
    border-radius: 4px; /* roundness of the scroll thumb */
}

/* Top slide-down */
.modal-container.modal-top {
    top: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    border-radius: 0 0 10px 10px;
    transform: translateY(-100%);
}

.modal-overlay.open .modal-container.modal-top {
    transform: translateY(0);
}

/* Center fade-in */
.modal-container.modal-center {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 85%;
    max-width: 320px;
    height: auto;
    max-height: 80vh;
    border-radius: 10px;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.open .modal-container.modal-center {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 40px;
    color: #999;
    z-index: 2;
}
.modal-content > .modal-menu-item {
    border-bottom: 1px solid #a3a3a3;
}
.modal-content > .modal-menu-item:last-child {
    border-bottom: none;
}
.modal-container.modal-left > .modal-content > .modal-menu-item {
    border-bottom: none;
}
.modal-menu-item {
    display: block;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.modal-menu-item.list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 !important;
}
.modal-menu-item.list > .modal-menu-item-block {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.modal-menu-item.list .modal-menu-item-qrcode {
    width: 80px;
    height: 80px;
    margin-right: 0;
}
.modal-menu-item.list > .modal-menu-item-block > p {
    white-space: nowrap;
}
.modal-menu-item.list > .modal-menu-item-block > .modal-menu-item-logo {
    width: 84px;
    height: 25px;
    margin-right: 0;
}
.modal-menu-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.modal-menu-item img {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.modal-menu-header > span {
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.modal-menu-header .icon-arrow {
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.modal-submenu {
    padding-left: 0;
    display: none;
}

.modal-submenu .modal-menu-item {
    padding: 10px 0 10px 35px;
}

.modal-submenu .modal-menu-item.active .icon-checked {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../../imgs/mobile/checked.svg');
    background-size: contain;
    margin-right: 8px;
    position: absolute;
    left: 15px; 
    top: 50%;
    transform: translateY(-50%);
}

.modal-submenu .modal-menu-item .icon-checked {
    display: none;
}

.modal-menu-item.open > .modal-menu-header > .icon-arrow {
    transform: rotate(180deg);
}
.modal-menu-item.open > .modal-submenu {
    display: block;
}
@media (max-width: 768px) {
    
.social-links {
    display: flex;
    justify-content: space-between;
}

.social-links img {
    width: 30px;
    height: 30px;
}
}