/* The existing locally hosted variable font contains the Polish glyphs. */
body {
	--display: var(--shop-type);
	--display-font: var(--shop-type);
	--sam-ink: #232421;
	--sam-muted: #545650;
	--sam-line: #bbbdb5;
	--sam-focus: #1643a0;
	font-family: var(--shop-type);
	line-height: 1.55;
}

html {
	scroll-padding-block-start: calc(var(--header-h, 6rem) + .75rem);
}

#view.gg-native-collection .page-title,
#view.gg-native-page > h1 {
	font: 620 clamp(2rem, 3.5vw, 3.4rem)/1.08 var(--shop-type);
	letter-spacing: -.045em;
	overflow-wrap: anywhere;
}

#view.gg-native-product .summary h1.product_title {
	font-size: clamp(1.65rem, 2.45vw, 2.75rem);
	font-weight: 610;
	line-height: 1.16;
	letter-spacing: -.033em;
}

#view.gg-native-product .summary p.price {
	font-weight: 650;
	font-variant-numeric: lining-nums tabular-nums;
}

#view.gg-native-product .product_meta,
#view.gg-native-collection .woocommerce-result-count {
	color: var(--sam-muted);
	line-height: 1.55;
}

#view.gg-reading p {
	max-width: 72ch;
	line-height: 1.65;
}

/* The header is a solid surface even when the campaign starts with a pale photo. */
body.gg-home #store-header {
	background: #fff;
	margin-bottom: 0;
}

#store-header .gg-header {
	color: var(--sam-ink);
	background: #fff;
	box-shadow: 0 1px 0 #e4e5e0;
}

#store-header .gg-logo img {
	filter: none;
}

#store-header .gg-nav-link {
	min-height: 44px;
	color: #343630;
	font-size: clamp(.85rem, .95vw, 1rem);
	font-weight: 600;
	line-height: 1.25;
}

#store-header .gg-search-form {
	min-height: 46px;
	padding: 0 0 0 .85rem;
	background: #fbfbf9;
	border-color: var(--sam-line);
	color: var(--sam-ink);
	backdrop-filter: none;
}

#store-header .gg-search-form input {
	font-size: 1rem;
}

#store-header .gg-search-form input::placeholder {
	color: #5c5e57;
	opacity: 1;
}

#store-header .gg-search-form button,
#store-header .gg-tool {
	width: 44px;
	height: 44px;
}

#store-header .gg-search-form button {
	background: transparent;
}

#store-header .gg-tools .gg-tool {
	background: transparent;
}

#store-header .gg-search-form button > svg {
	width: 1.125rem;
	height: 1.125rem;
}

#store-header #gg-mega {
	background: #fff;
	color: var(--sam-ink);
	backdrop-filter: none;
}

#store-header .gg-sub-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: #383a34;
}

#store-header .gg-nav-link.sale-link > span {
	animation: none;
}

.sam-reach-consent { margin-block: 1rem; max-width: 62ch; }
.sam-reach-consent p { margin-block: 0 .65rem; }
.sam-reach-consent button {
	min-height: 44px;
	padding: .55rem 1rem;
	border: 1px solid var(--sam-ink);
	border-radius: 5px;
	color: #fff;
	background: var(--sam-ink);
	font: inherit;
}
.sam-reach-consent [role="status"]:not(:empty) { display: block; margin-top: .5rem; }

/* Keep focus visible over white, ink-coloured, and photographic surfaces. */
#store-header :is(a, button, summary):focus-visible,
#store-footer :is(a, button, summary):focus-visible,
#view :is(a, button, select, input, textarea, summary, [tabindex="0"]):focus-visible,
body .gg-skip:focus-visible {
	outline: 3px solid var(--sam-focus);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff;
}

#store-header .gg-search-form:focus-within {
	outline: 3px solid var(--sam-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}

#view.gg-native-collection nav.woocommerce-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .4rem;
	padding: .35rem;
}

#view.gg-native-collection nav.woocommerce-pagination li .page-numbers {
	display: grid;
	place-items: center;
	min-height: max(44px, 2.75rem);
	min-width: max(44px, 2.75rem);
	padding: .3rem .6rem;
	color: var(--sam-ink);
	border: 1px solid var(--sam-line);
	border-radius: 5px;
	background: #fff;
	font-size: 1rem;
	font-weight: 550;
	line-height: 1.15;
	text-decoration: none;
}

