
.acf-fields > .acf-field {display: inline-block!important; vertical-align: text-top; border-top: none!important; min-width: 240px;}
/*.acf-field.acf-field-685aeabc01130, .acf-field.acf-field-685aeac901131, .acf-field.acf-field-685c341ad28ca, .acf-field.acf-field-6862d761712a6, .acf-field.acf-field-6866a3f13731a, .acf-field.acf-field-6866a4113731b, .acf-field.acf-field-6866a4253731c, .acf-field.acf-field-685acb3a36dcf, .acf-field.acf-field-6862d761712a6 {display: none!important;}*/

.cfv2-registration, #cfv2-search-block {max-width: 1200px;}

/* FORM*/
.p-PaymentMethodSelector {display: none!important;}


/* Tabs */
.cfv2-tabs {display:flex; gap:1rem; margin-top:1rem;}
.cfv2-tab {padding:0.5rem 1rem; cursor:pointer; background:#eee; border:1px solid #ccc; border-bottom:none; border-radius: 24px; color: black; font-weight: bold;}
.cfv2-tab.active {background:#c5a743; font-weight:700; border:none; border-radius: 24px; color:white;}
.cfv2-tab[disabled] {opacity:0.55; cursor:not-allowed; border:none; border-radius: 24px; font-weight: bold;}

/* per allineare bene testo + freccia */
.cfv2-tab { 
  display:inline-flex; 
  align-items:center; 
}

.cfv2-arrow {
/*
  display:inline-block;
  width:.8em;
  height:.8em;
    border-color: unset!important;
  border-top:3px solid #aaa;
  border-right:3px solid #aaa;
  border-bottom:none;
  border-left:none;
  transform:rotate(45deg);
  align-self:center;
*/
}

/* Arrow = gambo (—) + punta (>) usando ::before e ::after */
.cfv2-arrow {
  --clr: #aaa;          /* colore */
  --thickness: 3px;     /* spessore linea/bordi */
  --head: .8em;         /* lato del quadratino della punta (prima della rotazione) */
  --shaft: 1.2em;       /* lunghezza del segmento orizzontale */
  
  display: inline-flex;
  align-items: center;
  color: var(--clr);
     border-color: unset!important;
}

/* Gambo */
.cfv2-arrow::before {
  content: "";
  width: var(--shaft);
  height: var(--thickness);
  background: currentColor;
  border-radius: 999px; /* leggermente arrotondato, opzionale */
    margin-right: -12px;
}

/* Punta */
.cfv2-arrow::after {
  content: "";
  width: var(--head);
  height: var(--head);
  border-top: var(--thickness) solid currentColor;
  border-right: var(--thickness) solid currentColor;
  transform: rotate(45deg);        /* → punta a destra */
  margin-left: calc(var(--head) * .15); /* spazio tra gambo e punta */
}





.cfv2-arrow.active {
  border-color:#c5a743;
}

/* quando l'elemento ha anche la classe .arrow */
.cfv2-arrow.active::before { color:white; }
.cfv2-arrow.active::after { color:white; }


/* Sections hidden by default */
.cfv2-registration,
#cfv2-payment-wrap {display:none;}
#cfv2-bonifico-info {display:none;}

/*tabella risultati */

#cfv2-dialog thead {background-color:#c5a743 !important;
  color: white;
}
#cfv2-search-table tr.odd {
  background: #424242 !important;
  color: white !important;
    cursor: pointer;
}
#cfv2-search-table tr.odd:hover {
      background: #b9b9b9 !important;
}
#cfv2-search-table tr.even:hover {
      background: #b9b9b9 !important;
}

#cfv2-search-table tr.even {
  background: #000 !important;
    cursor: pointer;
}
#cfv2-search-table tr.even {
  background: #575050 !important;
    cursor: pointer;
}

#cfv2-search-table td {
  
  color: white !important;
}


/*tabella risultati squadre */

