/*
 * Основа своей вёрстки (без Tailwind): переменные (все цвета и тени — здесь, чтобы были на любой странице), страница, контейнер.
 * Значения повторяют прежнюю палитру темы, чтобы внешний вид не менялся.
 */

/*
 * Базовый сброс стилей браузера (бывший слой base из Tailwind, MIT): обнуление отступов, border-box,
 * наследование шрифтов в формах, списки без маркеров, img/svg блочные и т. п.
 * В слое @layer — поэтому любые обычные правила (темы, WooCommerce, плагинов) его перекрывают, как и раньше.
 */
@layer base {
	*,
	:after,
	:before,
	::backdrop {
		box-sizing: border-box;
		border: 0 solid;
		margin: 0;
		padding: 0;
	}

	::file-selector-button {
		box-sizing: border-box;
		border: 0 solid;
		margin: 0;
		padding: 0;
	}

	html,
	:host {
		-webkit-text-size-adjust: 100%;
		tab-size: 4;
		line-height: 1.5;
		font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
		font-feature-settings: normal;
		font-variation-settings: normal;
		-webkit-tap-highlight-color: transparent;
	}

	hr {
		height: 0;
		color: inherit;
		border-top-width: 1px;
	}

	abbr:where([title]) {
		-webkit-text-decoration: underline dotted;
		text-decoration: underline dotted;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		font-size: inherit;
		font-weight: inherit;
	}

	a {
		color: inherit;
		-webkit-text-decoration: inherit;
		-webkit-text-decoration: inherit;
		-webkit-text-decoration: inherit;
		text-decoration: inherit;
	}

	b,
	strong {
		font-weight: bolder;
	}

	code,
	kbd,
	samp,
	pre {
		font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
		font-feature-settings: normal;
		font-variation-settings: normal;
		font-size: 1em;
	}

	small {
		font-size: 80%;
	}

	sub,
	sup {
		vertical-align: baseline;
		font-size: 75%;
		line-height: 0;
		position: relative;
	}

	sub {
		bottom: -.25em;
	}

	sup {
		top: -.5em;
	}

	table {
		text-indent: 0;
		border-color: inherit;
		border-collapse: collapse;
	}

	:-moz-focusring {
		outline: auto;
	}

	progress {
		vertical-align: baseline;
	}

	summary {
		display: list-item;
	}

	ol,
	ul,
	menu {
		list-style: none;
	}

	img,
	svg,
	video,
	canvas,
	audio,
	iframe,
	embed,
	object {
		vertical-align: middle;
		display: block;
	}

	img,
	video {
		max-width: 100%;
		height: auto;
	}

	button,
	input,
	select,
	optgroup,
	textarea {
		font: inherit;
		font-feature-settings: inherit;
		font-variation-settings: inherit;
		letter-spacing: inherit;
		color: inherit;
		opacity: 1;
		background-color: #0000;
		border-radius: 0;
	}

	::file-selector-button {
		font: inherit;
		font-feature-settings: inherit;
		font-variation-settings: inherit;
		letter-spacing: inherit;
		color: inherit;
		opacity: 1;
		background-color: #0000;
		border-radius: 0;
	}

	:where(select:is([multiple],[size])) optgroup {
		font-weight: bolder;
	}

	:where(select:is([multiple],[size])) optgroup option {
		padding-inline-start: 20px;
	}

	::file-selector-button {
		margin-inline-end: 4px;
	}

	::placeholder {
		opacity: 1;
	}

	@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
		::placeholder {
			color: currentColor;
		}

		@supports (color:color-mix(in lab, red, red)) {
			::placeholder {
				color: color-mix(in oklab, currentcolor 50%, transparent);
			}

		}

	}

	textarea {
		resize: vertical;
	}

	::-webkit-search-decoration {
		-webkit-appearance: none;
	}

	::-webkit-date-and-time-value {
		min-height: 1lh;
		text-align: inherit;
	}

	::-webkit-datetime-edit {
		display: inline-flex;
	}

	::-webkit-datetime-edit-fields-wrapper {
		padding: 0;
	}

	::-webkit-datetime-edit {
		padding-block: 0;
	}

	::-webkit-datetime-edit-year-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-month-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-day-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-hour-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-minute-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-second-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-millisecond-field {
		padding-block: 0;
	}

	::-webkit-datetime-edit-meridiem-field {
		padding-block: 0;
	}

	::-webkit-calendar-picker-indicator {
		line-height: 1;
	}

	:-moz-ui-invalid {
		box-shadow: none;
	}

	button,
	input:where([type=button],[type=reset],[type=submit]) {
		appearance: button;
	}

	::file-selector-button {
		appearance: button;
	}

	::-webkit-inner-spin-button {
		height: auto;
	}

	::-webkit-outer-spin-button {
		height: auto;
	}

	[hidden]:where(:not([hidden=until-found])) {
		display: none!important;
	}

	* {
		border-color: #0000001a;
		outline-color: oklch(70.8% 0 0);
	}

	@supports (color:color-mix(in lab, red, red)) {
		* {
			outline-color: color-mix(in oklab, oklch(70.8% 0 0) 50%, transparent);
		}

	}

	body {
		background-color: #fff;
		color: oklch(14.5% 0 0);
	}

	html {
		font-size: 16px;
	}

	h1 {
		font-size: 1.5rem;
		font-weight: 500;
		line-height: 1.5;
	}

	h2 {
		font-size: 1.25rem;
		font-weight: 500;
		line-height: 1.5;
	}

	h3 {
		font-size: 1.125rem;
		font-weight: 500;
		line-height: 1.5;
	}

	h4,
	label,
	button {
		font-size: 1rem;
		font-weight: 500;
		line-height: 1.5;
	}

	input {
		font-size: 1rem;
		font-weight: 400;
		line-height: 1.5;
	}

	.scrollbar-hide::-webkit-scrollbar {
		display: none;
	}

	.scrollbar-hide {
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
}
:root {
	--c-text: oklch(0.145 0 0);
	--c-white: #fff;
	--c-gray-50: oklch(0.985 0.002 247.839);
	--c-gray-100: oklch(0.967 0.003 264.542);
	--c-gray-200: oklch(0.928 0.006 264.531);
	--c-gray-300: oklch(0.872 0.01 258.338);
	--c-gray-400: oklch(0.707 0.022 261.325);
	--c-gray-500: oklch(0.551 0.027 264.364);
	--c-gray-700: oklch(0.373 0.034 259.733);
	--c-gray-800: oklch(0.278 0.033 256.848);
	--c-gray-900: oklch(0.21 0.034 264.665);
	--c-violet-500: oklch(0.606 0.25 292.717);
	--c-violet-600: oklch(0.541 0.281 293.009);
	--c-accent: #684dff;
	--c-accent-ink: #4928d1;
	--c-gray-600: oklch(0.446 0.03 256.802);
	--c-amber-400: oklch(0.828 0.189 84.429);
	--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	--c-purple-500: oklch(0.627 0.265 303.9);
	--c-purple-600: oklch(0.558 0.288 302.321);
	--c-green-500: oklch(0.723 0.219 149.579);
	--c-red-500: oklch(0.637 0.237 25.331);
	--c-violet-100: oklch(0.943 0.029 294.588);
	--c-emerald-700: oklch(0.508 0.118 165.612);
	--c-blue-200: oklch(0.882 0.059 254.128);
	--c-blue-500: oklch(0.623 0.214 259.815);
	--c-cyan-500: oklch(0.715 0.143 215.221);
	--c-pink-500: oklch(0.656 0.241 354.308);
	--c-hairline: rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--c-red-700: oklch(0.505 0.213 27.518);
	--c-orange-500: oklch(0.705 0.213 47.604);
	--c-green-600: oklch(0.627 0.194 149.214);
	--g-accent: linear-gradient(to right, #684dff, #4928d1, #684dff);

	--font-ui: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	--radius-ui: 14px; /* not --radius: Tailwind derives rounded-* from it */
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--container: 1280px;
	--gutter: 24px;
}

[hidden] {
	display: none !important;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--c-gray-50);
	color: var(--c-text);
	font-family: var(--font-ui);
	line-height: 1.5;
}

/* <main> of the pages: its children lay out like the direct children of .site did before */
.site-main {
	display: flex;
	flex-direction: column;
}

/* The width of the content: the same 1280px as the header and the page sections */
.wrapper {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Shell of the WooCommerce pages (cart, checkout, account): the old Tailwind «container mx-auto px-6 py-12» */
.page-container {
	box-sizing: border-box;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 48px 24px;
}

@media (min-width: 40rem) {
	.page-container {
		max-width: 40rem;
	}
}

@media (min-width: 48rem) {
	.page-container {
		max-width: 48rem;
	}
}

@media (min-width: 64rem) {
	.page-container {
		max-width: 64rem;
	}
}

@media (min-width: 80rem) {
	.page-container {
		max-width: 80rem;
	}
}

@media (min-width: 96rem) {
	.page-container {
		max-width: 96rem;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
