.mg-share-btn {
	position: relative;
    gap: 20px;
    font-size: 16px;
    display: inline-flex;
    height: 43px;
    padding: 0 25px;
    user-select: none;
    transition: color .3s, background .3s, box-shadow .3s, -webkit-box-shadow .3s;
    text-align: center;
    white-space: nowrap;
    color: #4a4848;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    align-items: center;
    justify-content: center;
}

#mg-share-btn:hover {
    opacity: 0.8;
	background-color: #961b4a17;
}

/* Стили модального окна */
.modal-share-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.modal-share-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-share-cart {
    background-color: white;
    border-radius: 12px;
    width: 1015px;
    max-width: 1200px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

.modal-share-cart .share-cart-remove {
    cursor: pointer;
}

.modal-share-cart-overlay.active .modal {
    transform: translateY(0);
}

.modal-share-cart-header {
    padding: 0px 0px 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-share-cart-title {
    font-size: 22px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: black;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-share-table {
    width: 100%;
}

.modal-share-cart-body {
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.modal-share-cart-body td {
    padding: 10px;
}

.modal-share-cart-body td:not(.product-title) {    
    text-align: center;
}

.modal-share-cart-body tr {
    padding: 10px;
    border-bottom: 1px solid #dadada;
    display: flex;
    align-items: center;
}

.modal-share-cart .share-cart-product .img-wrap a {
    display: flex;
}

.modal-share-cart .share-cart-product .img-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.modal-share-cart .share-cart-product .product-title {
    flex: 1;
}

.modal-share-cart .share-cart-product .product-title .product-title-name {
    font-weight: 600;
}

.modal-share-cart-footer button {
    font-size: 16px;
    font-weight: 500;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    height: 40px;
    padding: 0 36px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid black;
    color: #000;
    border-radius: 6px;    
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.modal-share-cart-body p {
    margin-bottom: 15px;
}

.modal-share-cart-footer {
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 15px;
}

.modal-share-cart-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.modal-share-cart-btn:hover {
    background-color: #27ae60;
}

.modal-share-cart-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-share-products-not-exist {
    padding: 0 30px;
}

@media (max-width: 767px) {

    .modal-share-cart .share-cart-product {
        display: flex;
        flex-wrap: wrap;
    }
    
    .modal-share-cart .share-cart-product .img-wrap {
        width: 90px;
        height: 90px;
    }

    .modal-share-cart .share-cart-product .product-title {
        flex: none;
        width: calc(100% - 130px);
    }

    .modal-share-cart .share-cart-product .share-cart-product-count {
        flex: 1 1 30%;
    }

    .modal-share-cart .share-cart-product .share-cart-product-sum {
        flex: 1 1 30%;
    }

    .modal-share-cart .share-cart-product .share-cart-product-remove {
        flex: 1 1 20px;
    }
    
}