/**
 * Cookie / embed consent banner + myClub + gated iframe placeholders.
 * Brand tokens from chrome.css (--sv-gp-*).
 */

.sv-embed-pending {
	display: grid;
	gap: 0.65rem;
	width: 100%;
	max-width: 100%;
	min-height: 6.5rem;
	margin: 0.75rem 0;
	padding: 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .sv-embed-pending,
.sv-gp-footer .sv-embed-pending {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.22);
}

.sv-embed-pending iframe[data-sv-consent-src] {
	display: none;
}

.sv-embed-pending .sv-myclub-note {
	color: inherit;
	opacity: 0.85;
}

.myclub-embed[data-myclub-pending="1"] {
	min-height: 6.5rem;
	max-width: 100%;
}

.sv-myclub-pending {
	display: grid;
	gap: 0.65rem;
	padding: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.22);
}

.sv-gp-footer-hours .sv-myclub-pending,
.sv-gp-footer .sv-myclub-pending {
	border-color: rgba(255, 255, 255, 0.22);
}

.sv-myclub-load {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45em;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 4px;
	background: #980032;
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
}

.sv-myclub-load:hover,
.sv-myclub-load:focus-visible {
	background: #7a0029;
	color: #fff;
}

.sv-myclub-load:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sv-myclub-load .ph-fill {
	font-size: 1.1em;
	line-height: 1;
}

.sv-myclub-note {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

/*
 * Light theme: the footer turns #f2f2f2, so the dark overlay and near-white note above measured 1.64:1
 * (PageSpeed, 2026-10-16). Light surface, dark text: the note is #4a4a4a on about #e9e9e9 (7.3:1).
 * Checked by wordpress-dev/contrast-audit.mjs (first visit, no consent).
 */
html[data-theme="light"] .sv-myclub-pending,
html[data-theme="light"] .sv-gp-footer .sv-embed-pending {
	border-color: rgba(0, 0, 0, 0.18);
	background: rgba(0, 0, 0, 0.04);
	color: #2c2c2c;
}

html[data-theme="light"] .sv-myclub-note,
html[data-theme="light"] .sv-embed-pending .sv-myclub-note {
	color: #4a4a4a;
	opacity: 1;
}

.sv-myclub-consent {
	position: fixed;
	z-index: 10000;
	right: max(0.75rem, env(safe-area-inset-right));
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	left: max(0.75rem, env(safe-area-inset-left));
	max-width: 58rem;
	margin-inline: auto;
	padding: 1rem;
	border: 2px solid #980032;
	border-radius: 6px;
	background: #2c2c2c;
	color: #f2f2f2;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.45);
}

.sv-myclub-consent__inner {
	display: grid;
	gap: 1rem;
}

.sv-myclub-consent h2 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	color: #f2f2f2;
}

.sv-myclub-consent p {
	margin: 0;
	line-height: 1.5;
}

.sv-myclub-consent a {
	color: #f2f2f2;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.sv-myclub-consent a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sv-myclub-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.sv-myclub-consent__btn {
	flex: 1 1 12rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sv-myclub-consent__btn--primary {
	background: #980032;
	color: #fff;
}

.sv-myclub-consent__btn--primary:hover,
.sv-myclub-consent__btn--primary:focus-visible {
	background: #7a0029;
}

.sv-myclub-consent__btn--ghost {
	background: transparent;
	color: #f2f2f2;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.sv-myclub-consent__btn--ghost:hover,
.sv-myclub-consent__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}

.sv-myclub-consent__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sv-gp-footer__consent-btn {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: inherit;
	font-weight: 600;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.sv-gp-footer__consent-btn:hover,
.sv-gp-footer__consent-btn:focus-visible {
	color: #fff;
}

.sv-gp-footer__consent-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sv-gp-footer__meta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
}

@media (min-width: 760px) {
	.sv-myclub-consent__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.sv-myclub-consent__btn {
		flex: 0 0 auto;
	}
}
