/**
 * CQ Payment Widget — Step 4 Styles
 *
 * Design basé sur la référence rapport-wrap.
 * Toutes les règles sont scopées sous .cq-payment-widget.
 * !important sur les propriétés critiques pour isoler du thème / Elementor.
 */

/* ── Wrapper ── */
.cq-payment-widget {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box !important;
}

/* ── Card ── */
.cq-payment-widget .cq-pay-card {
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 40px 48px !important;
}

/* ── Titre h1 ── */
.cq-payment-widget .cq-pay-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px !important;
    line-height: 1.3 !important;
}

/* ══════════════════════════════════════════
   PROFIL : avatar + infos
═══════════════════════════════════════════ */

.cq-payment-widget .cq-pay-profile {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 6px !important;
}

.cq-payment-widget .cq-pay-avatar-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
}

.cq-payment-widget .cq-pay-avatar {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: #c9d3e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.cq-payment-widget .cq-pay-avatar svg {
    width: 36px !important;
    height: 36px !important;
    fill: #8a9abf !important;
}

.cq-payment-widget .cq-pay-lock-badge {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    background: #f5a623 !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cq-payment-widget .cq-pay-lock-badge svg {
    width: 11px !important;
    height: 11px !important;
    fill: #fff !important;
}

.cq-payment-widget .cq-pay-phone {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

.cq-payment-widget .cq-pay-meta {
    font-size: 0.82rem !important;
    color: #555 !important;
    margin-top: 2px !important;
}

.cq-payment-widget .cq-pay-meta span {
    font-weight: 600 !important;
    color: #1a1a2e !important;
    letter-spacing: 2px !important;
}

/* ── Nom flouté (barre, comme Widget 2) ── */
.cq-payment-widget .cq-pay-name-blur {
    display: inline-block !important;
    width: 90px !important;
    height: 11px !important;
    background: #a0aec0 !important;
    border-radius: 3px !important;
    filter: blur(4px) !important;
    vertical-align: middle !important;
}

/* ── Date ── */
.cq-payment-widget .cq-pay-date-line {
    font-size: 0.82rem !important;
    color: #555 !important;
    margin-bottom: 18px !important;
    padding-left: 70px !important;
}

.cq-payment-widget .cq-pay-date-line strong {
    color: #2c5fdd !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════
   GRILLE 2 COLONNES
═══════════════════════════════════════════ */

.cq-payment-widget .cq-pay-body-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    align-items: start !important;
}

/* ── Colonne gauche ── */
.cq-payment-widget .cq-pay-left-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

/* Notice box */
.cq-payment-widget .cq-pay-notice-box {
    background: #fdf8ec !important;
    border: 1px solid #f0e0b0 !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    font-size: 0.875rem !important;
    color: #444 !important;
    line-height: 1.55 !important;
}

/* Trust row */
.cq-payment-widget .cq-pay-trust-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.cq-payment-widget .cq-pay-trust-icon {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    background: #dce6fb !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cq-payment-widget .cq-pay-trust-icon svg {
    width: 17px !important;
    height: 17px !important;
    fill: #2c5fdd !important;
}

.cq-payment-widget .cq-pay-trust-text {
    font-size: 0.875rem !important;
    color: #444 !important;
    line-height: 1.45 !important;
}

.cq-payment-widget .cq-pay-trust-text strong {
    color: #2c5fdd !important;
}

.cq-payment-widget .cq-pay-stars {
    display: flex !important;
    gap: 3px !important;
    margin-top: 4px !important;
}

.cq-payment-widget .cq-pay-star {
    color: #f5a623 !important;
    font-size: 1rem !important;
}

/* Bouton CTA */
.cq-payment-widget .cq-pay-btn {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    background: #2c5fdd !important;
    color: #fff !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: background 0.2s !important;
}

.cq-payment-widget .cq-pay-btn:hover {
    background: #1e4bbf !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Colonne droite ── */
.cq-payment-widget .cq-pay-right-col {
    margin-top: -6px !important;
}

.cq-payment-widget .cq-pay-warning-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin-bottom: 14px !important;
}

.cq-payment-widget .cq-pay-features-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 20px !important;
}

.cq-payment-widget .cq-pay-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
}

.cq-payment-widget .cq-pay-check {
    color: #2c5fdd !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════
   CHECKOUT WOOCOMMERCE
═══════════════════════════════════════════ */

.cq-payment-widget .cq-pay-checkout-wrapper {
    width: 100% !important;
    background: transparent !important;
    padding: 32px 48px !important;
    margin-top: 20px !important;
    box-sizing: border-box !important;
}

/* Supprimer les champs d'adresse inutiles */
.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-billing-fields__field-wrapper .form-row:not(.form-row-first):not(.form-row-last):not(.validate-email) {
    display: none !important;
}

.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-billing-fields .form-row {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Inputs WooCommerce */
.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-input-wrapper input,
.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-input-wrapper select {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    border-radius: 8px !important;
    border: 1px solid #dce6fb !important;
    padding: 12px 14px !important;
    min-height: 44px !important;
}

.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-input-wrapper input:focus,
.cq-payment-widget .cq-pay-checkout-wrapper .woocommerce-input-wrapper select:focus {
    border-color: #2c5fdd !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(44, 95, 221, 0.15) !important;
}

/* Bouton passer commande */
.cq-payment-widget .cq-pay-checkout-wrapper #place_order {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background: #2c5fdd !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 15px 24px !important;
    transition: background 0.2s !important;
}

.cq-payment-widget .cq-pay-checkout-wrapper #place_order:hover {
    background: #1e4bbf !important;
}

/* ══════════════════════════════════════════
   MOBILE < 620px
═══════════════════════════════════════════ */

@media (max-width: 620px) {
    .cq-payment-widget .cq-pay-card {
        padding: 28px 20px !important;
    }

    .cq-payment-widget .cq-pay-title {
        font-size: 1.4rem !important;
    }

    .cq-payment-widget .cq-pay-date-line {
        padding-left: 0 !important;
    }

    .cq-payment-widget .cq-pay-notice-box {
        display: none !important;
    }

    .cq-payment-widget .cq-pay-body-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cq-payment-widget .cq-pay-right-col {
        order: -1 !important;
        margin-top: 0 !important;
    }

    .cq-payment-widget .cq-pay-features-grid {
        grid-template-columns: 1fr !important;
    }

    .cq-payment-widget .cq-pay-checkout-wrapper {
        padding: 24px 18px !important;
    }
}
