.mop-form-container {
    max-width: 620px;
    margin: 30px auto;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.03);
    direction: rtl;
    text-align: right;
}

.mop-field { margin-bottom: 22px; }
.mop-field label { display: block; font-weight: 600; font-size: 14px; color: #1a1a1a; margin-bottom: 6px; }
.mop-field .required { color: #dc2626; margin-right: 2px; }
.mop-field input, .mop-field textarea, .mop-field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 12px;
    font-size: 15px; color: #1a1a1a; background: #fafbfc; outline: none; transition: all 0.2s;
}
.mop-field input:focus, .mop-field textarea:focus, .mop-field select:focus {
    border-color: #1a1a1a; box-shadow: 0 0 0 4px rgba(0,0,0,0.03); background: #fff;
}
.mop-field textarea { min-height: 70px; resize: vertical; }

.mop-progress-bar {
    display: flex; justify-content: space-between; margin-bottom: 32px; position: relative; padding: 0 4px;
}
.mop-progress-bar::before {
    content: ''; position: absolute; top: 16px; left: 20px; right: 20px;
    height: 2px; background: #e5e7eb; z-index: 0;
}
.mop-progress-step {
    display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1;
}
.mop-progress-step .step-circle {
    width: 34px; height: 34px; border-radius: 50%; background: #e5e7eb; color: #6b7280;
    font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #e5e7eb; transition: all 0.3s;
}
.mop-progress-step.active .step-circle { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.mop-progress-step .step-label { font-size: 11px; margin-top: 6px; color: #6b7280; font-weight: 500; }
.mop-progress-step.active .step-label { color: #1a1a1a; font-weight: 600; }

.product-results {
    border: 1px solid #e5e7eb; border-top: none; background: #fff;
    max-height: 280px; overflow-y: auto; display: none; border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.product-results ul { list-style: none; margin: 0; padding: 0; }
.product-results li {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    cursor: pointer; border-bottom: 1px solid #f3f4f6; transition: background 0.15s;
}
.product-results li:hover { background: #f8fafc; }
.product-results li img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.product-results li .p-title { flex: 1; font-size: 14px; font-weight: 500; color: #1a1a1a; }
.product-results li .p-price { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.product-results li .stock-badge.out-of-stock {
    background: #fee2e2; color: #b91c1c; padding: 2px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.product-results .loading, .product-results .no-result {
    padding: 16px; text-align: center; color: #6b7280; font-size: 14px;
}

.product-list-container {
    border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; min-height: 50px; background: #fafbfc;
}
.product-list-container .no-products { color: #6b7280; text-align: center; margin: 6px 0; font-size: 14px; }
.selected-product {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; margin-bottom: 6px;
    transition: all 0.15s;
}
.selected-product:hover { border-color: #d1d5db; }
.selected-product:last-child { margin-bottom: 0; }
.selected-product img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.selected-product .sp-title { flex: 1; font-size: 14px; font-weight: 500; color: #1a1a1a; }
.selected-product .sp-price { font-weight: 600; font-size: 14px; color: #1a1a1a; }
.selected-product .remove-product {
    background: #fee2e2; color: #b91c1c; border: none; border-radius: 50%;
    width: 28px; height: 28px; cursor: pointer; font-size: 14px; font-weight: 700;
    transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.selected-product .remove-product:hover { background: #fecaca; }

.mop-wizard-nav { display: flex; gap: 10px; margin-top: 22px; justify-content: space-between; }
.mop-wizard-nav button {
    background: #f3f4f6; border: none; padding: 10px 28px; border-radius: 40px;
    font-weight: 600; font-size: 14px; color: #1a1a1a; cursor: pointer; transition: all 0.2s;
}
.mop-wizard-nav button:hover { background: #e5e7eb; }
.mop-wizard-nav button.primary { background: #1a1a1a; color: #fff; }
.mop-wizard-nav button.primary:hover { background: #000; }

.order-summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-summary table th, .order-summary table td { padding: 8px 10px; border-bottom: 1px solid #f3f4f6; text-align: right; }
.order-summary table th { font-weight: 600; color: #6b7280; font-size: 13px; }
.order-summary table .total-row td { border-top: 2px solid #e5e7eb; font-weight: 700; font-size: 16px; padding-top: 12px; }

.total-section { background: #f8fafc; padding: 16px 18px; border-radius: 12px; border: 1px solid #e5e7eb; }
.total-section .total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: #1a1a1a; }
.total-section .total-row.total { font-weight: 700; font-size: 17px; border-top: 2px solid #e5e7eb; padding-top: 10px; margin-top: 6px; }
.total-section .total-row.downpayment { color: #2563eb; font-weight: 600; }

.mop-shipping-options {
    display: flex; gap: 10px; margin-top: 4px;
}
.mop-shipping-options .shipping-option {
    display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
    color: #1a1a1a; cursor: pointer; padding: 10px 16px; border-radius: 12px;
    border: 1.5px solid #e5e7eb; background: #fafbfc; transition: all 0.15s; flex: 1; justify-content: center; flex-wrap: wrap;
}
.mop-shipping-options .shipping-option:hover { background: #f1f4f9; }
.mop-shipping-options .shipping-option input[type="radio"] {
    appearance: none; width: 16px; height: 16px; border: 2px solid #d1d5db;
    border-radius: 50%; margin: 0; flex-shrink: 0; transition: all 0.15s;
}
.mop-shipping-options .shipping-option input[type="radio"]:checked {
    border-color: #1a1a1a; background: #1a1a1a;
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #1a1a1a;
}
.mop-shipping-options .shipping-option .shipping-label { font-weight: 600; }
.mop-shipping-options .shipping-option .shipping-price {
    font-size: 12px; color: #6b7280; background: #f3f4f6; padding: 2px 12px; border-radius: 20px;
}

.mop-payment-options {
    display: flex; gap: 10px; margin-top: 4px;
}
.mop-payment-options .payment-option {
    display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px;
    color: #1a1a1a; cursor: pointer; padding: 10px 16px; border-radius: 12px;
    border: 1.5px solid #2563eb; background: #eff6ff; transition: all 0.15s; flex: 1; justify-content: center; flex-wrap: wrap;
}
.mop-payment-options .payment-option .payment-label { font-weight: 600; }
.mop-payment-options .payment-option .payment-badge {
    font-size: 12px; color: #fff; background: #2563eb; padding: 2px 12px; border-radius: 20px;
}
.mop-payment-options input[type="radio"] {
    appearance: none; width: 16px; height: 16px; border: 2px solid #2563eb;
    border-radius: 50%; margin: 0; flex-shrink: 0; transition: all 0.15s;
}
.mop-payment-options input[type="radio"]:checked {
    border-color: #1a1a1a; background: #1a1a1a;
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #1a1a1a;
}

.upload-progress { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.upload-progress .progress-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 10px; overflow: hidden; }
.upload-progress .progress-bar .progress-fill { height: 100%; width: 0%; background: #1a1a1a; transition: width 0.4s ease; }
.upload-progress .progress-text { font-size: 13px; font-weight: 600; color: #1a1a1a; min-width: 35px; }
.upload-status-message {
    color: #22c55e; font-weight: 600; margin-top: 8px; font-size: 14px;
    text-align: center; padding: 8px 12px; background: #f0fdf4;
    border-radius: 8px; border-right: 3px solid #22c55e;
}

#submit-order {
    width: 100%; padding: 15px; background: #1a1a1a; color: #fff; border: none;
    border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer;
    transition: all 0.2s; letter-spacing: 0.3px;
}
#submit-order:hover { background: #000; transform: scale(1.01); }

.mop-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 99999;
    animation: fadeIn 0.25s ease;
}
.mop-modal {
    background: #fff; padding: 32px 28px 28px; border-radius: 24px;
    max-width: 420px; width: 92%; text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15); animation: slideUp 0.3s ease;
}
.mop-modal .mop-icon { font-size: 52px; line-height: 1; margin-bottom: 12px; }
.mop-modal .mop-icon.success { color: #22c55e; }
.mop-modal .mop-icon.error { color: #ef4444; }
.mop-modal .mop-modal-content { font-size: 16px; line-height: 1.7; color: #1a1a1a; margin-bottom: 16px; }
.mop-modal .mop-order-number {
    background: #f3f4f6; padding: 10px 16px; border-radius: 12px; margin-bottom: 18px;
    font-size: 15px; color: #1a1a1a;
}
.mop-modal .mop-order-number strong { color: #1a1a1a; font-weight: 700; }
.mop-modal .mop-modal-close {
    background: #1a1a1a; color: #fff; border: none; padding: 10px 32px;
    border-radius: 40px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.mop-modal .mop-modal-close:hover { background: #000; }
.mop-spinner {
    width: 48px; height: 48px; border: 4px solid #e5e7eb; border-top-color: #1a1a1a;
    border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .mop-form-container { padding: 18px 14px; margin: 12px 8px; border-radius: 18px; }
    .mop-field input, .mop-field textarea, .mop-field select { font-size: 16px; padding: 12px; }
    .mop-shipping-options { flex-direction: column; gap: 6px; }
    .mop-shipping-options .shipping-option { width: 100%; justify-content: center; }
    .mop-payment-options .payment-option { width: 100%; justify-content: center; }
    .mop-wizard-nav { flex-direction: column; gap: 6px; }
    .mop-wizard-nav button { width: 100%; justify-content: center; }
    .mop-progress-step .step-label { font-size: 10px; }
}