/**
 * ITS Rugby — Champ « Votre club » au checkout It's Club.
 * Charge uniquement quand its_checkout_club_required = 1 et niveau 5.
 * Couleurs alignees sur la charte des mails/espaces (vert #1C3D34).
 */

.its-checkout-club {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.its-checkout-club-help {
  margin: 0 0 12px;
  color: #1C3D34;
  font-size: 14px;
  line-height: 1.5;
}

.its-checkout-club-field {
  position: relative;
}

.its-checkout-club-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.its-checkout-club-search {
  width: 100%;
  box-sizing: border-box;
}

/* ── Liste de resultats ─────────────────────────────── */

.its-checkout-club-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 2px 0 0;
  padding: 0;
  /* 8 declinaisons pour un gros club (pro, 7, espoirs, crabos, alamercery,
     gaudermen, feminines) : a 280px on n'en voyait que 4 ou 5, et le classement
     pousse justement les jeunes et les feminines vers le bas. */
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid #C4C4C4;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.its-checkout-club-results[hidden] {
  display: none;
}

.its-checkout-club-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #EDEDED;
}

.its-checkout-club-result:last-child {
  border-bottom: 0;
}

.its-checkout-club-result:hover,
.its-checkout-club-result.is-active {
  background: #F1F6F4;
}

.its-checkout-club-result-name {
  font-weight: 600;
  color: #1C3D34;
}

/* Mini-fiche (competition / saison) : departage les homonymes. */
.its-checkout-club-result-info {
  color: #1C3D34;
  font-size: 13px;
}

/* ── Statut + repli ─────────────────────────────────── */

.its-checkout-club-status {
  margin: 6px 0 0;
  min-height: 18px;
  color: #1C3D34;
  font-size: 13px;
}

.its-checkout-club-status:empty {
  margin: 0;
  min-height: 0;
}

.its-checkout-club-fallback {
  margin: 10px 0 0;
  color: #1C3D34;
  font-size: 13px;
}

.its-checkout-club-fallback a {
  color: #1C3D34;
}

/* ── Mobile (56 % de l'audience) ─────────────────────── */

@media (max-width: 600px) {
  .its-checkout-club-results {
    max-height: 55vh;
  }

  .its-checkout-club-result {
    padding: 12px 14px;
  }
}

/* ── Rappel de vocation du profil ────────────────────
   Le coeur du garde-fou n'est pas technique mais editorial : dire d'entree
   a qui s'adresse ce profil, et offrir la sortie Supporter au meme endroit. */

.its-checkout-club-notice {
  margin: 0 0 16px;
  padding: 0;
  background: transparent; /* pas d'encadré sur la carte blanche (Félix 03/11) */
  border-left: 0; /* plus de trait latéral (Félix 03/11) */
  border-radius: 0;
}

.its-checkout-club-notice-lead {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1C3D34;
  line-height: 1.45;
}

.its-checkout-club-notice-alt {
  margin: 0;
  color: #1C3D34;
  font-size: 14px;
  line-height: 1.45;
}

.its-checkout-club-notice-alt a {
  color: #1C3D34;
  font-weight: 600;
}

/* ── Attestation ─────────────────────────────────────
   Declaration explicite, pas un consentement RGPD : jamais routee vers le
   systeme de consentement hashe. */

.its-checkout-club-attest {
  margin: 14px 0 0;
}

/* Préfixe .pmpro_form : sans lui, « .pmpro_form label » (display:block, 12px gras)
   l'emportait et la case se tassait en petit texte gras (Félix 03/11). Même rendu
   que les cases de consentement. */
.its-checkout-club-attest label,
.pmpro_form .its-checkout-club-attest label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1C3D34;
  line-height: 1.5;
  cursor: pointer;
}

.its-checkout-club-attest input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #1C3D34;
  cursor: pointer;
}

.its-checkout-club-attest label > span {
  flex: 1;
  min-width: 0;
}

