/**
 * First-visit store entry gate — design system tokens.
 */

html.md-store-entry--required {
	overflow: hidden;
}

html.md-store-entry--required body {
	overflow: hidden;
	pointer-events: none;
}

html.md-store-entry--required .md-store-entry-gate[open] ~ *,
html.md-store-entry--open body {
	pointer-events: auto;
}

.md-store-entry-gate {
	border: 1px solid #dad3c7;
	border-radius: 16px;
	padding: 0;
	max-width: 480px;
	width: calc(100% - 32px);
	color: #111111;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
}

.md-store-entry-gate::backdrop {
	background: rgba(17, 17, 17, 0.55);
}

.md-store-entry-gate__inner {
	padding: 24px;
	display: grid;
	gap: 16px;
}

.md-store-entry-gate__title {
	margin: 0;
	font-family: Belleza, serif;
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.md-store-entry-gate__age-message {
	margin: 0;
	color: #6e6a63;
	font-size: 0.875rem;
	text-align: center;
}

.md-store-entry-gate__cookie-notice {
	margin: 0;
	color: #9a958c;
	font-size: 0.75rem;
	line-height: 1.5;
	text-align: center;
}

.md-store-entry-gate__cookie-notice a {
	color: #6e6a63;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.md-store-entry-gate__cookie-notice a:hover {
	color: #111111;
}

.md-store-entry-gate__age-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 8px;
}

@media (max-width: 420px) {
	.md-store-entry-gate__age-actions {
		flex-direction: column;
	}

	.md-store-entry-gate__btn--success,
	.md-store-entry-gate__btn--danger {
		flex: none;
		width: 100%;
	}
}

.md-store-entry-gate__form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.md-store-entry-gate__fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: end;
}

@media (max-width: 420px) {
	.md-store-entry-gate__fields-row {
		grid-template-columns: 1fr;
	}
}

.md-store-entry-gate__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.md-store-entry-gate__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #111111;
}

.md-store-entry-gate__select-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.md-store-entry-gate__flag {
	display: block;
	width: 24px;
	height: 16px;
	object-fit: cover;
	border-radius: 2px;
	border: 1px solid #dad3c7;
	flex-shrink: 0;
	background: #f6f1eb;
}

.md-store-entry-gate__flag[hidden] {
	display: none;
}

.md-store-entry-gate__select-row select {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	height: auto;
	padding: 11px 36px 11px 12px;
	border: 1px solid #dad3c7;
	border-radius: 8px;
	background: #ffffff;
	color: #111111;
	font-family: "Open Sans", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	overflow: visible;
	appearance: auto;
}

.md-store-entry-gate__decline-wrap {
	margin: 0;
	text-align: center;
}

.md-store-entry-gate button.md-store-entry-gate__decline-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font-family: "Open Sans", sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: #c8523d;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.md-store-entry-gate button.md-store-entry-gate__decline-link:hover {
	color: #a84330;
}

.md-store-entry-gate button.md-store-entry-gate__decline-link:focus-visible {
	outline: 2px solid #d3a877;
	outline-offset: 2px;
}

.md-store-entry-gate__select-row select:focus {
	outline: 2px solid #d3a877;
	outline-offset: 2px;
}

/* Reset theme button styles inside the gate dialog. */
.md-store-entry-gate button.md-store-entry-gate__btn {
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	font-family: "Open Sans", sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: auto;
}

.md-store-entry-gate button.md-store-entry-gate__btn--primary {
	background: #111111;
	color: #ffffff;
	border: 1px solid #111111;
	width: 100%;
}

.md-store-entry-gate button.md-store-entry-gate__btn--primary:hover:not(:disabled) {
	background: #262626;
	border-color: #262626;
	color: #ffffff;
}

.md-store-entry-gate button.md-store-entry-gate__btn--primary:disabled {
	background: #dad3c7;
	border-color: #dad3c7;
	color: #ffffff;
	cursor: not-allowed;
}

.md-store-entry-gate button.md-store-entry-gate__btn--primary:focus-visible {
	outline: 2px solid #d3a877;
	outline-offset: 2px;
}

.md-store-entry-gate button.md-store-entry-gate__btn--success {
	background: #16a34a;
	color: #ffffff;
	border: 1px solid #16a34a;
	flex: 1 1 0;
	min-width: 0;
}

.md-store-entry-gate button.md-store-entry-gate__btn--success:hover:not(:disabled) {
	background: #15803d;
	border-color: #15803d;
	color: #ffffff;
}

.md-store-entry-gate button.md-store-entry-gate__btn--success:focus-visible {
	outline: 2px solid #d3a877;
	outline-offset: 2px;
}

.md-store-entry-gate button.md-store-entry-gate__btn--danger {
	background: #fbedea;
	color: #c8523d;
	border: 1px solid #ead0c9;
	flex: 1 1 0;
	min-width: 0;
}

.md-store-entry-gate button.md-store-entry-gate__btn--danger:hover {
	background: #f5ddd8;
	border-color: #c8523d;
	color: #c8523d;
}

.md-store-entry-gate button.md-store-entry-gate__btn--danger:focus-visible {
	outline: 2px solid #d3a877;
	outline-offset: 2px;
}

.md-store-entry-gate__error {
	margin: 0;
	color: #c8523d;
	font-size: 0.875rem;
}

.md-store-entry-gate__loading {
	margin: 0;
	color: #6e6a63;
	font-size: 0.875rem;
	text-align: center;
}

.md-store-entry-gate__noscript {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(17, 17, 17, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.md-store-entry-gate__noscript form {
	background: #ffffff;
	border: 1px solid #dad3c7;
	border-radius: 16px;
	padding: 24px;
	max-width: 480px;
	width: 100%;
	display: grid;
	gap: 12px;
}