div[id^="ptsc-team-results-"] thead {background-color:#c5a743 !important;
  color: white;
}
div[id^="ptsc-team-results-"] tr.odd {
  background: #424242 !important;
  color: white !important;
    cursor: pointer;
}
div[id^="ptsc-team-results-"] tr.odd:hover {
      background: #b9b9b9 !important;
}
div[id^="ptsc-team-results-"] tr.even:hover {
      background: #b9b9b9 !important;
}
div[id^="ptsc-team-results-"] tr.even {
  background: #000 !important;
    cursor: pointer;
}
div[id^="ptsc-team-results-"] tr.even {
  background: #575050 !important;
    cursor: pointer;
}

div[id^="ptsc-team-results-"] td {
  
  color: white !important;
}

/*tabelle iscritti  */
.cfv2-team-roster__table td {color: white !important;}



/*campi ricerca squadre*/

#ptsc-team-search input {
max-width: 360px;
padding: 8px 14px!important;
}

#ptsc-team-search input::placeholder {
  color: #aaa;
  opacity: 1;
}

/*campi input form*/

.cfv2-registration button {border-radius: 24px; font-weight: bold;}
#cfv2-search-block button {border-radius: 24px; font-weight: bold;}
#ptsc-team-search button {border-radius: 24px; font-weight: bold;}

#cfv2-search-block .cfv2-search-form .cfv2-input-row {
  display:flex;
  gap:1rem;
}
#cfv2-search-block .cfv2-search-form button {
  margin-top:0.5rem;
}
@media (max-width:640px){
  #cfv2-search-block .cfv2-search-form .cfv2-input-row {
    flex-direction:column;
  }
}


.button-disabled {
	cursor: not-allowed !important;
	opacity: .6;           /* facoltativo: look “bloccato” */
	pointer-events: none;  /* backup su vecchi browser */
}

.cfv2-registration input { 

  background-color: #000000 !important;
  border-radius: 24px !important;
  padding: 10px 12px!important;
  border: 2px solid!important;
    border-color: #c5a743 !important;
  box-shadow: none !important;
    color: white!important;
}


#top .cfv2-registration select { 

  background-color: #000000 !important;
  border-radius: 24px !important;
  padding: 9px 8px;
    border: 2px solid!important;
    border-color: #c5a743 !important;
  box-shadow: none !important;
    color: white!important;
}

.acf-fields.-border {
  border: none!important;
  background: none!important;
}

/*campi bloccati*/
.acf-fields > .acf-field.bloccato input {
  background-color: #444!Important;
  color: #aaa !important;
  cursor: not-allowed;
}


/*campi ricerca fide */
input#cfv2-lastname-input, input#cfv2-id-input {max-width: 300px; background: #444444!important; border-radius: 24px;
    border: 2px solid #c5a743 !important; font-weight: bold; padding-left: 12px!important; color: white!important;}


/*campi nascosti */

input#cfv2-netto, .acf-field-685aeac901131, .acf-field-685aef95bd5bd, .acf-field-685acb3a36dcf, .acf-field-6862d761712a6, .acf-field-6866a4113731b, .acf-field-6866a4253731c  {display: none!important;}
.acf-fields > .acf-field.disp-none {display: none!important;}
.acf-fields > .acf-field.acf-field-ptsc-torneo-id {display: none!important;}


/*formattazione form */
.acf-fields > .acf-field.acf-field-ptsc-team-name .acf-label  label { font-size:24px!important;}
.acf-fields > .acf-field.acf-field-ptsc-captain-index  {display: block!important; }
.acf-fields > .acf-field.acf-field-ptsc-captain-index li label {font-size:18px!important; }
.acf-fields > .acf-field.acf-field-685c3b3d1419a li label {font-size:18px!important; }
.acf-fields > .acf-field.acf-field-ptsc-captain-index .acf-label  label {font-size:24px!important;}
.acf-fields > .acf-field.acf-field-ptsc-player3-group .acf-label  label[for=acf-field_ptsc_player3_group] {font-size:24px!important;}
.acf-fields > .acf-field.acf-field-ptsc-player2-group .acf-label  label[for=acf-field_ptsc_player2_group] {font-size:24px!important;}
.acf-fields > .acf-field.acf-field-ptsc-player1-group .acf-label  label[for=acf-field_ptsc_player1_group] {font-size:24px!important;}
.acf-fields > .acf-field.acf-field-685c3b3d1419a {display: block!important; font-size:24px;}
/*tabelle*/

