.jcm-form-wrapper,
.jcm-panel-wrapper,
.jcm-countdown-wrapper,
.jcm-partite-wrapper {
  --jcm-oro: #fec72e;
  --jcm-oro-light: #fff6d6;
  --jcm-oro-mid: #fdd96a;
  --jcm-oro-dark: #6d5412;
  --jcm-rosa: #f5acc7;
  --jcm-rosa-mid: #f0a0bd;
  --jcm-rosa-border: #e88aad;
  --jcm-rosa-text: #5c3d4f;
  --jcm-accent-hover: #e73255;
  --jcm-ink: #111827;
}

.jcm-form-wrapper {
  max-width: 900px;
  margin: 24px auto;
}

.jcm-form-wrapper h2,
.jcm-panel-wrapper h2,
.jcm-countdown-wrapper h2,
.jcm-partite-wrapper h2 {
  margin: 0 0 18px;
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--jcm-ink, #111827);
}

.jcm-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
}

.jcm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.jcm-field-full {
  grid-column: 1 / -1;
}

.jcm-field label,
.jcm-field-group > label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.jcm-field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  border: 1px solid #cfd3d9;
  border-radius: 6px;
  min-height: 42px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.jcm-consensi label,
.jcm-field-group label {
  display: block;
  margin-bottom: 10px;
}

