
.wp-site-blocks > .appeditor-gym-header-shell,
.wp-site-blocks > .wp-block-template-part:has(> .appeditor-gym-header) {
	position: sticky;
	top: var(--appeditor-gym-header-top, 0px);
	z-index: 20;
}
.admin-bar { --appeditor-gym-header-top: 32px; }
.wp-site-blocks > .appeditor-gym-front,
.appeditor-gym-front + .wp-block-template-part { margin-block-start: 0; }
.appeditor-gym-wrap, .appeditor-gym-header-row {
	box-sizing: border-box;
	width: min(100% - 2.5rem, 1280px);
	margin-inline: auto;
}
.appeditor-gym-header {
	background: var(--wp--preset--color--surface);
	border-block-end: 1px solid var(--wp--preset--color--line);
}
.appeditor-gym-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: .8rem;
}
.appeditor-gym-header-end { gap: clamp(.55rem, 2vw, 1.6rem); justify-content: flex-end; }
.appeditor-gym-brand { flex: 0 1 auto; gap: .55rem; }
.appeditor-gym-brand img { display: block; border-radius: 50%; }
.appeditor-gym-brand .wp-block-site-title,
.appeditor-gym-footer .wp-block-site-title { font-weight: 800; }
.appeditor-gym-header a, .appeditor-gym-footer a { text-decoration: none; }
.appeditor-gym-brand a, .appeditor-gym-utility, .appeditor-gym-cart {
	color: var(--wp--preset--color--contrast);
}
.appeditor-gym-cart { white-space: nowrap; }
.appeditor-gym-count {
	display: inline-grid;
	place-items: center;
	min-width: 1.6em;
	border-radius: 999px;
	background: var(--wp--preset--color--soft);
}
.appeditor-gym-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}
.appeditor-gym-nav button { min-width: 36px; min-height: 36px; }
.appeditor-gym-button {
	display: inline-flex;
	gap: .8em;
	align-items: center;
	justify-content: center;
	padding: .7em 1.25em;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
	white-space: nowrap;
}
.appeditor-gym-button:hover {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--on-primary);
}
.appeditor-gym-arrow { font-size: 1.25em; }
.appeditor-gym-front h2 { font-size: clamp(1.65rem, 4vw, 2.75rem); margin-block: 0 .75rem; }
.appeditor-gym-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	min-height: clamp(27rem, 45vw, 42rem);
	margin: 0;
	background: var(--wp--preset--color--photo-shade);
	color: var(--wp--preset--color--photo-text);
}
.appeditor-gym-hero-photo, .appeditor-gym-hero::before, .appeditor-gym-hero::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.appeditor-gym-hero-photo { z-index: -3; object-fit: cover; object-position: 43% center; }
.appeditor-gym-hero::before {
	content: "";
	z-index: -2;
	background: linear-gradient(265deg, var(--wp--preset--color--photo-shade), transparent 90%);
}
.appeditor-gym-hero::after {
	content: "";
	z-index: -1;
	background: var(--wp--preset--color--photo-shade);
	opacity: .82;
	clip-path: polygon(39% 0, 100% 0, 100% 100%, 53% 100%);
}
.appeditor-gym-hero-inner { padding-block: 3rem 4.5rem; }
.appeditor-gym-hero h1 {
	width: min(100%, 7.1em);
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: 1.14;
}
.appeditor-gym-hero p { max-width: 34ch; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.appeditor-gym-timetable {
	position: relative;
	margin-block-start: -1.6rem;
	padding-block: 2rem 1.5rem;
	background: var(--wp--preset--color--surface);
	clip-path: polygon(0 1.5rem, 100% 0, 100% 100%, 0 100%);
}
.appeditor-gym-timetable h2 { font-size: 1.4rem; }
.appeditor-gym-week, .appeditor-gym-categories, .appeditor-gym-roles {
	list-style: none;
	padding: 0;
	margin: 0;
}
.appeditor-gym-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-block: 1px solid var(--wp--preset--color--line);
}
.appeditor-gym-week li { padding: .5rem; border-inline-start: 1px solid var(--wp--preset--color--line); }
.appeditor-gym-week li:first-child { border-inline-start: 0; }
.appeditor-gym-week span { display: block; font-size: .85rem; color: var(--wp--preset--color--muted); }
.appeditor-gym-timetable p { color: var(--wp--preset--color--muted); margin-block-end: .5rem; }
.appeditor-gym-categories { display: flex; flex-wrap: wrap; gap: .45rem .7rem; }
.appeditor-gym-categories a {
	display: block;
	padding: .2rem .8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
}
.appeditor-gym-classes { padding-block: clamp(2rem, 6vw, 5rem); }
.appeditor-gym-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: .7rem;
}
.appeditor-gym-class-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(.65rem, 1.5vw, 1.2rem);
}
.appeditor-gym-class { background: var(--wp--preset--color--surface); border-radius: .55rem; }
.appeditor-gym-class a {
	position: relative;
	display: grid;
	grid-template-rows: 1fr auto;
	isolation: isolate;
	align-items: end;
	height: 100%;
	min-height: 17rem;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: inherit;
	color: var(--wp--preset--color--photo-text);
	text-decoration: none;
}
.appeditor-gym-class a img, .appeditor-gym-class a::before {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
}
.appeditor-gym-class a img { z-index: -2; object-fit: cover; }
.appeditor-gym-class a::before {
	content: "";
	z-index: -1;
	background: linear-gradient(to top, var(--wp--preset--color--photo-shade) 8%, transparent 76%);
}
.appeditor-gym-class-info { grid-row: 2; padding: 1rem .85rem; }
.appeditor-gym-class-info h3 { margin: 0; font-size: clamp(1rem, 1.5vw, 1.25rem); color: inherit; }
.appeditor-gym-class-info > span { font-size: .83rem; }
.appeditor-gym-duration {
	position: absolute;
	inset-block-start: .65rem;
	inset-inline-end: .65rem;
	padding: .12em .65em;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: .82rem;
	font-weight: 800;
}
.appeditor-gym-coaches {
	background: var(--wp--preset--color--soft);
	padding-block: 3.5rem 2.75rem;
	clip-path: polygon(0 0, 100% 1.75rem, 100% 100%, 0 100%);
}
.appeditor-gym-roles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
}
.appeditor-gym-roles li {
	display: grid;
	align-content: start;
	gap: .25rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	padding-block-start: .55rem;
}
.appeditor-gym-roles span { font-size: 1.7rem; color: var(--wp--preset--color--primary); }
.appeditor-gym-roles small { color: var(--wp--preset--color--muted); }
.appeditor-gym-app { padding-block: clamp(2rem, 6vw, 4.5rem); }
.appeditor-gym-app-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	background: var(--wp--preset--color--surface);
	padding: clamp(1.25rem, 4vw, 3rem);
	border-inline-start: .4rem solid var(--wp--preset--color--primary);
}
.appeditor-gym-app-inner p { margin: 0; }
.appeditor-gym-app-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.appeditor-gym-footer {
	padding: 1.4rem 1.25rem;
	border-block-start: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}
