/* shopAccount/public/assets/css/order/formOrder.css */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.order-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-modal-header {
    background: #1e293b;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.order-modal-body {
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Summary Card */
.product-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.summary-row:last-child { margin-bottom: 0; }
.summary-row.price-row {
    border-top: 1px dashed #cbd5e1;
    padding-top: 8px;
    margin-top: 8px;
}

.summary-row .total-price {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
}

.badge-code {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Form inputs */
.form-group-section { margin-bottom: 16px; }
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #334155;
}

.required { color: #dc2626; }

.form-group input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus { border-color: #2563eb; }
.form-note { font-size: 0.78rem; color: #64748b; margin-top: 4px; }

/* Payment options */
.payment-method-section { margin-bottom: 16px; }
.section-label { font-size: 0.88rem; font-weight: 600; color: #334155; display: block; margin-bottom: 8px; }
.payment-options { display: flex; flex-direction: column; gap: 8px; }
.payment-item { cursor: pointer; display: block; }
.payment-item input { display: none; }
.payment-box {
    display: block;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.payment-item input:checked + .payment-box {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Alerts */
.order-alert-msg {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    margin-top: 10px;
}

.order-alert-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.order-alert-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }

/* Footer */
.order-modal-footer {
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel-modal, .btn-submit-order {
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-modal { background: #e2e8f0; color: #475569; }
.btn-submit-order { background: #2563eb; color: #ffffff; }
.btn-submit-order:hover { background: #1d4ed8; }