/* ============================================================
   Mireb Commercial – Styles Front (Formulaire COD & Tracking)
   ============================================================ */

.mireb-order-form-wrap,
.mireb-tracking-wrap {
    max-width: 640px;
    margin: 0 auto 40px;
    font-family: inherit;
}

.mireb-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    text-align: center;
}

/* Aperçu produit */
.mireb-product-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
}
.mireb-product-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px;
}
.mireb-product-info h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #212529;
}
.mireb-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #198754;
    margin: 0;
}

/* Formulaire */
.mireb-quick-order-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.mireb-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.mireb-form-col {
    flex: 1;
    min-width: 200px;
}
.mireb-form-col.mireb-full { flex: 100%; min-width: 100%; }

.mireb-form-col label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.mireb-quick-order-form input[type="text"],
.mireb-quick-order-form input[type="tel"],
.mireb-quick-order-form input[type="email"],
.mireb-quick-order-form input[type="number"],
.mireb-quick-order-form textarea,
.mireb-tracking-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fff;
    color: #212529;
}

.mireb-quick-order-form input:focus,
.mireb-quick-order-form textarea:focus,
.mireb-tracking-form input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    outline: none;
}

/* Notice COD */
.mireb-cod-notice {
    background: #e8f5e9;
    border-left: 4px solid #198754;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 18px;
    font-size: .95rem;
}

/* Bouton commande */
.mireb-form-submit { text-align: center; }
.mireb-order-btn {
    display: inline-block;
    background: linear-gradient(135deg, #198754, #146c43);
    color: #fff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(25,135,84,.3);
}
.mireb-order-btn:hover {
    background: linear-gradient(135deg, #146c43, #0f5132);
    box-shadow: 0 6px 20px rgba(25,135,84,.4);
    transform: translateY(-1px);
}
.mireb-order-btn:active { transform: translateY(0); }
.mireb-order-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Feedback */
.mireb-form-feedback {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}
.mireb-feedback-success {
    background: #d1e7dd;
    color: #0a3622;
    border: 1px solid #a3cfbb;
}
.mireb-feedback-error {
    background: #f8d7da;
    color: #58151c;
    border: 1px solid #f1aeb5;
}
.mireb-feedback-loading {
    background: #cff4fc;
    color: #055160;
    border: 1px solid #9eeaf9;
}

/* Tracking */
.mireb-tracking-form {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    margin-bottom: 20px;
}
.mireb-tracking-result {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}
.mireb-tracking-result h3 { color: #0d6efd; margin-top: 0; }

.mireb-track-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 14px;
}
.mireb-track-info { list-style: none; padding: 0; margin: 0; }
.mireb-track-info li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: .95rem; }
.mireb-track-info li:last-child { border: none; }
.mireb-track-info strong { color: #495057; min-width: 160px; display: inline-block; }

/* Responsive */
@media (max-width: 600px) {
    .mireb-form-row { flex-direction: column; }
    .mireb-quick-order-form { padding: 18px; }
    .mireb-product-preview { flex-direction: column; text-align: center; }
    .mireb-order-btn { width: 100%; padding: 14px; }
}