.ui-dialog.ui-corner-all.ui-widget.ui-widget-content {
background-color: #414141!important;
}
.ui-dialog-titlebar {color: #333!important; border:none!imoprtant; }
#cfv2-search-table_wrapper label {color: white!important;}
#cfv2-search-table_wrapper #cfv2-search-table_info {color: white!important;}


#cfv2-search-table_next.paginate_button {  background-color: #666!important;}
#cfv2-search-table_next.paginate_button.disabled {  background-color: #aaa!important;}
#cfv2-search-table_previous.paginate_button {  background-color: #666!important;}
#cfv2-search-table_previous.paginate_button.disabled {  background-color: #aaa!important;}
.paginate_button {  background-color: #666!important;}
.paginate_button.current {  background-color: #3e3d3d!important;}




/*blocco pagamento */
#cfv2-payment-wrap { margin-top:22px;}

#commissione-preview, #totale-preview {padding: 10px 12px !important;
  background: #444444;
  width: 200px;
  border-radius: 24px;
    border: 2px solid #c5a743 !important; font-weight: bold;}

#totale-preview {margin-bottom: 24px;}



/* --- Stripe PaymentElement: stato di caricamento --- */
#cfv2-payment-wrap.cfv2-loading {
  position: relative;
  min-height: 180px;       /* evita salti di layout */
}

/* Durante il loading, tieni visibile il contenitore per consentire a Stripe di misurare la larghezza,
   ma rendi invisibile il suo contenuto. */
#cfv2-payment-wrap.cfv2-loading #cfv2-payment-element {
  visibility: hidden;      /* NON display:none, Stripe deve poter calcolare la larghezza */
}

#cfv2-payment-wrap.cfv2-loading .acf-form-submit {
  display: none;           /* nascondi il submit finché i campi non sono pronti */
}

#cfv2-bonifico-info {
scroll-margin-top: 120px;     
}

#cfv2-payment-wrap {
   scroll-margin-top: 120px;  
}

/* Messaggio di caricamento */
#cfv2-payment-wrap .cfv2-payment-loading {
  margin: 12px 0;
  padding: 12px 16px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-weight: 600;
}



@media (prefers-reduced-motion:no-preference){
  #cfv2-payment-wrap .cfv2-payment-loading { animation: cfv2Pulse 1.5s infinite ease-in-out; }
  @keyframes cfv2Pulse { 0% { opacity:.6; } 50% { opacity:1; } 100% { opacity:.6; } }
}

/* Se in futuro riabiliti anche un submit dentro il form ACF, nascondilo nel loading */
#cfv2-payment-wrap.cfv2-loading form [type="submit"] { display: none; }



/* --- [PATCH 2025-09-19] Stripe loader overlay + più robusto hiding --- */
#cfv2-payment-wrap.cfv2-loading #cfv2-payment-element,
#cfv2-payment-wrap.cfv2-loading #cfv2-payment-element *,
#cfv2-payment-wrap.cfv2-loading #cfv2-payment-element iframe {
  opacity: 0 !important;
  visibility: hidden !important;
}
#cfv2-payment-wrap .cfv2-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset;
  z-index: 2;
}


/* mostra stato visivo del bottone disabilitato */
.acf-form-submit input[type="submit"][disabled]{
  pointer-events: none;
  opacity: .6;
  cursor: not-allowed;
}

.AnimatePresence {display: none!important}
.p-BillingAddressForm {display: none!important}

#top #blocco-responsive {
    
margin-top: 1px;    
}
/* Css custom / manipolazione Enfold */
@media only screen and (max-width: 1024px) {
    #top #blocco-responsive {
    margin-top: 0px;    
}

    
    
#top #blocco-responsive .flex_column_table {
  display: block!important;
  table-layout: fixed;
  width: 100%;
  float: left;
}
    
#top #blocco-responsive .flex_column_table_cell {
  float: none;
  display: block;
  width: 100%;
}
#top .flex_column_table {
  display: block!important;
  table-layout: fixed;
  width: 100%;
  float: left;
}    
    
}
