/* ================================================================
   AFP-ACP — Paiement PayPal
   Shortcode [afpacp_paiement]
   ================================================================ */

:root {
    --pmt-accent:      #1a5f7a;
    --pmt-accent-dark: #0e3d50;
    --pmt-bg:          #f4f7f9;
    --pmt-border:      #d4e3eb;
    --pmt-text:        #1c2b35;
    --pmt-muted:       #6b8394;
    --pmt-error:       #c0392b;
    --pmt-success:     #27ae60;
    --pmt-warn:        #e67e22;
    --pmt-radius:      10px;
}

.afpacp-pmt-wrap {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 16px 48px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--pmt-text);
}

/* ---- Intro ---- */
.afpacp-pmt-intro {
    background: var(--pmt-bg);
    border: 1px solid var(--pmt-border);
    border-radius: var(--pmt-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--pmt-muted);
}

/* ---- Membre connecté ---- */
.afpacp-pmt-membre-info {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .9rem;
    color: #2e7d32;
}

/* ---- Formulaire ---- */
.afpacp-pmt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.afpacp-pmt-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.afpacp-pmt-row label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pmt-text);
}

.afpacp-pmt-row label span {
    color: var(--pmt-error);
}

.afpacp-pmt-row input[type="text"],
.afpacp-pmt-row input[type="email"],
.afpacp-pmt-row input[type="number"] {
    border: 1.5px solid var(--pmt-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .95rem;
    color: var(--pmt-text);
    outline: none;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.afpacp-pmt-row input:focus {
    border-color: var(--pmt-accent);
    box-shadow: 0 0 0 3px rgba(26,95,122,.12);
}

/* Montant avec symbole € */
.afpacp-pmt-montant-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.afpacp-pmt-montant-wrap input {
    max-width: 160px;
}
.afpacp-pmt-euro {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pmt-muted);
}

/* ---- Boutons ---- */
.afpacp-pmt-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.afpacp-pmt-actions--center {
    justify-content: center;
}

.afpacp-pmt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .95rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .25s, transform .2s;
}

.afpacp-pmt-btn--primary {
    background: var(--pmt-accent);
    color: #fff !important;
}
.afpacp-pmt-btn--primary:hover {
    background: var(--pmt-accent-dark);
    transform: translateY(-1px);
}

.afpacp-pmt-btn--cancel {
    background: #fff;
    color: var(--pmt-error) !important;
    border: 1.5px solid var(--pmt-error);
}
.afpacp-pmt-btn--cancel:hover {
    background: #fdf0ef;
}

.afpacp-pmt-btn--paypal {
    background: none;
    padding: 0;
    border: none;
}
.afpacp-pmt-btn--paypal img {
    display: block;
    border-radius: 4px;
}

/* ---- Récapitulatif ---- */
.afpacp-pmt-recap {
    background: #fff;
    border: 1px solid var(--pmt-border);
    border-radius: var(--pmt-radius);
    padding: 28px;
}
.afpacp-pmt-recap h2 {
    font-size: 1.1rem;
    color: var(--pmt-accent);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pmt-border);
}

.afpacp-pmt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: .95rem;
}
.afpacp-pmt-table th {
    text-align: left;
    font-weight: 600;
    color: var(--pmt-muted);
    padding: 8px 12px 8px 0;
    width: 35%;
    vertical-align: top;
}
.afpacp-pmt-table td {
    padding: 8px 0;
    color: var(--pmt-text);
}

.afpacp-pmt-note {
    font-size: .82rem;
    color: var(--pmt-muted);
    font-style: italic;
    margin-top: 20px;
    text-align: center;
}

/* ---- Notices ---- */
.afpacp-pmt-notice {
    border-radius: var(--pmt-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: .92rem;
    line-height: 1.6;
}
.afpacp-pmt-notice p { margin: 4px 0; }
.afpacp-pmt-notice h2 { margin: 0 0 8px; font-size: 1.1rem; }

.afpacp-pmt-notice--error {
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    color: var(--pmt-error);
}
.afpacp-pmt-notice--success {
    background: #edfaf2;
    border: 1px solid #a5d6a7;
    color: #1e7d40;
    text-align: center;
}
.afpacp-pmt-notice--warn {
    background: #fef9ec;
    border: 1px solid #f9d77e;
    color: var(--pmt-warn);
}

.afpacp-pmt-ref {
    font-size: .85rem;
    color: var(--pmt-muted);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .afpacp-pmt-recap {
        padding: 20px 16px;
    }
    .afpacp-pmt-actions--center {
        flex-direction: column;
    }
}

/* ---- Notice annulation (forte, bien visible) ---- */
.afpacp-pmt-notice--annule {
    background: #fff8e1;
    border: 2px solid #f9a825;
    color: #5d4037;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--pmt-radius);
    margin-bottom: 24px;
    font-size: .95rem;
    line-height: 1.6;
    box-shadow: 0 4px 16px rgba(249,168,37,.18);
}
.afpacp-pmt-notice-ico {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.afpacp-pmt-notice--annule strong {
    display: block;
    font-size: 1rem;
    color: #e65100;
    margin-bottom: 4px;
}
