.mslm-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    margin-bottom: 8px;
    text-align: left;
}

.mslm-product-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mslm-product-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e4e4e7;
}

.mslm-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mslm-product-info {
    display: flex;
    flex-direction: column;
}

.mslm-product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111;
}

.mslm-product-description {
    font-size: 0.78rem;
    color: #71717a;
    line-height: 1.4;
    margin-top: 2px;
}

.mslm-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-top: 3px;
}

.mslm-product-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mslm-size-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 5px;
}

.mslm-opt-label {
    font-size: 0.8rem;
    color: #71717a;
    font-weight: 500;
}

.mslm-size-input {
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.85rem;
    background: #fff;
    color: #111;
    cursor: pointer;
}

.mslm-qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
    width: fit-content;
}

.mslm-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71717a;
}

.mslm-qty-btn {
}

.mslm-qty-input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
    padding: 0;
    -moz-appearance: textfield;
}

.mslm-qty-input::-webkit-outer-spin-button,
.mslm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mslm-btn-buy {
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mslm-open-modal {
    cursor: pointer;
}

/* Modal */
.mslm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.mslm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mslm-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: mslmModalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes mslmModalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mslm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mslm-modal-body {
    padding: 24px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
}

.mslm-modal-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
}

.mslm-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#mslm-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #111;
}

#mslm-modal-price-display {
    font-size: 1.1rem;
    color: #71717a;
    margin: 0 0 24px;
}

.mslm-modal-section {
    text-align: center;
    margin-bottom: 20px;
}

.mslm-modal-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #71717a;
    margin-bottom: 8px;
}

.mslm-modal-section select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e4e4e7;
    font-size: 0.95rem;
}

.mslm-full-width {
    width: 100%;
    padding: 14px !important;
    font-size: 1.05rem !important;
}

.mslm-cart-summary {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.mslm-view-bag-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #71717a;
    letter-spacing: 0.05em;
}

/* Cart Items List */
#mslm-cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
}

.mslm-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f4f4f5;
}

.mslm-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mslm-cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.mslm-cart-item-price {
    font-size: 0.85rem;
    color: #71717a;
}

.mslm-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mslm-cart-remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.mslm-cart-footer {
    border-top: 1px solid #e4e4e7;
    padding-top: 20px;
}

.mslm-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.mslm-modal-footer-note {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-top: 16px;
}

.mslm-checkout-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(228, 228, 231, 0.5);
    border-radius: 20px;
    padding: 12px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    animation: mslmSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mslmSlideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.mslm-checkout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#mslm-cart-count {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111;
}

.mslm-checkout-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

#mslm-checkout-btn {
    background: #635BFF;
}

.mslm-pay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mslm-pay-option:hover {
    border-color: #000;
}

.mslm-pay-option input[type="radio"] {
    margin-right: 12px;
    accent-color: #000;
}

.mslm-pay-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.mslm-pay-icons {
    font-size: 1.2rem;
}

.mslm-pay-option:has(input:checked) {
    border-color: #000;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#mslm-proceed-payment-btn {
    margin-top: 10px;
    transition: transform 0.1s;
}

#mslm-proceed-payment-btn:active {
    transform: scale(0.98);
}

/* Prevent auto-zoom on iOS Chrome and Safari */
#mslm-cart-modal input[type="email"],
#mslm-cart-modal input[type="text"],
#mslm-cart-modal input[type="tel"] {
    font-size: 16px !important;
}