.jcm-alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.jcm-alert-error {
  background: var(--jcm-rosa, #f5acc7);
  border: 1px solid var(--jcm-rosa-border, #e88aad);
  color: var(--jcm-rosa-text, #5c3d4f);
}

.jcm-alert-warning {
  background: var(--jcm-oro-light, #fff6d6);
  border: 1px solid var(--jcm-oro, #fec72e);
  color: var(--jcm-oro-dark, #6d5412);
}

.jcm-renewal-notice {
  margin-top: 16px;
}

.jcm-renewal-notice--expired {
  background: var(--jcm-rosa, #f5acc7);
  border-color: var(--jcm-rosa-border, #e88aad);
  color: var(--jcm-rosa-text, #5c3d4f);
}

.jcm-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--jcm-ink, #111827);
  color: #fff;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
  min-height: 44px;
  padding: 15px 33px 18px;
  cursor: pointer;
  font-weight: 400;
  font-family: "Juventus Fans Regular", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jcm-submit-btn:hover,
.jcm-submit-btn:focus,
.jcm-submit-btn:focus-visible,
.jcm-submit-btn:active {
  border-radius: 0;
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-panel-wrapper {
  max-width: 1000px;
  margin: 24px auto;
  font-size: 15px;
  line-height: 1.5;
  color: var(--jcm-ink, #111827);
}

.jcm-login-wrapper {
  max-width: 520px;
  margin: 24px auto;
}

.jcm-login-wrapper--panel {
  max-width: none;
  margin: 0;
}

.jcm-login-wrapper--panel .jcm-login-card {
  margin: 0;
}

.jcm-login-intro {
  margin-top: 0;
}

.jcm-login-form {
  margin-top: 18px;
}

.jcm-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.jcm-checkbox-inline input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.jcm-login-links {
  margin: 16px 0 0;
  font-size: 14px;
}

.jcm-login-links a {
  color: var(--jcm-ink, #111827);
  text-decoration: underline;
}

.jcm-card h2 {
  margin: 0 0 16px;
}

.jcm-card > .jcm-help {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.jcm-panel-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.jcm-panel-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 15px 33px 18px;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
  text-decoration: none;
  background: var(--jcm-ink, #111827);
  color: #fff;
  font-family: "Juventus Fans Regular", sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  outline: none;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jcm-panel-nav a:hover,
.jcm-panel-nav a:focus,
.jcm-panel-nav a:focus-visible,
.jcm-panel-nav a:active,
.jcm-panel-nav a.is-active {
  border-radius: 0;
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-panel-wrapper .jcm-dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 20px;
  margin: 0;
  width: 100%;
}

.jcm-panel-wrapper .jcm-dl dt,
.jcm-panel-wrapper .jcm-dl dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
  vertical-align: top;
}

.jcm-panel-wrapper .jcm-dl dt {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  text-align: right;
  padding-right: 16px;
}

.jcm-panel-wrapper .jcm-dl dd {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--jcm-ink, #111827);
  text-align: left;
}

.jcm-panel-wrapper .jcm-dl-note {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  font-weight: 400;
}

.jcm-panel-wrapper .jcm-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.jcm-panel-wrapper .jcm-badge-plan-base {
  background: #f3f4f6;
  color: var(--jcm-ink, #111827);
  border: 1px solid #d1d5db;
}

.jcm-panel-wrapper .jcm-badge-plan-plus {
  background: var(--jcm-ink, #111827);
  color: #fff;
  border: 1px solid var(--jcm-ink, #111827);
}

.jcm-panel-wrapper .jcm-badge-status {
  background: var(--jcm-oro, #fec72e);
  color: var(--jcm-ink, #111827);
  border: 1px solid var(--jcm-oro, #fec72e);
}

.jcm-panel-wrapper .jcm-badge-status--expired {
  background: var(--jcm-rosa, #f5acc7);
  color: var(--jcm-rosa-text, #5c3d4f);
  border: 1px solid var(--jcm-rosa-border, #e88aad);
}

.jcm-panel-wrapper .jcm-badge-status--inactive {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.jcm-badge-has-tooltip {
  position: relative;
  cursor: help;
}

.jcm-badge-tooltip {
  --jcm-tooltip-shift: 0px;
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--jcm-ink, #111827);
  border: 1px solid var(--jcm-oro, #fec72e);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: calc(-50% + var(--jcm-tooltip-shift)) 0;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.jcm-badge-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(50% - var(--jcm-tooltip-shift));
  right: auto;
  translate: -50% 0;
  border: 6px solid transparent;
  border-bottom-color: var(--jcm-ink, #111827);
}

.jcm-badge-has-tooltip:hover .jcm-badge-tooltip,
.jcm-badge-has-tooltip:focus .jcm-badge-tooltip,
.jcm-badge-has-tooltip:focus-within .jcm-badge-tooltip,
.jcm-badge-has-tooltip.is-tooltip-open .jcm-badge-tooltip {
  opacity: 1;
  visibility: visible;
}

.jcm-table-wrap {
  overflow-x: auto;
}

.jcm-table {
  width: 100%;
  border-collapse: collapse;
}

.jcm-table th,
.jcm-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
}

.jcm-partita-match {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.jcm-partita-match--countdown {
  justify-content: center;
  margin: 8px 0 12px;
}

.jcm-countdown-hero .jcm-partita-vs {
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-weight: 400;
  color: var(--jcm-accent-hover, #e73255);
}

.jcm-partita-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  max-width: 110px;
}

.jcm-partita-badge {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.jcm-partita-badge--placeholder {
  display: inline-block;
  border-radius: 50%;
  background: #e5e7eb;
}

.jcm-partita-vs {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.jcm-partita-team-name {
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
  color: var(--jcm-ink, #111827);
  font-family: "Juventus Fans Regular", Sans-serif;
  text-transform: uppercase;
}

.jcm-countdown-hero--custom-color .jcm-partita-team-name {
  color: var(--jcm-countdown-color);
}

.jcm-alert-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e3a5f;
}

.jcm-alert-info ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.jcm-alert-info li {
  margin-bottom: 4px;
}

.jcm-renewal-upgrade {
  margin-top: 16px;
  background: var(--jcm-ink, #111827);
  border-color: var(--jcm-ink, #111827);
  color: #f9fafb;
}

.jcm-renewal-upgrade strong,
.jcm-renewal-upgrade p,
.jcm-renewal-upgrade li {
  color: #f9fafb;
}

.jcm-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.jcm-renewal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.jcm-socio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.jcm-socio-card {
  position: relative;
  overflow: visible;
  border: 1px solid #27272a;
  border-top: 3px solid #ffffff;
  border-radius: 12px;
  padding: 18px;
  background: var(--jcm-ink, #111827);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.jcm-socio-card.is-inactive:not(.is-expired) {
  background: linear-gradient(160deg, #6b7280 0%, #4b5563 100%);
  border-color: #9ca3af;
  border-top-color: #d1d5db;
  box-shadow: 0 2px 10px rgba(75, 85, 99, 0.28);
}

.jcm-socio-card.is-inactive:not(.is-expired) .jcm-socio-card-brand-text,
.jcm-socio-card.is-inactive:not(.is-expired) .jcm-socio-card-brand-logo {
  opacity: 0.22;
}

.jcm-socio-card.is-active {
  border-color: var(--jcm-oro, #fec72e);
  border-top-color: var(--jcm-oro, #fec72e);
  box-shadow: 0 2px 14px rgba(254, 199, 46, 0.28);
}

.jcm-socio-card.is-expired {
  border-color: var(--jcm-rosa, #f5acc7);
  border-top-color: var(--jcm-rosa, #f5acc7);
  box-shadow: 0 2px 14px rgba(245, 172, 199, 0.35);
}

.jcm-socio-card-content {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.jcm-socio-card-brand {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.jcm-socio-card-brand-text {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 6px);
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: clamp(1.35rem, 4.5vw, 2.90rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: #d1d4d9;
  opacity: 0.3;
  text-align: right;
  user-select: none;
  white-space: nowrap;
}

.jcm-socio-card-brand-logo {
  position: absolute;
  right: 14px;
  bottom: 55px;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  opacity: 0.28;
}

.jcm-socio-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jcm-socio-card-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #ffffff;
}

.jcm-socio-card-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.jcm-socio-card-meta > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 14px;
}

.jcm-socio-card-meta dt {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.jcm-socio-card-meta dd {
  margin: 0;
  color: #ffffff;
}

.jcm-socio-card-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.jcm-socio-card-note a {
  color: #ffffff;
  text-decoration: underline;
}

.jcm-field-help {
  margin: 0 0 14px;
  font-size: 14px;
  color: #6b7280;
}

.jcm-field-checkbox label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}

.jcm-jcard-list {
  display: grid;
  gap: 16px;
}

.jcm-jcard-item {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.jcm-jcard-item h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.jcm-jcard-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.jcm-jcard-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.jcm-jcard-details dd {
  margin: 2px 0 0;
  font-size: 15px;
}

.jcm-jcard-status {
  margin: 0;
  color: #374151;
}

.jcm-jcard-purchase-form {
  margin-top: 12px;
}

.jcm-renewal-orders {
  margin-bottom: 24px;
}

.jcm-renewal-orders h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.jcm-renewal-orders-note {
  margin: 0 0 14px;
}

.jcm-renewal-order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.jcm-renewal-order-status--in_attesa_pagamento {
  background: var(--jcm-oro-light, #fff6d6);
  color: var(--jcm-oro-dark, #6d5412);
  border: 1px solid var(--jcm-oro, #fec72e);
}

.jcm-renewal-order-status--in_attesa_conferma,
.jcm-renewal-order-status--in_lavorazione {
  background: var(--jcm-rosa, #f5acc7);
  color: var(--jcm-rosa-text, #5c3d4f);
  border: 1px solid var(--jcm-rosa-border, #e88aad);
}

.jcm-renewal-order-status--confermata {
  background: var(--jcm-oro, #fec72e);
  color: var(--jcm-ink, #111827);
  border: 1px solid var(--jcm-oro, #fec72e);
}

.jcm-renewal-order-status--annullato,
.jcm-renewal-order-status--rifiutata {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.jcm-renewal-order-action-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--jcm-rosa-text, #5c3d4f);
}

.jcm-renewal-row-note--blocked {
  color: #6d5412;
  background: var(--jcm-oro-light, #fff6d6);
  border: 1px solid var(--jcm-oro, #fec72e);
  border-radius: 4px;
  padding: 8px 10px;
  margin: 0;
}

.jcm-renewal-back {
  margin: 20px 0 0;
}

.jcm-renewal-back .jcm-submit-btn {
  display: inline-flex;
}

.jcm-renewal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: visible;
  background: #fff;
}

.jcm-renewal-item {
  border-bottom: 1px solid #e5e7eb;
}

.jcm-renewal-item:last-child {
  border-bottom: none;
}

.jcm-renewal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.jcm-renewal-row.is-expired {
  background: var(--jcm-rosa, #f5acc7);
}

.jcm-renewal-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.jcm-renewal-row-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.jcm-renewal-row-name {
  font-size: 1rem;
  color: var(--jcm-ink, #111827);
}

.jcm-renewal-row-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
  color: #6b7280;
}

.jcm-renewal-row-side {
  flex: 0 0 auto;
}

.jcm-renewal-row-note {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  text-align: right;
}

.jcm-renewal-row-notice {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid #e5e7eb;
  border-left: 0;
  border-right: 0;
}

.jcm-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.jcm-renewal-actions .jcm-submit-btn,
.jcm-renewal-actions .jcm-submit-btn-secondary {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .jcm-renewal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .jcm-renewal-row-side,
  .jcm-renewal-row-note {
    text-align: left;
  }

  .jcm-renewal-actions {
    justify-content: flex-start;
  }
}

.jcm-renew-all-form {
  margin-bottom: 8px;
}

.jcm-countdown-wrapper,
.jcm-partite-wrapper {
  max-width: 900px;
  margin: 24px auto;
}

.jcm-partite-wrapper .jcm-partite-carousel {
  margin-top: 0;
}

.jcm-countdown-hero {
  text-align: center;
  margin: 0;
  padding: 28px 20px 24px;
  border: none;
  border-radius: 12px;
  background: transparent;
}

.jcm-countdown-hero .jcm-countdown-hero-kicker,
.jcm-countdown-hero .jcm-countdown-hero-subtitle,
.jcm-countdown-hero .jcm-countdown-hero-match,
.jcm-countdown-hero .jcm-countdown-value,
.jcm-countdown-hero .jcm-countdown-separator,
.jcm-countdown-hero .jcm-countdown-label-item,
.jcm-countdown-hero .jcm-countdown-hero-date,
.jcm-countdown-hero .jcm-partita-team-name {
  color: #fff;
}

.jcm-countdown-hero--custom-bg {
  background: var(--jcm-countdown-bg);
}

.jcm-countdown-hero--custom-color .jcm-countdown-hero-kicker,
.jcm-countdown-hero--custom-color .jcm-countdown-hero-subtitle,
.jcm-countdown-hero--custom-color .jcm-countdown-hero-match,
.jcm-countdown-hero--custom-color .jcm-countdown-value,
.jcm-countdown-hero--custom-color .jcm-countdown-separator,
.jcm-countdown-hero--custom-color .jcm-countdown-label-item,
.jcm-countdown-hero--custom-color .jcm-countdown-hero-date {
  color: var(--jcm-countdown-color);
}

.jcm-card .jcm-countdown-hero {
  margin: 0 0 28px;
  background: var(--jcm-ink, #111827);
}

.jcm-countdown-hero-kicker {
  margin: 0 0 8px;
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: calc(clamp(1rem, 2.2vw, 1.25rem) + 6px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

.jcm-countdown-hero-subtitle {
  margin: -2px 0 10px;
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: calc(clamp(0.92rem, 2vw, 1.05rem) + 6px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.jcm-countdown-hero-match {
  margin: 0 0 22px;
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--jcm-ink, #111827);
}

.jcm-countdown-hero-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.jcm-countdown-hero-clock,
.jcm-countdown-hero-labels {
  display: grid;
  grid-template-columns:
    minmax(76px, 1fr)
    auto
    minmax(76px, 1fr)
    auto
    minmax(76px, 1fr)
    auto
    minmax(76px, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: clamp(10px, 2.5vw, 20px);
  width: min(100%, 700px);
}

.jcm-countdown-hero-clock {
  overflow: hidden;
}

.jcm-countdown-unit {
  display: flex;
  justify-content: center;
  width: 100%;
}

.jcm-countdown-value {
  font-family: "Share Tech Mono", "Orbitron", "Courier New", monospace;
  font-size: clamp(2.35rem, 7.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--jcm-ink, #111827);
  font-variant-numeric: tabular-nums;
  height: 1em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jcm-countdown-digit-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.06em;
}

.jcm-countdown-digit-slot {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 0.65em;
  height: 1em;
  vertical-align: top;
  contain: layout style paint;
}

.jcm-countdown-digit {
  display: block;
  line-height: 1;
  will-change: transform, opacity;
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.36s ease;
}

.jcm-countdown-digit.is-current {
  transform: translateY(0);
  opacity: 1;
}

.jcm-countdown-digit.is-incoming {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(100%);
  opacity: 0;
}

.jcm-countdown-digit.is-incoming.is-current {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(0);
  opacity: 1;
}

.jcm-countdown-digit.is-outgoing {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-100%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .jcm-countdown-digit {
    transition: none;
  }
}

.jcm-countdown-label-item {
  font-family: "Juventus Fans Regular", sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: center;
  width: 100%;
}

.jcm-countdown-label-item:empty {
  visibility: hidden;
}

.jcm-countdown-separator {
  font-family: "Share Tech Mono", "Orbitron", "Courier New", monospace;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--jcm-ink, #111827);
  padding: 0;
  align-self: center;
}

.jcm-countdown-hero-date {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.jcm-countdown-hero-altre {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.jcm-countdown-hero-altre a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .jcm-countdown-wrapper,
  .jcm-partite-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    padding: 0 12px;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .jcm-countdown-hero {
    max-width: 100%;
    padding: 16px 12px 14px;
    border-radius: 8px;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .jcm-countdown-hero-kicker {
    margin-bottom: 6px;
    font-size: calc(0.82rem + 6px);
    letter-spacing: 0.08em;
  }

  .jcm-countdown-hero-subtitle {
    font-size: calc(0.82rem + 6px);
  }

  .jcm-countdown-hero-match {
    margin-bottom: 20px;
    font-size: 1.4rem;
  }

  .jcm-countdown-hero .jcm-partita-match--countdown {
    gap: 10px;
    margin: 8px 0 22px;
  }

  .jcm-countdown-hero .jcm-partita-team {
    min-width: 0;
    max-width: 100px;
    gap: 8px;
  }

  .jcm-countdown-hero .jcm-partita-badge,
  .jcm-countdown-hero .jcm-partita-badge--placeholder {
    width: 52px !important;
    height: 52px !important;
  }

  .jcm-countdown-hero .jcm-partita-team-name {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    word-break: break-word;
  }

  .jcm-countdown-hero .jcm-partita-vs {
    font-size: 0.72rem;
  }

  .jcm-countdown-hero-timer {
    gap: 6px;
    width: 100%;
  }

  .jcm-countdown-hero-clock,
  .jcm-countdown-hero-labels {
    width: 100%;
    max-width: 100%;
    grid-template-columns:
      minmax(0, 1fr)
      auto
      minmax(0, 1fr)
      auto
      minmax(0, 1fr)
      auto
      minmax(0, 1fr);
    column-gap: 4px;
  }

  .jcm-countdown-value {
    font-size: clamp(1.45rem, 6.8vw, 2rem);
    letter-spacing: 0.02em;
  }

  .jcm-countdown-separator {
    font-size: clamp(1.2rem, 5.5vw, 1.65rem);
    padding: 0 1px;
  }

  .jcm-countdown-label-item {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }

  .jcm-countdown-hero-date {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .jcm-card .jcm-countdown-hero {
    margin-bottom: 20px;
  }
}

.jcm-muted {
  color: #6b7280;
  font-size: 14px;
}

.jcm-dl-compact {
  margin-bottom: 12px;
}

.jcm-submit-btn-secondary {
  background: var(--jcm-ink, #111827);
  color: #fff;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
}

.jcm-submit-btn-secondary:hover,
.jcm-submit-btn-secondary:focus,
.jcm-submit-btn-secondary:focus-visible,
.jcm-submit-btn-secondary:active {
  border-radius: 0;
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-alert-success {
  background: var(--jcm-oro-light, #fff6d6);
  border: 1px solid var(--jcm-oro, #fec72e);
  color: var(--jcm-oro-dark, #6d5412);
}

.jcm-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.jcm-table-actions .jcm-inline-form {
  display: inline-flex;
  margin: 0;
}

.jcm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
  background: var(--jcm-ink, #111827);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jcm-icon-btn .fa-solid {
  font-family: "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.jcm-icon-btn:hover,
.jcm-icon-btn:focus,
.jcm-icon-btn:focus-visible,
.jcm-icon-btn:active {
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
  outline: none;
}

.jcm-icon-btn--book {
  background: var(--jcm-ink, #111827);
  border-color: var(--jcm-ink, #111827);
  color: #fff;
}

.jcm-icon-btn--book:hover,
.jcm-icon-btn--book:focus,
.jcm-icon-btn--book:focus-visible,
.jcm-icon-btn--book:active {
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(92vw, 420px);
  max-width: 420px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
  background: #fff;
  color: var(--jcm-ink, #111827);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22);
  transform: translate(-50%, -50%);
  z-index: 100001;
}

.jcm-confirm-dialog:not([open]) {
  display: none;
}

.jcm-confirm-dialog::backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.jcm-confirm-dialog__inner {
  margin: 0;
  padding: 24px;
}

.jcm-confirm-dialog__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.jcm-confirm-dialog__message {
  margin: 0 0 20px;
  color: #374151;
  font-size: 15px;
  line-height: 1.5;
}

.jcm-confirm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.jcm-help {
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
}

.jcm-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.jcm-checkbox-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.jcm-checkbox-item {
  border-bottom: 1px solid #e5e7eb;
}

.jcm-checkbox-item:last-child {
  border-bottom: none;
}

.jcm-checkbox-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
}

.jcm-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--jcm-ink, #111827);
  cursor: pointer;
}

/* ---- Ospiti biglietti ---- */
.jcm-btn-link {
  background: none;
  border: none;
  color: var(--jcm-ink, #111827);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.jcm-btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.jcm-ospite-slot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.jcm-ospite-slot input[type="text"] {
  flex: 1 1 120px;
  min-width: 100px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0;
  align-self: center;
}

.jcm-btn-secondary-sm {
  background: var(--jcm-ink, #111827);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.jcm-btn-secondary-sm:hover {
  background: #374151;
}

.jcm-ospite-remove {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.jcm-ospite-remove:hover {
  color: #e73255;
}

.jcm-ospite-status {
  flex: 1 1 100%;
  font-size: 0.82rem;
  margin-top: 2px;
}

.jcm-ospite-status--ok {
  color: #166534;
}

.jcm-ospite-status--warn {
  color: #92400e;
}

.jcm-ospite-status--loading {
  color: #6b7280;
}

.jcm-ospite-settore-wrap {
  flex: 1 1 100%;
}

.jcm-ospite-settore-wrap label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.jcm-ospite-settore-wrap select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 400;
}

.jcm-checkbox-item.is-disabled label {
  color: #9ca3af;
  cursor: not-allowed;
}

.jcm-checkbox-item.is-disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.jcm-checkbox-note {
  margin-left: auto;
  font-size: 13px;
  color: #9ca3af;
}

.jcm-shortcode-empty {
  padding: 24px 20px;
  text-align: center;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
}

.jcm-shortcode-empty p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.jcm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jcm-modal[hidden] {
  display: none;
}

.jcm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.jcm-modal-dialog {
  position: relative;
  width: min(100%, 480px);
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.jcm-modal-dialog h4 {
  margin: 0 0 12px;
}

.jcm-modal-dialog p {
  margin: 0 0 20px;
}

.jcm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jcm-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.jcm-plan-card {
  display: block;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jcm-plan-card.is-selected,
.jcm-plan-card:has(input:checked) {
  border-color: var(--jcm-ink, #111827);
  background: #f9fafb;
}

.jcm-plan-card input {
  margin-right: 8px;
}

.jcm-plan-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.jcm-plan-desc {
  display: block;
  color: #4b5563;
  font-size: 14px;
}

.jcm-plan-table th,
.jcm-plan-table td {
  text-align: left;
}

.jcm-plan-table th:not(:first-child),
.jcm-plan-table td:not(:first-child) {
  text-align: center;
  width: 80px;
}

.jcm-stadium-map-wrap {
  margin-bottom: 8px;
}

.jcm-stadium-map-wrap--compact {
  max-width: 420px;
  margin-bottom: 16px;
}

.jcm-stadium-map-interactive {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.jcm-stadium-map-interactive--compact {
  max-width: 420px;
}

.jcm-stadium-map-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: none!important;
}

.jcm-stadium-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.jcm-stadium-zone {
  fill: rgba(255, 255, 255, 0.02);
  stroke: transparent;
  stroke-width: 2;
  pointer-events: auto;
  cursor: pointer;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.jcm-stadium-zone:hover {
  fill: rgba(255, 214, 0, 0.28);
  stroke: rgba(255, 214, 0, 0.9);
}

.jcm-stadium-zone:active {
  fill: rgba(255, 214, 0, 0.48);
  stroke: #ffd700;
}

.jcm-stadium-zone.is-selected {
  fill: rgba(255, 214, 0, 0.36);
  stroke: #ffd700;
}

.jcm-stadium-zone.is-selected:hover {
  fill: rgba(255, 214, 0, 0.44);
}

.jcm-cart-subscriber {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #374151;
}

.jcm-cart-subscriber-label {
  color: #6b7280;
}

.jcm-cart-qty-fixed {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.jcm-add-registration-btn {
  margin-right: 8px;
}

.woocommerce-cart .jcm-add-registration-btn,
.woocommerce-cart .wc-proceed-to-checkout a {
  display: inline-flex!important;
  align-items: center!important;
  justify-content: center!important;
  box-sizing: border-box!important;
  background: var(--jcm-ink, #111827)!important;
  color: #fff!important;
  border: 1px solid var(--jcm-ink, #111827)!important;
  border-radius: 0!important;
  padding: 15px 33px 18px!important;
  font-family: "Juventus Fans Regular", sans-serif!important;
  text-transform: uppercase!important;
  font-size: 20px!important;
  font-weight: 400!important;
  line-height: 1;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woocommerce-cart .jcm-add-registration-btn:hover,
.woocommerce-cart .jcm-add-registration-btn:focus,
.woocommerce-cart .jcm-add-registration-btn:focus-visible,
.woocommerce-cart .jcm-add-registration-btn:active {
  border-radius: 0;
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-form-wrapper .jcm-submit-btn,
.jcm-form-wrapper .jcm-submit-btn-secondary,
.jcm-panel-wrapper .jcm-submit-btn,
.jcm-panel-wrapper .jcm-submit-btn-secondary,
.jcm-panel-wrapper .jcm-panel-nav a,
.woocommerce-cart a.button.jcm-add-registration-btn {
  border-radius: 0;
}

.jcm-field select,
.jcm-field textarea {
  width: 100%;
  border: 1px solid #cfd3d9;
  border-radius: 6px;
  min-height: 42px;
  padding: 10px 12px;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .jcm-panel-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .jcm-panel-nav a {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 10px 14px;
    font-size: clamp(13px, 3.6vw, 17px);
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
  }

  .jcm-panel-nav a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .jcm-table-wrap--stacked {
    overflow-x: visible;
  }

  .jcm-table--stacked,
  .jcm-table--stacked tbody {
    display: block;
    width: 100%;
  }

  .jcm-table--stacked thead {
    display: none;
  }

  .jcm-table--stacked tbody tr:not(.jcm-table-row--edit) {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-sizing: border-box;
  }

  .jcm-table--stacked tbody tr:not(.jcm-table-row--edit):has(+ tr.jcm-table-row--edit) {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 10px;
  }

  .jcm-table--stacked tbody tr.jcm-table-row--edit {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-top: 1px dashed #d1d5db;
    background: #fafafa;
    box-sizing: border-box;
  }

  .jcm-table--stacked tbody tr.jcm-table-row--edit td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .jcm-table--stacked tbody tr.jcm-table-row--edit td::before {
    display: none;
  }

  .jcm-table--stacked tbody td {
    display: grid;
    grid-template-columns: minmax(84px, 34%) 1fr;
    align-items: start;
    gap: 8px 12px;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    box-sizing: border-box;
    vertical-align: top;
    word-break: break-word;
  }

  .jcm-table--stacked tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.3;
  }

  .jcm-table--stacked tbody td[data-label="Partita"] {
    display: block;
    padding-top: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
  }

  .jcm-table--stacked tbody td[data-label="Partita"]::before {
    display: block;
    margin-bottom: 10px;
  }

  .jcm-table--stacked tbody tr:not(.jcm-table-row--edit) td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .jcm-table--stacked .jcm-table-actions {
    justify-content: flex-start;
  }

  .jcm-table--partite .jcm-partita-match {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
  }

  .jcm-table--partite .jcm-partita-team {
    min-width: 0;
    max-width: 88px;
    flex: 0 1 88px;
    gap: 4px;
  }

  .jcm-table--partite .jcm-partita-badge,
  .jcm-table--partite .jcm-partita-badge--placeholder {
    width: 40px;
    height: 40px;
  }

  .jcm-table--partite .jcm-partita-team-name {
    font-size: 0.68rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .jcm-table--partite .jcm-partita-vs {
    font-size: 0.68rem;
  }

  .jcm-grid {
    grid-template-columns: 1fr;
  }

  .jcm-panel-wrapper .jcm-dl {
    grid-template-columns: 1fr;
  }

  .jcm-panel-wrapper .jcm-dl dt {
    text-align: left;
    padding-right: 0;
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .jcm-panel-wrapper .jcm-dl dd {
    padding-top: 0;
    padding-bottom: 12px;
  }
}

.jcm-partite-wrapper {
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
}

.jcm-partite-wrapper--custom-color .jcm-partite-carousel-title,
.jcm-partite-wrapper--custom-color .jcm-partita-card-date,
.jcm-partite-wrapper--custom-color .jcm-partita-card-team-name,
.jcm-partite-wrapper--custom-color .jcm-partita-card-meta {
  color: var(--jcm-partite-color);
}

.jcm-partite-carousel {
  margin-top: 28px;
  padding-top: 8px;
}

.jcm-partite-carousel-title {
  text-align: center;
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
}

.jcm-partite-carousel-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jcm-partite-swiper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 8px 0 12px;
}

.jcm-partite-swiper .swiper-wrapper {
  align-items: stretch;
}

.jcm-partite-swiper .swiper-slide {
  width: auto;
  height: auto;
  box-sizing: border-box;
}

.jcm-partita-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--jcm-ink, #111827);
  border-radius: 0;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.jcm-partita-card-accent {
  height: 4px;
  background: #FFFFFF;
  flex: 0 0 auto;
}

.jcm-partita-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 14px 20px;
}

.jcm-partita-card-competition {
  margin: 15px auto 0;
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jcm-oro, #fec72e);
}

.jcm-competizione-display {
  display: inline-flex;
  align-items: center;
}

.jcm-competizione-logo {
  display: block;
  width: auto;
  max-width: 96px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
}

.jcm-competizione-display--table {
  gap: 8px;
}

.jcm-competizione-display--table .jcm-competizione-logo {
  flex: 0 0 auto;
  max-width: 80px;
  height: 20px;
}

.jcm-competizione-display--table .jcm-competizione-name {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.jcm-partita-card-competition .jcm-competizione-logo {
  max-width: 115px;
  height: 60px;
}

.jcm-partita-card-date {
  margin: 6px 0 30px;
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-size: 23px;
  font-weight: 400;
  color: #d1d5db;
}

.jcm-partita-card-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
}

.jcm-partita-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.jcm-partita-card-badge {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.jcm-partita-card-badge--placeholder {
  display: block;
  width: 64px;
  height: 64px;
  border: 1px dashed #4b5563;
  background: var(--jcm-ink, #111827);
}

.jcm-partita-card-team-name {
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jcm-partita-card-vs {
  flex: 0 0 auto;
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jcm-accent-hover, #e73255);
}

.jcm-partita-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Juventus Fans", "Juventus Fans Regular", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jcm-partita-card-meta-andata {
  color: var(--jcm-accent-hover, #e73255);
}

.jcm-partite-carousel button.jcm-partite-swiper-prev,
.jcm-partite-carousel button.jcm-partite-swiper-next {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 1px solid var(--jcm-ink, #111827);
  border-radius: 0;
  background: var(--jcm-ink, #111827);
  color: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.jcm-partite-carousel button.jcm-partite-swiper-prev::after,
.jcm-partite-carousel button.jcm-partite-swiper-next::after {
  font-family: swiper-icons;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.jcm-partite-carousel button.jcm-partite-swiper-prev:hover,
.jcm-partite-carousel button.jcm-partite-swiper-next:hover,
.jcm-partite-carousel button.jcm-partite-swiper-prev:focus-visible,
.jcm-partite-carousel button.jcm-partite-swiper-next:focus-visible,
.jcm-partite-carousel button.jcm-partite-swiper-prev:active,
.jcm-partite-carousel button.jcm-partite-swiper-next:active {
  background: var(--jcm-accent-hover, #e73255);
  border-color: var(--jcm-accent-hover, #e73255);
  color: #fff;
}

.jcm-partite-carousel button.jcm-partite-swiper-prev.swiper-button-disabled,
.jcm-partite-carousel button.jcm-partite-swiper-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.jcm-partite-swiper .swiper-slide-active .jcm-partita-card {
  border-color: var(--jcm-ink, #111827);
}

@media (max-width: 640px) {
  .jcm-partite-carousel-title {
    margin-bottom: 22px;
  }

  .jcm-partite-carousel-inner {
    gap: 8px;
  }

  .jcm-partita-card-body {
    padding-bottom: 22px;
  }

  .jcm-partita-card-match {
    margin-bottom: 30px;
    gap: 10px;
  }

  .jcm-partita-card-team {
    gap: 10px;
  }

  .jcm-partita-card-badge,
  .jcm-partita-card-badge--placeholder {
    width: 76px;
    height: 76px;
  }

  .jcm-partita-card-team-name {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0.04em;
  }

  .jcm-partita-card-vs {
    font-size: 23px;
  }
}

/* Document preview */
.jcm-doc-preview {
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #f9f9f9;
  padding: 6px;
}

.jcm-doc-preview-img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 4px;
}

.jcm-doc-preview-pdf {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 14px;
  word-break: break-all;
  color: #1a1a1a;
  text-decoration: underline;
}

.jcm-field-error input,
.jcm-field-error select,
.jcm-field-error textarea {
  border-color: #dc2626 !important;
}

.jcm-field-error-msg {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
}

.jcm-consensi-error {
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px;
  background: #fef2f2;
}

.woocommerce-notice--success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
  border: 4px solid #1e7e34 !important;
  border-radius: 12px !important;
  padding: 40px !important;
  margin: 50px 0 !important;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3) !important;
  color: white !important;
  text-align: center !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

.woocommerce-notice--success::before {
  content: "✓";
  display: block;
  font-size: 80px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.woocommerce-notice--success a {
  color: white !important;
  text-decoration: underline !important;
}

/* Loader a schermo intero mostrato all'invio del form di iscrizione, per
   evitare click multipli sul pulsante "Procedi al pagamento". */
.jcm-fullscreen-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.jcm-fullscreen-loader.is-visible {
  opacity: 1;
  visibility: visible;
}

.jcm-fullscreen-loader-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  animation: jcm-fullscreen-loader-spin 0.8s linear infinite;
}

.jcm-fullscreen-loader-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
}

@keyframes jcm-fullscreen-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
