/* ── Motors WooCommerce Sync — Boutons front-end ── */

.mws-action-buttons {
    margin: 32px 0;
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
}

.mws-price-display {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}
.mws-price-label { font-weight: 400; font-size: 0.75em; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.mws-price-value .woocommerce-Price-amount { color: #c0392b; }

.mws-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mws-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .1s;
    line-height: 1.4;
}
.mws-btn:active { transform: scale(.97); }
.mws-btn small { font-weight: 400; opacity: .85; margin-left: 4px; }

/* Achat */
.mws-btn-buy {
    background: #27ae60;
    color: #fff;
}
.mws-btn-buy:hover { background: #219150; color: #fff; }

/* Réservation */
.mws-btn-reserve {
    background: #e67e22;
    color: #fff;
}
.mws-btn-reserve:hover { background: #ca6f1e; color: #fff; }

/* Devis */
.mws-btn-quote {
    background: #2980b9;
    color: #fff;
}
.mws-btn-quote:hover { background: #2471a3; color: #fff; }

/* Financement */
.mws-btn-finance {
    background: #8e44ad;
    color: #fff;
}
.mws-btn-finance:hover { background: #7d3c98; color: #fff; }

/* ── Résumé véhicule (page merci) ── */
.mws-order-vehicle-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
}
.mws-order-vehicle-summary h3 { margin-top: 0; }
.mws-thumb { margin-bottom: 12px; }
.mws-thumb img { max-width: 100%; border-radius: 4px; }
.mws-vehicle-table { width: 100%; border-collapse: collapse; }
.mws-vehicle-table th,
.mws-vehicle-table td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.mws-vehicle-table th { width: 40%; color: #555; font-weight: 600; }

/* ── Formulaires devis / financement ── */
.mws-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.mws-form-wrap h3 { margin-top: 0; }
.mws-vehicle-badge {
    background: #eaf4fb;
    border-left: 4px solid #2980b9;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.mws-field { margin-bottom: 14px; }
.mws-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.mws-field input[type=text],
.mws-field input[type=email],
.mws-field input[type=tel],
.mws-field input[type=number],
.mws-field select,
.mws-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    box-sizing: border-box;
}
.mws-success { background: #d4edda; color: #155724; padding: 10px 14px; border-radius: 5px; margin-bottom: 14px; }
.mws-error   { background: #f8d7da; color: #721c24; padding: 10px 14px; border-radius: 5px; margin-bottom: 14px; }

/* ── Calculateur financement ── */
.mws-calculator {
    background: #f4f4f4;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.mws-calculator h4 { margin-top: 0; }
.mws-calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mws-calc-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9em; }
.mws-calc-row input, .mws-calc-row select { padding: 7px 10px; border: 1px solid #ccc; border-radius: 4px; }
.mws-calc-result { margin-top: 14px; font-size: 1.1em; color: #333; }
.mws-calc-result strong { color: #27ae60; }

@media (max-width: 600px) {
    .mws-btn-group { flex-direction: column; }
    .mws-btn { width: 100%; }
    .mws-calc-row { grid-template-columns: 1fr; }
}

/* ── Options & équipements (panier / checkout / page merci) ── */

/* Layout photo + détails côte à côte */
.mws-summary-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.mws-summary-layout .mws-thumb {
    flex: 0 0 220px;
    max-width: 220px;
    margin: 0;
}
.mws-summary-layout .mws-thumb img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}
.mws-summary-details { flex: 1 1 260px; }

/* Section équipements – page merci */
.mws-options-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.mws-options-section strong {
    display: block;
    margin-bottom: 8px;
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #555;
}
.mws-options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
}
.mws-options-list li {
    font-size: .9em;
    color: #333;
    padding: 2px 0;
}
.mws-options-list li::before { content: none; } /* reset thème */

/* Lien fiche véhicule */
.mws-listing-link {
    display: inline-block;
    margin-top: 10px;
    font-size: .9em;
    color: #2980b9;
    text-decoration: none;
}
.mws-listing-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .mws-summary-layout { flex-direction: column; }
    .mws-summary-layout .mws-thumb { max-width: 100%; flex: none; }
    .mws-options-list { grid-template-columns: 1fr; }
}
