.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-window {
    background: #fff;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.cart-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 30px; height: 30px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 0; 
    font-family: Arial, sans-serif;
}

.cart-modal-close:hover {
    color: #333;
}

.cart-modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

.cart-modal-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.cart-modal-left {
    width: 220px;
    flex-shrink: 0;
    text-align: center;
}

.cart-modal-left img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.cart-modal-center {
    flex-grow: 1;
}

.cart-modal-name {
    display: block;
    font-size: 16px;
    color: #333; 
    text-decoration: none;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cart-modal-name:hover {
    text-decoration: underline;
}

.cart-modal-prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.cart-modal-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.cart-modal-discount {
    background-color: #3caa3c; 
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.cart-modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f4f4f4;
    border-radius: 20px;
    height: 36px;
    width: 90px;
    margin-top: 15px;
    overflow: hidden;
}

.cart-modal-qty-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 7px
}

.cart-modal-qty-btn:hover {
    color: #000;
}

.cart-modal-qty-input {
    width: 30px;
    height: 36px;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.cart-modal-right {
    width: 260px;
    flex-shrink: 0;
}

.cart-modal-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    box-shadow: none;
}

.cart-modal-btn.cart-modal-btn-gray {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: none;
}

.cart-modal-btn.cart-modal-btn-gray:hover {
    background-color: #e0e0e0 !important;
}

.cart-modal-summary {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin-top: 5px;
}

.cart-modal-summary strong {
    color: #333;
}

.cart-modal-btn.is-loading {
    pointer-events: none;
    opacity: 0.6;        
    cursor: wait;        
}

.cart-modal-qty-btn:disabled {
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .cart-modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cart-modal-left, .cart-modal-right {
        width: 100%;
    }
    .cart-modal-prices {
        justify-content: center;
    }
    .cart-modal-quantity {
        margin: 15px auto 0;
    }
}