/* GCore Province Compliance: gate, modals, not-available page, health warning.
   Colours match the site theme: black, white and the #d39e80 accent. */

:root {
	--gcv-ink: #000;
	--gcv-paper: #fff;
	--gcv-accent: #d39e80;
	--gcv-accent-soft: #f7ece5; /* Tint of the accent for hints and errors. */
	--gcv-muted: #3d3d3d;
}

.gcv-gate__box,
.gcv-modal__box {
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin: auto;
	padding: 28px;
	background: var(--gcv-paper);
	color: var(--gcv-ink);
	border: 2px solid var(--gcv-accent);
	border-top-width: 6px;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.gcv-gate__title,
.gcv-modal__title {
	margin: 0 0 8px;
	font-size: 1.35em;
	line-height: 1.25;
	color: var(--gcv-ink);
}

.gcv-gate__intro { margin: 0 0 18px; color: var(--gcv-muted); }

.gcv-gate__form { display: grid; gap: 10px; margin: 0; }

.gcv-gate__label {
	display: block;
	padding: 0;
	margin: 6px 0 2px;
	font-weight: 600;
	font-size: 0.9em;
	color: var(--gcv-ink);
}

.gcv-gate select,
.gcv-province-selector {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 2px solid var(--gcv-accent); /* 2px: the accent is light on white, so thickness carries the edge. */
	border-radius: 6px;
	background: var(--gcv-paper);
	color: var(--gcv-ink);
	font: inherit;
}

.gcv-gate__dob {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1.2fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.gcv-gate__dob legend { grid-column: 1 / -1; }

.gcv-gate__hint {
	min-height: 1.5em;
	margin: 2px 0;
	padding-left: 10px;
	border-left: 3px solid var(--gcv-accent);
	font-size: 0.9em;
	font-weight: 600;
	color: var(--gcv-ink);
}

.gcv-gate__hint:empty { border-left-color: transparent; }

.gcv-gate__error {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-left: 3px solid var(--gcv-accent);
	background: var(--gcv-accent-soft);
	color: var(--gcv-ink);
	font-size: 0.9em;
	font-weight: 600;
}

/* Buttons: accent with black text (white on the accent is too faint to read). */
.gcv-btn {
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--gcv-accent);
	border-radius: 6px;
	background: var(--gcv-paper);
	color: var(--gcv-ink);
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gcv-btn:hover { background: var(--gcv-accent); color: var(--gcv-ink); }

.gcv-btn--primary {
	background: var(--gcv-accent);
	border-color: var(--gcv-accent);
	color: var(--gcv-ink);
}

.gcv-btn--primary:hover {
	background: var(--gcv-ink);
	border-color: var(--gcv-accent);
	color: var(--gcv-paper);
}

.gcv-btn--link {
	min-height: 0;
	margin-top: 6px;
	border-color: transparent;
	background: none;
	color: var(--gcv-ink);
	text-decoration: underline;
	text-decoration-color: var(--gcv-accent);
	text-underline-offset: 3px;
}

.gcv-btn--link:hover { background: none; color: var(--gcv-ink); text-decoration-color: var(--gcv-ink); }

.gcv-btn--danger { border-style: dashed; }

.gcv-gate :focus-visible,
.gcv-modal :focus-visible,
.gcv-btn:focus-visible,
.gcv-province-selector:focus-visible {
	outline: 2px solid var(--gcv-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--gcv-accent);
}

/* Checkout modals (mismatch, consent). */
.gcv-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483645;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow: auto;
	background: rgba(0, 0, 0, 0.75);
}

.gcv-modal[hidden] { display: none; }
.gcv-modal__body p { margin: 0 0 12px; }
.gcv-modal__body ul { margin: 0 0 12px 1.2em; }
.gcv-modal__body li::marker { color: var(--gcv-accent); }
.gcv-modal__actions { display: grid; gap: 8px; margin-top: 16px; }

/* Blocked product or category page. */
.gcv-na { padding: 80px 16px; }

.gcv-na__box {
	max-width: 560px;
	margin: 0 auto;
	padding: 32px 24px;
	border: 2px solid var(--gcv-accent);
	border-top-width: 6px;
	border-radius: 10px;
	background: var(--gcv-paper);
	color: var(--gcv-ink);
	text-align: center;
	font-size: 1.1em;
}

/* Federal health warning: the regulation allows only black on white (or white on black),
   a border and a bold first word, so the accent colour is deliberately not used here. */
.gcv-hw {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 16px;
	background: #fff;
	color: #000;
	border: 3px solid #000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
}

.gcv-hw p { margin: 0; color: #000; }
.gcv-hw strong { font-weight: 700; text-transform: uppercase; }
.gcv-hw__src { white-space: nowrap; }

@media (max-width: 480px) {
	.gcv-gate__box, .gcv-modal__box { padding: 20px; }
	.gcv-gate__dob { grid-template-columns: 1fr 1fr; }
	.gcv-gate__dob select:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.gcv-btn { transition: none; }
}
