/* Estilos do widget "Zyrgon Golf Scorecard". Prefixo .zyrgon-scorecard-/.zsc-
   para evitar conflitos com estilos do Elementor ou do tema. Cores via
   custom properties (--zsc-*, definidas inline por instância do widget)
   para que cada instância possa ter as suas próprias cores. */

.zyrgon-scorecard-widget {
	--zsc-bg: #FFF0E0;
	--zsc-text: #24461F;
	--zsc-men: #E0E3DC;
	--zsc-ladies: #F9E6CC;
	--zsc-white: #FFFFFF;
	--zsc-yellow: #EEDD62;
	--zsc-blue: #2E5599;
	--zsc-red: #B71C22;

	width: 100%;
	background: var(--zsc-bg);
	color: var(--zsc-text);
	padding: 40px 10px;
	box-sizing: border-box;
}

.zyrgon-scorecard-title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	color: var(--zsc-text);
}

.zyrgon-scorecard-tables {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	justify-content: space-between;
}

.zyrgon-scorecard-table-wrap {
	flex: 1 1 0;
	min-width: 0;
	max-width: 765px;
	width: 100%;
}

.zyrgon-scorecard-table-title {
	color: var(--Verde, #24461F);
	font-variant-numeric: lining-nums proportional-nums;
	font-family: "Playfair Display";
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	margin-bottom: 30px
}

.zyrgon-scorecard-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.zyrgon-scorecard-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	font-family: inherit;
	border-bottom: 0 !important;
}

.zyrgon-scorecard-table th,
.zyrgon-scorecard-table td {
	color: var(--zsc-text);
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 300;
	padding: 10px 20px !important;
	border-top: 0 !important;
}

.zyrgon-scorecard-table thead th {
	font-weight: 600;
	text-align: center;
	border-bottom: 1px solid;
	border-color: rgba(36, 70, 31,0.2);
}

.zyrgon-scorecard-hole-col {
	text-align: left !important;
	font-weight: 600 !important;
	min-width: 60px;
}

th.zyrgon-scorecard-hole-col {
	padding-left: 0 !important;
}

td.zyrgon-scorecard-hole-col {
	padding-left: 0 !important;
}

td.zyrgon-scorecard-par-col {
	min-width: 60px;
}

.zsc-group--men {
	background-color: var(--zsc-men);
}

.zsc-group--ladies {
	background-color: var(--zsc-ladies);
}

tr.zyrgon-scorecard-totals-row td span {
	font-weight: 700 !important;
}

.zsc-chips {
	display: inline-flex;
	justify-content: center;
	gap: 25px;
}

.zsc-chip {
	color: var(--Verde, #24461F);
	text-align: center;
	font-family: Inter;
	font-size: 18px;
	font-style: normal;
	font-weight: 300;
	line-height: 27px;
	display: inline-block;
	min-width: 45px;
	max-width: 47px;
}

.zsc-chip--white {
	background: var(--zsc-white);
	color: var(--zsc-text);
}

.zsc-chip--yellow {
	background: var(--zsc-yellow);
	color: var(--zsc-text);
}

.zsc-chip--blue {
	background: var(--zsc-blue);
	color: #FFFFFF;
}

.zsc-chip--red {
	background: var(--zsc-red);
	color: #FFFFFF;
}

.zyrgon-scorecard-totals-row td,
.zyrgon-scorecard-totals-row th {
	border-top: 1px solid rgba(36, 70, 31, 0.25);
	font-weight: 700;
	padding-top: 10px;
}

tr.zyrgon-scorecard-totals-row td {
	border-top: 1px solid !important;
	border-color: rgba(36, 70, 31, 0.2) !important;
}

/* Legenda dos Tees, abaixo das duas tabelas */

.zsc-tees-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 100px;
	justify-content: center;
}

.zsc-tee-box {
	flex: 1 1 160px;
	min-width: 160px;
	max-width: 200px;
	overflow: hidden;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	line-height: 160%;
	font-weight: 300;
}

.zsc-tee-box__label {
	text-align: center;
	font-weight: 500;
	padding: 0;
	font-size: 22px;
	line-height: 140%;
}

.zsc-tee-box__row {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

@media ( max-width: 1560px ) {

	.zyrgon-scorecard-tables {
		flex-direction: column;
		gap: 30px;
	}

	.zyrgon-scorecard-table-wrap {
		max-width: 100%;
	}
}

@media ( max-width: 767px ) {

	.zyrgon-scorecard-widget {
		padding: 24px 16px;
	}

	/* Em vez de encolher fonte/padding (o que ficava demasiado apertado),
	   mantém-se o espaçamento normal das colunas: cada tabela ganha o seu
	   próprio scroll horizontal (zyrgon-scorecard-table-scroll), com o título
	   (Front Nine/Back Nine) fora dessa área para se manter sempre visível. */
	.zyrgon-scorecard-table-scroll {
		padding-bottom: 4px;
	}

	.zsc-tees-legend {
		gap: 12px;
	}

	.zsc-tee-box {
		flex: 1 1 45%;
		min-width: 130px;
	}
}