/* ── Accès aux données, commun à tous les niveaux ─────
   Leve le malentendu qui pousse a choisir un profil « superieur » pour avoir
   plus de donnees : le tier d'acces ne depend pas du niveau, seulement du fait
   d'en avoir un (cf. its-access-tier.php). */

.its-checkout-club-data {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #EDEDED;
  color: #1C3D34;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Rappel « une fiche existe peut-etre deja » ───────
   Le flux sportif alimente les fiches AVANT l'inscription : beaucoup de gens
   l'ignorent et croient devoir repartir de zero, ce qui cree des doublons. */

.its-checkout-club-claim {
  margin: 14px 0 0;
  color: #1C3D34;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Revendication à l'inscription (03/11) ─────────────── */

.its-checkout-claim {
  margin: 16px 0 0;
}

.its-checkout-club-result.is-taken {
  cursor: default;
  opacity: .6;
}

.its-checkout-club-result.is-taken:hover {
  background: transparent;
}

.its-checkout-claim-consent {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Titre « Votre profil » / « Votre club » : même titre souligné que les autres étapes (Félix 03/11). */
.its-checkout-club > legend,
.pmpro_form .its-checkout-club > legend {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(28, 61, 52, .2);
}
.its-checkout-club > legend h2,
.pmpro_form .its-checkout-club > legend h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #1C3D34;
  text-transform: none;
  letter-spacing: 0;
}

/* Revendication : notice RGPD et case d'accord sans trait latéral, case comme les autres (Félix 03/11).
   Préfixe .pmpro_form pour passer devant « .pmpro_form label » (12px gras). */
.its-checkout-claim-consent .its-rgpd-notice {
  margin: 12px 0;
  background: transparent; /* pas d'encadré sur la carte blanche (Félix 03/11) */
  border: 0;
}
.its-checkout-claim-consent .its-rgpd-notice summary,
.its-checkout-claim-consent .its-rgpd-body {
  padding-left: 0;
}
.pmpro_form .its-checkout-claim-consent .its-rgpd-check {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 400;
  color: #1C3D34;
}
.its-checkout-claim-consent .its-rgpd-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
/* Aide sous la recherche de fiche : même rendu que l'aide du pseudo (teal, 13px). */
.pmpro_form .its-checkout-claim .pmpro_form_hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(28, 61, 52, .8);
}

/* Consentement de revendication masqué tant qu'aucune fiche n'est choisie : un style de fieldset
   l'emportait sur l'attribut hidden et le bloc s'affichait vide (Félix 03/11). */
.pmpro_form .its-checkout-claim-consent[hidden] {
  display: none;
}
/* Notice RGPD de revendication : même taille que le reste du formulaire (14px). */
.its-checkout-claim-consent .its-rgpd-notice summary strong,
.its-checkout-claim-consent .its-rgpd-notice summary span {
  font-size: 14px;
}
/* « Pour les joueurs… » et « Vous ne jouez pas en club ? … » à la suite, sur une ligne (Félix 03/11). */
.its-checkout-club-notice-lead,
.its-checkout-club-notice-alt {
  display: inline;
  margin: 0;
}

/* Justificatif de revendication à l'inscription (05/11) : tailles du formulaire (14px libellé, 13px aides)
   et note sur toute la largeur, au lieu du rendu compact des fiches (11px, 90 caractères). */
.pmpro_form .its-checkout-claim-consent .its-claim-licence-field {
  margin: 16px 0 0;
}
.pmpro_form .its-checkout-claim-consent .its-claim-licence-label {
  font-size: 14px;
  letter-spacing: 0;
}
.pmpro_form .its-checkout-claim-consent .its-claim-licence-hint,
.pmpro_form .its-checkout-claim-consent .its-claim-licence-note {
  font-size: 13px;
  opacity: 1;
  color: rgba(28, 61, 52, .8);
}
.pmpro_form .its-checkout-claim-consent .its-claim-licence-note {
  max-width: none;
  margin-top: 6px;
}
.pmpro_form .its-checkout-claim-consent .its-claim-licence-field input[type=file] {
  font-size: 14px;
}
