/**
 * DemandeDevis v2.0 — Styles (WhatsApp Edition)
 */

/* ── Bouton panier ── */
.demandedevis-cart-container {
    margin: 20px 0;
    padding: 18px 20px;
    background: #f0fff4;
    border-radius: 8px;
    border: 2px solid #25d366;
}

.demandedevis-cart-container h4 {
    color: #128c5e;
    margin: 0 0 8px 0;
    font-size: 17px;
}

.demandedevis-cart-container p {
    margin: 0 0 14px 0;
    color: #555;
}

/* ── En-tête modal ── */
.dd-header {
    background: #25d366;
    color: white;
}

.dd-header .close {
    color: white;
    opacity: 1;
}

/* ── Info produit ── */
.dd-product-info {
    background: #e7f9e7;
    border-left: 4px solid #25d366;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* ── Résumé panier ── */
.dd-cart-summary {
    background: #e7f9e7;
    border-left: 4px solid #25d366;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
}

.dd-cart-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
}

.dd-cart-list li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px dashed #c8e6c9;
}

.dd-cart-list li:last-child {
    border-bottom: none;
}

.dd-cart-name {
    color: #333;
}

.dd-cart-qty {
    font-weight: bold;
    color: #128c5e;
    white-space: nowrap;
    margin-left: 10px;
}

/* ── Champ téléphone ── */
.dd-phone-group {
    display: flex;
    gap: 8px;
}

.dd-phone-cc {
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    max-width: 220px;
}

.dd-phone-num {
    flex: 1;
}

/* ── Obligatoire ── */
.dd-required {
    color: #e53935;
}

/* ── Succès ── */
.dd-success {
    text-align: center;
    padding: 20px;
    background: #e7f9e7;
    border-radius: 8px;
    border: 2px solid #25d366;
}

.dd-success h4 {
    color: #128c5e;
    margin: 10px 0 8px;
    font-size: 20px;
}

.dd-success p {
    color: #555;
    margin-bottom: 15px;
}

/* ── Bouton CTA WhatsApp ── */
.dd-wa-cta {
    background: #25d366 !important;
    border-color: #1da851 !important;
    color: white !important;
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
    transition: transform .15s, box-shadow .15s;
}

.dd-wa-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* ── Erreur ── */
.dd-error {
    background: #fff0f0;
    border-left: 4px solid #e53935;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* ── Spinner ── */
.dd-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;
    border-radius: 50%;
    animation: dd-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes dd-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .dd-phone-group {
        flex-direction: column;
    }
    .dd-phone-cc {
        max-width: 100%;
        width: 100%;
    }
}