.wp-site-blocks > main.wp-block-group:not(.appeditor-gym-front) { padding-inline: 1.25rem; }
.woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}
.woocommerce :is(input.input-text, select, textarea),
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce table.shop_table,
.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--line);
}
.woocommerce :is(input.input-text, select, textarea) {
	border-style: solid;
	border-width: 1px;
	padding: .4em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--wp--preset--color--soft); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--wp--preset--color--contrast); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--wp--preset--color--surface); }
.woocommerce :is(a.button, button.button, input.button),
.woocommerce :is(a.button, button.button, input.button):hover {
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-primary);
}
.appeditor-gym-front a:focus-visible, .appeditor-gym-header :is(a, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}
@media (max-width: 900px) {
	.appeditor-gym-class-grid, .appeditor-gym-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.appeditor-gym-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.appeditor-gym-week li { border-inline-start: 0; }
}
@media (max-width: 782px) {
	.admin-bar { --appeditor-gym-header-top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar { --appeditor-gym-header-top: 0px; }
	.appeditor-gym-header-row { flex-wrap: wrap; gap: .25rem; }
	.appeditor-gym-header-end { flex: 1 1 auto; }
	.appeditor-gym-class-grid, .appeditor-gym-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.appeditor-gym-class a { min-height: 13rem; }
	.appeditor-gym-hero::after { clip-path: polygon(8% 0, 100% 0, 100% 100%, 50% 100%); }
}
@media (prefers-reduced-motion: reduce) {
	.appeditor-gym-front *, .appeditor-gym-header * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