#view.gg-native-collection nav.woocommerce-pagination li [aria-current="page"] {
	color: #fff;
	border-color: var(--sam-ink);
	background: var(--sam-ink);
	font-weight: 700;
}

#view.gg-native-collection nav.woocommerce-pagination li :is(.next, .prev) {
	font-size: 1.25rem;
}

#view.gg-native-collection nav.woocommerce-pagination li .dots {
	min-width: .8rem;
	padding-inline: 0;
	background: transparent;
	border-color: transparent;
	color: var(--sam-muted);
}

#view.gg-native-collection nav.woocommerce-pagination a:focus-visible {
	outline: 3px solid var(--sam-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #fff;
}

#view.gg-native-page .wc-block-components-button:not(.is-link),
#view.gg-native-page .woocommerce :is(button.button, a.button) {
	min-height: max(44px, 2.75rem);
	font-weight: 620;
	line-height: 1.3;
	white-space: normal;
}

#view :is(.button.loading, .button[aria-busy="true"], .wc-block-components-button--loading) {
	cursor: progress;
}

#view.gg-native-page :is(.button, .wc-block-components-button):is(:disabled, [aria-disabled="true"], .disabled) {
	cursor: not-allowed;
	color: #51534c;
	background: #e9eae5;
	border-color: #b8bab1;
	opacity: 1;
}

@media (hover: hover) {
	#store-header :is(.gg-tools .gg-tool, .gg-search-form button):hover,
	#view.gg-native-collection nav.woocommerce-pagination a.page-numbers:hover {
		color: #151612;
		border-color: #66695e;
		background: #eeefea;
	}

	#view.gg-native-page .wc-block-components-button:not(.is-link, :disabled, [aria-disabled="true"]):hover,
	#view.gg-native-page .woocommerce :is(button.button, a.button):not(.disabled, :disabled, [aria-disabled="true"]):hover {
		background: #383a34;
		color: #fff;
	}
}

#view.gg-native-collection nav.woocommerce-pagination a.page-numbers:active,
#store-header :is(.gg-tools .gg-tool, .gg-search-form button):active {
	background: #dcdfd5;
}

@media (min-width: 861px) {
	#store-header .gg-nav {
		justify-content: safe center;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-inline: .5rem;
	}
	#store-header .gg-nav-link { flex: 0 0 auto; }
	#store-header .gg-nav-link:focus-visible { outline-offset: -3px; box-shadow: none; }
}

@media (max-width: 400px) {
	#store-header .gg-topbar { gap: .15rem; padding-inline: .5rem; }
	#store-header .gg-tools { gap: 0; }
	#store-header .gg-menu-toggle { margin-left: 0; }
	#store-header .gg-logo { width: clamp(100px, 31vw, 128px); }
	#view.gg-native-collection nav.woocommerce-pagination ul.page-numbers { gap: .25rem; }
}

@media (max-width: 700px) {
	#store-footer .gg-foot-columns {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, max(7.5rem, 45%)), 1fr));
		column-gap: min(4vw, 1.1rem);
	}
	#store-footer .gg-foot-columns > * { min-width: 0; }
	#store-footer .gg-foot-columns :is(h2, a, address) { overflow-wrap: anywhere; white-space: normal; }
	/* Keep two cards at normal zoom; one when larger text needs the space. */
	#view.gg-native-collection ul.products,
	#view.gg-native-product ul.products,
	body #view .sam-featured ul.products {
		grid-template-columns: repeat(auto-fill, minmax(min(100%, max(7.5rem, 45%)), 1fr));
	}
	#view.gg-native-product .summary button.gg-wish-button {
		width: max-content;
		height: auto;
		min-width: 0;
		max-width: 100%;
		white-space: normal;
		overflow-wrap: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	#store-header .gg-header,
	#store-header .gg-nav-link,
	#view.gg-native-collection nav.woocommerce-pagination a {
		animation: none;
		transition: none;
	}
}

@media (forced-colors: active) {
	#view.gg-native-collection nav.woocommerce-pagination li [aria-current="page"] {
		border: 2px solid CanvasText;
		text-decoration: underline;
	}
	#store-header .gg-search-form:focus-within,
	#store-header :focus-visible,
	#store-footer :focus-visible,
	#view :focus-visible {
		outline-color: Highlight;
	}
}
