/* Formulaire de paiement Odeya (cartes cadeaux, puis adhésions).
   Couleurs du site : rose poudré #d9abab, rose clair #f7ecec, prune #2b161b, texte #645659.
   Le bouton « Payer » garde le style des boutons du thème (Apparence → Personnaliser → Global → Boutons). */

.odv-paiement { max-width: 860px; margin: 56px auto 0; } /* de l'air sous la bannière */
.odv-paiement h3 { margin: 0 0 14px; }

/* Les 4 blocs, séparés par un filet */
.odv-pay-bloc + .odv-pay-bloc { border-top: 1px solid #f0e4e4; margin-top: 28px; padding-top: 28px; }

/* Champs par deux sur ordinateur */
.odv-pay-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.odv-pay-grille:empty { display: none; }
.odv-pay-grille .mp-form-row { margin-bottom: 12px; }
.odv-pay-grille .odv-cadeau-compte { display: contents; } /* ses champs se rangent dans la grille */
.odv-pay-champs .mepr_mepr-address-one,
.odv-pay-champs .mepr_mepr-address-two,
.odv-pay-champs .mepr-field-checkbox,
.odv-pay-champs .mepr_custom_field:has(fieldset) { grid-column: 1 / -1; }

.odv-pay-aide { font-size: 13px; opacity: .8; margin: -4px 0 14px; }
.odv-pay-note { text-align: center; font-size: 15px; line-height: 1.6; max-width: 620px; margin: 18px auto 0; }
.odv-pay-note-titre { display: block; font-size: 20px; font-weight: normal; color: #2b161b; margin-bottom: 4px; }
.odv-cadeau-connecte, .odv-cadeau-compte-deja { margin: 0 0 14px; }
.odv-pay-test { color: #b26200; font-weight: 600; margin-top: 10px; }

/* Cartes cadeaux à choisir */
.odv-gc-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mp_wrapper .odv-gc, .odv-gc {
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    aspect-ratio: 1.6; padding: 14px 16px; border-radius: 14px; cursor: pointer;
    background: #d9abab; color: #fff; border: 3px solid transparent; overflow: hidden; isolation: isolate;
    transition: transform .15s ease, border-color .15s ease;
}
.mp_wrapper .odv-gc--an, .odv-gc--an { background: #2b161b; }
.odv-gc input { position: absolute; opacity: 0; pointer-events: none; }
.odv-gc:has(input:checked) { border-color: #2b161b; transform: translateY(-4px); }
.odv-gc--an:has(input:checked) { border-color: #d9abab; }
.odv-gc:has(input:focus-visible) { outline: 2px solid #2b161b; outline-offset: 3px; }
.odv-gc:hover { transform: translateY(-2px); }
/* Photo de danse en transparence + léger fondu en bas pour lire la durée et le prix */
.odv-gc-photo {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-size: cover; background-position: center;
    filter: grayscale(1) contrast(1.25); opacity: .5; mix-blend-mode: multiply;
}
.odv-gc--an .odv-gc-photo { opacity: .38; mix-blend-mode: screen; }
.odv-gc::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(transparent 45%, rgba(43, 22, 27, .35)); }
.odv-gc--an::after { background: linear-gradient(transparent 40%, rgba(0, 0, 0, .45)); }
.odv-gc-haut { display: flex; justify-content: space-between; align-items: flex-start; }
.odv-gc-logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.odv-gc-logo-texte { font-size: 24px; line-height: 1; }
.odv-gc-titre { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.odv-gc-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.odv-gc-duree { font-size: 30px; line-height: 1.1; }
.odv-gc-prix { font-size: 22px; }

/* Envoi : deux pastilles */
/* Pastilles côte à côte (MemberPress met ses labels en bloc), date au bout de la ligne */
.mp_wrapper .odv-pay-pastilles, .odv-pay-pastilles { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px; }
.mp_wrapper .odv-pay-pastilles > label, .mp_wrapper .odv-pay-pastilles > input { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
.mp_wrapper .odv-pay-pastilles label, .odv-pay-pastilles label { display: inline-flex; cursor: pointer; margin: 0; padding: 0; width: auto; }
.odv-pay-pastilles input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.odv-pay-pastilles span { display: inline-block; padding: 10px 20px; line-height: 1.3; border: 1px solid #e2d6d6; border-radius: 12px; }
.odv-pay-pastilles input:checked + span { border-color: #d9abab; background: #f7ecec; }
.odv-pay-pastilles input:focus-visible + span { outline: 2px solid #2b161b; outline-offset: 2px; }
.odv-cadeau-envoi { margin-bottom: 16px; }
.mp_wrapper input.odv-cadeau-date, input.odv-cadeau-date {
    display: none; width: auto; min-width: 190px; height: auto; margin: 0; padding: 9px 14px; line-height: 1.3;
    border: 1px solid #d9abab; border-radius: 12px; background: #fff; color: #2b161b; font: inherit; box-shadow: none; outline: none;
}
input.odv-cadeau-date:focus { border-color: #2b161b; }
input.odv-cadeau-date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.odv-cadeau-envoi:has(input[value="date"]:checked) .odv-cadeau-date { display: inline-block; }

/* Cases et paiement */
.odv-cadeau-case { display: block !important; width: 100%; margin: 10px 0; }
.mp_wrapper .odv-cadeau-cases label, .odv-cadeau-cases label { display: flex !important; width: auto !important; float: none !important; gap: 8px; align-items: flex-start; font-weight: normal; margin: 10px 0; }
.odv-cadeau-cases input { flex-shrink: 0; margin-top: 4px; }
#odv-cadeau-carte { margin: 8px 0; }
.odv-cadeau-carte-erreur { color: #c0392b; margin: 6px 0; }
.odv-cadeau-erreurs { margin-bottom: 16px; }
.odv-cadeau-payer { margin-top: 12px; }
.odv-cadeau-payer[disabled] { opacity: .6; cursor: wait; }

/* Étapes : une seule ouverte, les autres repliées (classe posée par le JS : sans JS tout reste ouvert) */
.odv-etape-tete { display: flex; align-items: center; gap: 12px; }
.odv-etape-tete h3 { margin: 0; flex: 1 1 0; min-width: 0; }
.odv-etapes .odv-faite .odv-etape-tete h3 { flex: 0 1 auto; }
.odv-etape-num, .odv-etape-resume, .odv-etape-modifier, .odv-etape-suite { display: none; }
.odv-etapes .odv-pay-bloc + .odv-pay-bloc { border-top: 1px solid #f0e4e4; margin-top: 12px; padding-top: 18px; }
.odv-etapes .odv-pay-bloc { border: 1px solid #f0e4e4; border-radius: 12px; padding: 18px 20px; }
.odv-etapes .odv-pay-bloc.odv-ouverte { border-color: #d9abab; }
.odv-etapes .odv-etape-num {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%; background: #f7ecec; color: #2b161b; font-size: 14px;
}
.odv-etapes .odv-ouverte .odv-etape-num { background: #2b161b; color: #fff; }
.odv-etapes .odv-faite .odv-etape-num { background: #d9abab; color: #fff; }
.odv-etapes .odv-faite .odv-etape-resume { display: block; font-size: 14px; opacity: .8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odv-etapes .odv-faite .odv-etape-modifier {
    display: inline; margin-left: auto; padding: 0; background: none; border: 0;
    color: #b07c7c; font-size: 14px; text-decoration: underline; cursor: pointer; box-shadow: none;
}
.odv-etapes .odv-etape-corps { display: none; padding: 18px 0 0 42px; }
.odv-etapes .odv-ouverte .odv-etape-corps { display: block; }
.odv-etapes .odv-etape:not(.odv-ouverte):not(.odv-faite) { opacity: .55; }
.odv-etapes .odv-etape-suite { display: inline-block; margin-top: 16px; }

/* Récapitulatif avant de payer */
.odv-recap { margin: 0 0 18px; padding: 14px 16px; background: #f7ecec; border-radius: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.odv-recap dt { font-weight: normal; opacity: .75; }
.odv-recap dd { margin: 0; }
.odv-recap .odv-recap-mot { font-style: italic; white-space: pre-line; }
.odv-recap .odv-recap-total { font-size: 18px; color: #2b161b; font-weight: 600; }

/* Téléphone : champs les uns sous les autres, cartes qui défilent de côté */
@media (max-width: 640px) {
    .odv-pay-grille { grid-template-columns: 1fr; }
    .odv-gc-liste {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
        padding: 8px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch;
    }
    .odv-gc { flex: 0 0 72%; scroll-snap-align: center; }
    .odv-cadeau-payer, .odv-etape-suite { width: 100%; }
    .odv-paiement { margin-top: 32px; }
    .odv-etapes .odv-pay-bloc { padding: 14px; }
    .odv-etapes .odv-etape-corps { padding-left: 0; }
    .odv-etapes .odv-etape-tete { flex-wrap: wrap; }
    .odv-etapes .odv-faite .odv-etape-resume { order: 3; flex-basis: 100%; padding-left: 42px; }
    .odv-recap { grid-template-columns: 1fr; gap: 2px; }
    .odv-recap dd + dt { margin-top: 8px; }
}

/* Page d'activation d'une carte cadeau [odv_activer_carte] */
.odv-activation { max-width: 860px; margin-top: 40px; }
.odv-act-centre { text-align: center; }
.odv-act-boite { background: #fff; border: 1px solid #f0e4e4; border-radius: 14px; padding: 28px 30px; }
.odv-act-centre.odv-act-boite { margin: 0 auto; }
.odv-act-etroite.odv-act-boite { max-width: 520px; } /* saisie du code : encadré étroit */ /* pleine largeur, comme la page d'achat (était 520px, trop serré avec les champs du compte) */
.odv-act-icone { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #f7ecec; color: #9a6b6b; margin-bottom: 10px; }
.odv-activation .odv-act-titre { margin: 0 0 6px; }
.odv-act-texte { margin: 0 0 18px; opacity: .85; }
.odv-act-code { display: flex; flex-direction: column; gap: 12px; }
.odv-activation .odv-act-code input { text-align: center; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; padding: 14px; border: 1px solid #d9abab; border-radius: 12px; }
.odv-act-bouton, .odv-activation button.odv-act-bouton {
    display: inline-block; background: #2b161b; color: #fff !important; border: 0; border-radius: 12px;
    padding: 14px 28px; font: inherit; text-decoration: none !important; cursor: pointer; text-align: center; box-sizing: border-box;
}
.odv-act-bouton:hover { background: #4a2a31; }
.odv-act-bouton--clair { background: #fff; color: #2b161b !important; border: 1px solid #2b161b; }
.odv-act-bouton--clair:hover { background: #f7ecec; }
.odv-act-erreur { max-width: 520px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; background: #fbeaea; color: #8a2b2b; text-align: center; }
.odv-act-image { width: 100%; max-width: 420px; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(43, 22, 27, .18); }
.odv-act-centre .odv-act-image { max-width: 340px; margin-bottom: 18px; }
.odv-act-cadeau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 28px; }
.odv-act-de { font-size: 15px; letter-spacing: 1px; color: #9a6b6b; }
.odv-act-duree { font-size: 34px; line-height: 1.15; color: #2b161b; margin: 4px 0 12px; }
.odv-act-mot { margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 3px solid #d9abab; font-style: italic; }
.odv-act-info { font-size: 14px; opacity: .8; margin: 0; }
.odv-act-choix { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
/* « J'ai déjà un compte » : un bandeau (texte à gauche, bouton à droite) au-dessus du formulaire pleine largeur, comme la page d'achat */
.odv-act-choix > .odv-act-boite:first-child { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: center; }
.odv-act-choix > .odv-act-boite:first-child .odv-act-bouton { grid-column: 2; grid-row: 1 / span 2; width: auto; padding-left: 32px; padding-right: 32px; }
.odv-act-choix h3 { margin: 0 0 6px; }
.odv-act-choix .odv-act-bouton { width: auto; padding-left: 40px; padding-right: 40px; margin-top: 6px; } /* largeur du texte, comme « Payer » sur la page d'achat */
.odv-act-choix .odv-act-large { grid-column: 1 / -1; }
.odv-activation .odv-pay-grille input, .odv-activation .odv-pay-grille select { width: 100%; }
.odv-act-gauche { text-align: left; }
@media (max-width: 700px) {
    .odv-activation { margin-top: 24px; }
    .odv-act-cadeau, .odv-act-choix { grid-template-columns: 1fr; gap: 18px; }
    .odv-act-choix > .odv-act-boite:first-child { grid-template-columns: 1fr; }
    .odv-act-choix .odv-act-bouton { width: 100%; }
    .odv-act-choix > .odv-act-boite:first-child .odv-act-bouton { grid-column: 1; grid-row: auto; width: 100%; margin-top: 10px; }
    .odv-act-cadeau { text-align: center; }
    .odv-act-mot { text-align: left; }
    .odv-act-boite { padding: 22px 18px; }
    .odv-act-duree { font-size: 28px; }
}
.odv-activation input[type="checkbox"] { width: auto; height: auto; flex-shrink: 0; }
