/**
 * Abra schedule by location (shortcodes: abra_schedule_jana_pawla, abra_schedule_dluga,
 * abra_schedule_slider_jana_pawla, abra_schedule_slider_dluga,
 * abra_schedule_accordion_jana_pawla, abra_schedule_accordion_dluga).
 * Weekend accordion: [weekend_classes] — .abra-schedule--weekend (same motion as .abra-schedule--accordion panels).
 * @font-face for Vinila is injected in PHP (abra_schedule_register_assets) with absolute plugin URL.
 */
.abra-schedule {
	--abra-sch-text: #12151e;
	--abra-sch-text-muted: #6b6b6b;
	--abra-sch-accent-reset: #e8c84a;
	--abra-sch-card-bg: #eceef4;
	--abra-sch-tabs-bg: #dfe3ec;
	--abra-sch-stripe: #f2f4f8;
	--abra-sch-meta-label: #7e879c;
	--abra-sch-shadow-btn: #7e879c;
	box-sizing: border-box;
	min-width: 0;
	font-family: 'Vinila', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--abra-sch-text);
	font-weight: 400;
}

.abra-schedule *,
.abra-schedule *::before,
.abra-schedule *::after {
	box-sizing: border-box;
}

.abra-schedule a {
	cursor: pointer;
}

.abra-schedule__page {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	margin: 0;
}

.abra-schedule .day-tabs {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	column-gap: 8px;
	align-self: center;
	margin: 0 auto 20px;
	padding: 6px;
	background-color: var(--abra-sch-tabs-bg);
	border-radius: 12px;
}

.abra-schedule .day-tabs button {
	font-size: 14px;
	line-height: 120%;
	font-weight: 400;
	color: var(--abra-sch-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 12px 32px;
	border: none;
	border-radius: 8px;
	background-color: #edeef5;
	box-shadow: 0 12px 10px -15px var(--abra-sch-shadow-btn);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
	flex: 0 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.abra-schedule .day-tabs button .day-tabs__label--long {
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.abra-schedule .day-tabs button .day-tabs__label--short {
	display: none;
}

.abra-schedule .day-tabs button:hover:not(.is-active) {
	background-color: #f0f2f6;
}

.abra-schedule .day-tabs button.is-active {
	font-weight: 600;
	background-color: #f3f4f7;
	color: var(--abra-sch-text);
}

.abra-schedule .day-tabs button.is-active:hover {
	background-color: #f3f4f7;
}

@media (max-width: 767px) {
	.abra-schedule .day-tabs button .day-tabs__label--long {
		display: none;
	}

	.abra-schedule .day-tabs button .day-tabs__label--short {
		display: inline-block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.abra-schedule .day-tabs button {
		padding-left: clamp(8px, 2vw, 20px);
		padding-right: clamp(8px, 2vw, 20px);
	}

	.abra-schedule--weekend .weekend-accordion-summary {
		padding-left: clamp(12px, 2vw, 20px);
		padding-right: clamp(2.35rem, 9vw, 2.85rem);
	}

	.abra-schedule--weekend .weekend-accordion-summary::after {
		right: clamp(0.85rem, 3vw, 1.15rem);
	}
}

/* Weekend accordion — match .day-tabs bar + .card content */
.abra-schedule--weekend .weekend-accordion {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 auto 20px;
	padding: 6px;
	background-color: var(--abra-sch-tabs-bg);
	border-radius: 12px;
}

.abra-schedule--weekend .weekend-accordion-item {
	margin: 0;
	border: none;
	border-radius: 8px;
	overflow: hidden;
}

.abra-schedule--weekend .weekend-accordion-summary {
	position: relative;
	font-size: 14px;
	line-height: 120%;
	font-weight: 400;
	color: var(--abra-sch-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 12px 2.75rem 12px 1.25rem;
	border: none;
	border-radius: 8px;
	background-color: #edeef5;
	box-shadow: 0 12px 10px -15px var(--abra-sch-shadow-btn);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	width: 100%;
	margin: 0;
}

.abra-schedule--weekend .weekend-accordion-summary:focus-visible {
	outline: 2px solid var(--abra-sch-accent, #3b82f6);
	outline-offset: 2px;
}

/* Chevron: collapsed = w dół, open = w górę */
.abra-schedule--weekend .weekend-accordion-summary::after {
	content: '';
	position: absolute;
	right: 1.15rem;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: -0.2rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	transition: transform 0.2s ease, opacity 0.15s ease;
	pointer-events: none;
}

.abra-schedule--weekend .weekend-accordion-item.open > .weekend-accordion-summary::after {
	transform: rotate(-135deg);
	margin-top: 0.1rem;
	opacity: 0.65;
}

.abra-schedule--weekend .weekend-accordion-item:not(.open) > .weekend-accordion-summary:hover {
	background-color: #f0f2f6;
}

.abra-schedule--weekend .weekend-accordion-item.open > .weekend-accordion-summary {
	font-weight: 600;
	background-color: #f3f4f7;
	border-radius: 8px 8px 0 0;
	box-shadow: none;
}

.abra-schedule--weekend .weekend-accordion-item.open > .weekend-accordion-summary:hover {
	background-color: #f3f4f7;
}

/* Same motion as .abra-schedule--accordion panels (max-height + ease-in / ease-in-out). */
.abra-schedule--weekend .weekend-accordion-panel {
	box-sizing: border-box;
	overflow: hidden;
	min-height: 0;
	max-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	transition: max-height 0.3s ease-in;
}

.abra-schedule--weekend .weekend-accordion-item.open > .weekend-accordion-panel {
	max-height: var(--abra-weekend-acc-panel-max, 2000px);
	transition: max-height 0.3s ease-in-out;
}

.abra-schedule--weekend .weekend-accordion-panel-inner {
	background-color: var(--abra-sch-card-bg);
	padding: 1.25rem 1.5rem;
	border-radius: 0 0 8px 8px;
}

.abra-schedule--weekend .weekend-classes {
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
}

.abra-schedule--weekend .weekend-classes-empty {
	text-align: center;
	color: var(--abra-sch-text-muted);
	font-size: 14px;
	padding: 0.35rem 0;
}

.abra-schedule--weekend .weekend-accordion .weekend-classes .weekend-class-item {
	padding: 12px;
	border: none;
	outline: none;
	box-shadow: none;
}

.abra-schedule--weekend .weekend-accordion .weekend-classes .weekend-class-item:nth-child(odd) {
	background-color: #eceef4;
}

.abra-schedule--weekend .weekend-accordion .weekend-classes .weekend-class-item:nth-child(even) {
	background-color: #f2f4f8;
}

.abra-schedule--weekend .weekend-class-link {
	text-decoration: none;
	color: inherit;
	border: none;
	box-shadow: none;
	outline: none;
}

.abra-schedule--weekend .weekend-class-title {
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--abra-sch-text);
}

.abra-schedule--weekend .weekend-class-link:hover .weekend-class-title {
	opacity: 0.88;
}

.abra-schedule--weekend .weekend-class-link:focus-visible {
	outline: 2px solid var(--abra-sch-text);
	outline-offset: 3px;
}

.abra-schedule--weekend .weekend-class-meta {
	margin-top: 0.4rem;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--abra-sch-text);
}

.abra-schedule--weekend .weekend-class-location,
.abra-schedule--weekend .weekend-class-instructor {
	margin-top: 0.35rem;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--abra-sch-meta-label);
}

.abra-schedule--weekend .weekend-class-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.abra-schedule--weekend .weekend-class-link {
	flex: 1 1 0;
	min-width: 0;
}

.abra-schedule--weekend .weekend-class-meta {
	flex: 1 1 0;
	min-width: 0;
}

.abra-schedule--weekend .weekend-class-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.abra-schedule--weekend .weekend-class-actions .btn-signup {
	font-size: 12px;
	font-weight: 700;
	padding: 0.4rem 1.1rem;
}

.abra-schedule .card {
	position: relative;
	margin: 0;
	min-width: 0;
	background-color: #dfe3ec;
	border-radius: 16px;
	padding: 8px;
	overflow-x: auto;
}

.abra-schedule .filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 1.25rem;
	margin-bottom: 8px;
	background-color: #f3f4f7;
	border-radius: 8px;
}

@media (max-width: 899px) {
	.abra-schedule .filters {
		gap: 10px;
	}
}

@media (max-width: 420px) {
	.abra-schedule .filters {
		gap: 8px;
	}
}

.abra-schedule .filter-item {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	min-width: 0;
}

.abra-schedule .filters .btn-reset {
	flex: 0 0 auto;
}

.abra-schedule .btn-reset.is-hidden {
	display: none !important;
}

/* Chevron jak w akordeonie weekendowym (border + rotate 45deg) */
.abra-schedule .filter-item::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: -0.2rem;
	border-right: 2px solid var(--abra-sch-text);
	border-bottom: 2px solid var(--abra-sch-text);
	transform: rotate(45deg);
	opacity: 0.55;
	pointer-events: none;
}

.abra-schedule .filter-select {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--abra-sch-text);
	cursor: pointer;
	display: block;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	field-sizing: content;
	/* 12px od tekstu do chevrona + miejsce na „skrzydło” (0.5rem + obramowanie) */
	padding: 0 calc(12px + 0.5rem + 4px) 0 0;
	text-overflow: ellipsis;
	border: none;
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

.abra-schedule .filter-select::-ms-expand {
	display: none;
}

.abra-schedule .filter-select:invalid {
	color: var(--abra-sch-text);
}

.abra-schedule .filter-select:focus {
	outline: none;
}

.abra-schedule .filter-select:focus-visible {
	outline: 2px solid rgba(18, 21, 30, 0.25);
	outline-offset: 2px;
	border-radius: 2px;
}

.abra-schedule .btn-reset {
	border: none;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	color: var(--abra-sch-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	display: inline;
	cursor: pointer;
	flex-shrink: 0;
}

.abra-schedule .btn-reset:hover {
	opacity: 0.75;
}

.abra-schedule .btn-reset:focus-visible {
	outline: 2px solid rgba(18, 21, 30, 0.35);
	outline-offset: 2px;
	border-radius: 2px;
}

.abra-schedule .class-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.abra-schedule .card .class-list li {
	border-radius: 8px;
}

.abra-schedule .class-row {
	display: grid;
	min-width: 0;
	/* Wider title/lead; instructor moderate; typ / styl / poziom narrower */
	grid-template-columns:
		minmax(280px, 2.15fr)
		minmax(96px, 0.78fr)
		minmax(80px, 0.48fr)
		minmax(80px, 0.48fr)
		minmax(80px, 0.48fr)
		auto;
	gap: 1rem 1.25rem;
	align-items: start;
	padding: 30px;
}

.abra-schedule .class-list > .class-row:nth-child(odd) {
	background-color: #edeef5;
}

.abra-schedule .class-list > .class-row:nth-child(even) {
	background-color: #f2f4f8;
}

.abra-schedule .class-row.is-hidden {
	display: none;
}

/* Today's classes that already ended (site timezone): dim row, signup disabled in markup */
.abra-schedule .class-row.class-row--ended-today {
	opacity: 0.5;
}

.abra-schedule .class-row.class-row--ended-today .btn-signup:disabled {
	cursor: not-allowed;
}

@media (max-width: 900px) {
	.abra-schedule .class-row {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.abra-schedule .class-meta-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem 1rem;
		grid-column: 1 / -1;
	}

	.abra-schedule .class-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}

	.abra-schedule .class-actions .btn-signup {
		width: auto;
		flex: 0 0 auto;
		max-width: none;
		text-align: center;
	}
}

.abra-schedule .class-time {
	font-size: 12px;
	font-weight: 400;
	color: var(--abra-sch-text);
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.abra-schedule .class-time__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.abra-schedule .class-time > .class-label-pill {
	margin-inline-start: 0;
}

.abra-schedule .class-time .clock {
	display: inline-flex;
	opacity: 0.7;
}

.abra-schedule .class-duration {
	white-space: nowrap;
}

.abra-schedule .class-time__row .class-duration {
	margin-inline-start: 0.65rem;
}

.abra-schedule .class-label-pill {
	display: inline-flex;
	align-items: center;
	margin-inline-start: 6px;
	padding: 4px 5px 3px 6px;
	border-radius: 50px;
	text-transform: uppercase;
	font-family: 'Vinila', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
}

.abra-schedule .class-title {
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--abra-sch-text);
}

.abra-schedule .class-subtitle {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--abra-sch-text);
	margin: 1px 0 0;
}

.abra-schedule .class-meta-grid {
	display: contents;
}

@media (max-width: 900px) {
	.abra-schedule .class-meta-grid {
		display: grid;
	}
}

.abra-schedule .meta-cell {
	min-width: 0;
}

.abra-schedule .meta-label {
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--abra-sch-meta-label);
	margin-bottom: 0.35rem;
}

.abra-schedule .meta-value {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--abra-sch-text);
	word-break: break-word;
}

.abra-schedule .class-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.abra-schedule a.btn-signup,
.abra-schedule button.btn-signup {
	font-size: 0.8rem;
	font-weight: 400;
	padding: 0.55rem 1.35rem;
	border-radius: 999px;
	border: 1.5px solid var(--abra-sch-text);
	background: transparent;
	color: var(--abra-sch-text);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	font-family: inherit;
	line-height: inherit;
}

.abra-schedule button.btn-signup {
	-webkit-appearance: none;
	appearance: none;
}

.abra-schedule a.btn-signup:hover,
.abra-schedule button.btn-signup:hover {
	background: var(--abra-sch-text);
	color: #fff;
}

/* Primary (yellow) variant — [form-button] */
.abra-schedule button.btn-signup--primary {
	font-size: 16px;
	font-weight: 700;
	line-height: 16px;
	padding: 16px 24px;
	border: none;
	border-radius: 30px;
	background: #ffd131;
	color: var(--abra-sch-text);
}

.abra-schedule button.btn-signup--primary:hover {
	background: #f0c020;
	color: var(--abra-sch-text);
}

/* Outline variant — [form-button-outline] standalone */
.abra-form-button-wrap > button.btn-signup:not(.btn-signup--primary) {
	font-size: 16px;
	font-weight: 700;
}

.abra-schedule__empty {
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--abra-sch-text-muted);
	font-size: 14px;
}

.abra-schedule__empty.is-hidden {
	display: none;
}

/* Class label pill */
.abra-schedule .class-list div .class-label-pill {
	padding-bottom: 3px;
	font-weight: 500;
	font-size: 10px;
}

/* Clock */
.abra-schedule .class-time__row .clock {
	padding-bottom: 3px;
	margin-left: 0;
}

/* Link / signup button in row */
.abra-schedule .class-list .class-actions a.btn-signup,
.abra-schedule .class-list .class-actions button.btn-signup {
	font-size: 12px;
	padding-top: 3px;
	padding-bottom: 3px;
	padding-right: 8px;
	padding-left: 8px;
	font-weight: 600;
}

/* —— Schedule signup modal —— */
.abra-sch-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.abra-sch-modal[hidden] {
	display: none !important;
}

.abra-sch-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.abra-sch-modal__dialog {
	position: relative;
	z-index: 1;
	max-width: 600px;
	width: min(600px, calc(100vw - 2rem));
	max-height: min(92vh, 48rem);
	overflow: auto;
	background: #fff;
	border-radius: 40px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.abra-sch-modal__close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	width: 3rem;
	height: 3rem;
	border: none;
	background: transparent;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--abra-sch-text);
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.abra-sch-modal__close:hover {
	opacity: 0.65;
}

.abra-sch-modal__inner {
	padding: 2.75rem clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem) !important;
}

/* Isolate modal from Bricks / theme inheritance */
.abra-sch-modal__inner *:not(svg):not(path) {
	float: none;
}

.abra-sch-modal__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--abra-sch-text);
	line-height: 1.3;
}

.abra-sch-modal__class-name {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--abra-sch-text);
}

.abra-sch-modal__form {
	position: relative;
}

.abra-sch-modal__feedback {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-size: 0.875rem;
	line-height: 1.35;
}

.abra-sch-modal__feedback--error {
	background: #fde8e8;
	color: #7f1d1d;
}

.abra-sch-modal__feedback--ok {
	background: #e8f5e9;
	color: #1b5e20;
}

.abra-sch-modal__field {
	margin-bottom: 1rem;
}

.abra-sch-modal__field label {
	display: block !important;
	font-size: 10px !important;
	font-weight: 400 !important;
	color: var(--abra-sch-text-muted) !important;
	margin-bottom: 0.35rem !important;
	padding: 0 !important;
	line-height: 1.3 !important;
}

.abra-sch-modal__req {
	color: #c62828;
}

.abra-sch-modal__field input,
.abra-sch-modal__field textarea {
	box-sizing: border-box !important;
	font: inherit;
	font-size: 0.9375rem !important;
	padding: 0.65rem 1.1rem !important;
	border: 1px solid #c5cad6 !important;
	border-radius: 50px !important;
	background: #fff !important;
	color: var(--abra-sch-text) !important;
	transition: border-color 0.15s, box-shadow 0.15s;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: 1.4 !important;
}

.abra-sch-modal__field textarea {
	border-radius: 20px !important;
	min-height: 6rem;
	resize: vertical;
}

.abra-sch-modal__field input:focus,
.abra-sch-modal__field textarea:focus {
	outline: none !important;
	border-color: #74a1eb !important;
	box-shadow: 0 0 0 3px rgba(116, 161, 235, 0.25) !important;
}

.abra-sch-modal__field input::placeholder,
.abra-sch-modal__field textarea::placeholder {
	color: #9aa3b2;
}

.abra-sch-modal__row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 1rem;
}

.abra-sch-modal__row .abra-sch-modal__field {
	flex: 1 1 0%;
	min-width: 0;
	margin-bottom: 0;
}

.abra-sch-modal__row .abra-sch-modal__field:first-of-type {
	margin-right: 10px;
}

.abra-sch-modal__row .abra-sch-modal__field:last-of-type {
	margin-left: 10px;
}

@media (max-width: 520px) {
	.abra-sch-modal__row {
		flex-direction: column;
	}

	.abra-sch-modal__row .abra-sch-modal__field:first-of-type,
	.abra-sch-modal__row .abra-sch-modal__field:last-of-type {
		margin-left: 0;
		margin-right: 0;
	}
}

.abra-sch-modal__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.abra-sch-modal__checks {
	margin: 1.25rem 0 1.5rem;
	padding-bottom: 5px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.abra-sch-modal__form .abra-sch-modal__field:has(textarea) {
	padding-bottom: 5px;
}

.abra-sch-modal__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 10px;
	line-height: 1.2em;
	color: var(--abra-sch-text);
	cursor: pointer;
}

.abra-sch-modal__check input[type='checkbox'] {
	flex-shrink: 0;
	margin-top: 2px;
	width: auto !important;
	height: auto !important;
	min-width: 1em;
	padding: 0 !important;
	border: revert !important;
	border-radius: revert !important;
	-webkit-appearance: checkbox !important;
	appearance: checkbox !important;
	accent-color: var(--abra-sch-text);
}

.abra-sch-modal__check-text a {
	color: inherit;
	text-decoration: underline;
}

.abra-sch-modal__actions {
	margin-top: 0.5rem;
}

.abra-sch-modal__submit {
	font: inherit;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	padding: 0.85rem 1.75rem !important;
	border: none !important;
	border-radius: 30px !important;
	background: #ffd131 !important;
	color: var(--abra-sch-text) !important;
	cursor: pointer;
	transition: transform 0.12s, filter 0.12s;
}

.abra-sch-modal__submit:hover:not(:disabled) {
	filter: brightness(1.03);
}

.abra-sch-modal__submit:disabled {
	opacity: 0.75;
	cursor: wait;
}

/* Modal overrides inside schedule root; height:auto avoids theme flex constraints */
.abra-schedule .abra-sch-modal .abra-sch-modal__dialog {
	max-height: none;
	height: auto !important;
	max-width: 600px;
	width: min(600px, calc(100vw - 2rem));
}

.abra-schedule .abra-sch-modal__dialog h2 {
	font-size: 24px;
}

.abra-schedule .abra-sch-modal__dialog p {
	font-size: 16px;
}

.abra-schedule .abra-sch-modal__actions .abra-sch-modal__submit .abra-sch-modal__submit-label {
	font-size: 16px;
}

.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='text'],
.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='email'],
.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='tel'] {
	font-size: 16px;
}

.abra-schedule .abra-sch-modal__form .abra-sch-modal__field textarea {
	font-size: 16px;
}

.abra-schedule .abra-sch-modal__checks .abra-sch-modal__check span {
	font-size: 11px;
}

/* Desktop: larger labels & inputs */
@media (min-width: 521px) {
	.abra-sch-modal__field label {
		font-size: 16px !important;
	}

	.abra-sch-modal__field input,
	.abra-sch-modal__field textarea {
		font-size: 16px !important;
	}
}

@media (max-width: 420px) {
	.abra-sch-modal__dialog h2,
	.abra-schedule .abra-sch-modal__dialog h2 {
		font-size: 18px !important;
	}

	.abra-sch-modal__form .abra-sch-modal__field textarea,
	.abra-schedule .abra-sch-modal__form .abra-sch-modal__field textarea {
		min-height: 6px;
		height: 60px;
		font-size: 14px !important;
	}

	.abra-sch-modal__checks .abra-sch-modal__check span,
	.abra-schedule .abra-sch-modal__checks .abra-sch-modal__check span {
		font-size: 8px !important;
	}

	.abra-sch-modal__form .abra-sch-modal__field input[type='text'],
	.abra-sch-modal__form .abra-sch-modal__field input[type='email'],
	.abra-sch-modal__form .abra-sch-modal__field input[type='tel'],
	.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='text'],
	.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='email'],
	.abra-schedule .abra-sch-modal__form .abra-sch-modal__field input[type='tel'] {
		font-size: 14px !important;
	}
}

/* —— Bricks popup forms (no block IDs) —— */
.brx-popup .brx-popup-content .form-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
}

.brx-popup .brx-popup-content .form-group li {
	display: flex;
	flex-direction: row;
}

.brx-popup .brx-popup-content .form-group li label {
	font-weight: 400;
	font-size: 10px;
}

.brx-popup .brx-popup-content .form-group .options-wrapper li label {
	line-height: 1.2em !important;
}

.brx-popup .brx-popup-content .form-group .options-wrapper li input[type='checkbox'] {
	width: auto !important;
}

.brx-popup .brx-popup-content form .form-group:nth-child(2) {
	flex: 1 1 0%;
	margin-right: 10px;
}

.brx-popup .brx-popup-content form .form-group:nth-child(3) {
	flex: 1 1 0%;
	margin-left: 10px;
}

.brx-popup .brx-popup-content form .form-group:nth-child(5),
.brx-popup .brx-popup-content form .form-group:nth-child(6) {
	padding-bottom: 5px;
}

@media (min-width: 768px) {
	.brx-popup .brx-popup-content {
		padding-left: 0;
	}
}

/* —— Card slider (same tabs/filters as list) —— */
.abra-schedule--cards-slider .abra-schedule__slider {
	min-width: 0;
	margin: 0;
	padding: 0 4px 4px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scrollbar-gutter: stable;
	outline: none;
}

.abra-schedule--cards-slider .abra-schedule__slider:focus-visible {
	outline: 2px solid rgba(18, 21, 30, 0.25);
	outline-offset: 2px;
	border-radius: 8px;
}

.abra-schedule--cards-slider .abra-schedule__slider-track {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 20px;
	padding: 4px 8px 12px;
	min-width: 0;
}

.abra-schedule--cards-slider .abra-class-card.class-row {
	display: block;
	grid-template-columns: unset;
	grid-template-rows: unset;
	gap: 0;
	align-items: unset;
	padding: 0;
	flex: 0 0 calc(100% / 3.5);
	min-width: calc(100% / 3.5);
	max-width: calc(100% / 3.5);
	scroll-snap-align: start;
	border-radius: 22px;
	background-color: #edeef5;
	box-shadow: 0 10px 28px -18px rgba(18, 21, 30, 0.35);
	overflow: hidden;
}

.abra-schedule--cards-slider .abra-class-card.class-row--ended-today {
	opacity: 0.5;
}

.abra-schedule--cards-slider .abra-class-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.abra-schedule--cards-slider .abra-class-card__media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 6 / 8;
	background-color: #dfe3ec;
	border-radius: 22px;
	overflow: hidden;
}

.abra-schedule--cards-slider .abra-class-card__media--placeholder {
	background: linear-gradient(145deg, #e4e7ef 0%, #d8dce6 100%);
}

.abra-schedule--cards-slider .abra-class-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.abra-schedule--cards-slider .abra-class-card__badge {
	position: absolute;
	left: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 400;
	line-height: 12px;
	max-width: calc(100% - 24px);
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	box-sizing: border-box;
}

.abra-schedule--cards-slider .abra-class-card__badge--time {
	top: 12px;
	background-color: #ffd131;
	color: #272727;
	font-weight: 400;
}

.abra-schedule--cards-slider .abra-class-card__badge--instructors {
	bottom: 12px;
	background-color: rgba(243, 244, 247, 0.92);
	color: #272727;
	font-weight: 400;
	backdrop-filter: blur(4px);
}

.abra-schedule--cards-slider .abra-class-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 18px 18px 20px;
	min-width: 0;
	background-color: #edeef5;
}

.abra-schedule--cards-slider .abra-class-card__tax {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--abra-sch-meta-label);
	line-height: 1.3;
}

.abra-schedule--cards-slider .abra-class-card__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--abra-sch-text);
}

.abra-schedule--cards-slider .abra-class-card__excerpt {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #7e879c;
	flex: 1 1 auto;
}

.abra-schedule--cards-slider .abra-class-card__actions {
	margin-top: auto;
	display: flex;
	justify-content: flex-start;
}

.abra-schedule--cards-slider .abra-class-card__actions .btn-signup {
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	padding: 0.5rem 1.1rem;
	color: #ffffff;
	background-color: #12151e;
	border-color: #12151e;
}

@media (max-width: 480px) {
	.abra-schedule--cards-slider .abra-class-card.class-row {
		flex-basis: min(280px, calc(100vw - 3rem));
		min-width: min(280px, calc(100vw - 3rem));
		max-width: min(280px, calc(100vw - 3rem));
	}
}

/* —— Accordion list (same tabs/filters as standard list) —— */
.abra-schedule--accordion .abra-schedule-acc-shell {
	align-items: start;
}

.abra-schedule--accordion .abra-schedule-acc__details {
	grid-column: 1 / span 5;
	min-width: 0;
}

.abra-schedule--accordion .abra-schedule-acc__actions.class-actions {
	grid-column: 6;
	min-width: 0;
	justify-self: end;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

.abra-schedule--accordion .abra-schedule-acc__summary {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	cursor: pointer;
	display: grid;
	grid-template-columns:
		minmax(280px, 2.15fr)
		minmax(96px, 0.78fr)
		minmax(80px, 0.48fr)
		minmax(80px, 0.48fr)
		minmax(80px, 0.48fr);
	gap: 1rem 1.25rem;
	align-items: start;
}

.abra-schedule--accordion .abra-schedule-acc__summary:focus-visible {
	outline: 2px solid var(--abra-sch-accent, #3b82f6);
	outline-offset: 2px;
}

.abra-schedule--accordion .abra-schedule-acc__summary .abra-schedule-acc__meta {
	display: contents;
}

/* Outer: only max-height animates; padding/border live on inner so they do not jump before collapse. */
.abra-schedule--accordion .abra-schedule-acc__panel {
	box-sizing: border-box;
	overflow: hidden;
	min-height: 0;
	max-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	/* ease-in: when collapsing, visible motion is in the low max-height range — keep end of curve snappier */
	transition: max-height 0.3s ease-in;
}

.abra-schedule--accordion .abra-schedule-acc__details.open > .abra-schedule-acc__panel {
	max-height: var(--abra-acc-panel-max, 2000px);
	transition: max-height 0.3s ease-in-out;
}

.abra-schedule--accordion .abra-schedule-acc__panel-inner {
	box-sizing: border-box;
	margin: 0;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(18, 21, 30, 0.08);
	font-size: 14px;
	line-height: 1.5;
	color: var(--abra-sch-text);
}

.abra-schedule--accordion .abra-schedule-acc__panel-inner.entry-content > *:first-child {
	margin-top: 0;
}

.abra-schedule--accordion .abra-schedule-acc__empty-desc {
	margin: 0;
	color: var(--abra-sch-text-muted);
	font-size: 14px;
}

.abra-schedule--accordion button.btn-acc-toggle {
	box-sizing: border-box;
	font-size: 12px;
	font-weight: 600;
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	border: 1.5px solid #dadee8;
	background-color: #dadee8;
	color: #13151e;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	font-family: inherit;
	line-height: 1.2;
	min-width: 8.25rem;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
}

.abra-schedule--accordion button.btn-acc-toggle:hover {
	background-color: #cfd5e3;
	border-color: #cfd5e3;
	color: #13151e;
}

.abra-schedule--accordion .abra-schedule-acc__details:not(.open) ~ .abra-schedule-acc__actions .btn-acc-toggle__lbl--open {
	display: none;
}

.abra-schedule--accordion .abra-schedule-acc__details.open ~ .abra-schedule-acc__actions .btn-acc-toggle__lbl--collapsed {
	display: none;
}

@media (max-width: 900px) {
	.abra-schedule--accordion .abra-schedule-acc__details {
		grid-column: 1 / -1;
	}

	.abra-schedule--accordion .abra-schedule-acc__actions.class-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
	}

	.abra-schedule--accordion .abra-schedule-acc__summary {
		grid-template-columns: 1fr;
	}

	.abra-schedule--accordion .abra-schedule-acc__summary .abra-schedule-acc__meta {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem 1rem;
	}
}

/* ============================================================================
 * Card sliders: [abra_news_slider] [abra_events_slider] [abra_special_classes_slider]
 * Peek-card slider z nawigacją strzałkami pod spodem.
 * ============================================================================ */

.abra-card-slider {
	--per-view: 3;
	--gap: 24px;
	--peek: 80px;

	box-sizing: border-box;
	width: 100%;
	overflow-x: clip;
	font-family: 'Vinila', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--abra-sch-text, #12151e);
	margin: 0 0 2.5rem;
}

.abra-card-slider *,
.abra-card-slider *::before,
.abra-card-slider *::after {
	box-sizing: border-box;
}

.abra-card-slider__title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 400;
	line-height: 1.15;
	color: inherit;
}

.abra-card-slider__viewport {
	overflow: hidden;
	padding-right: var(--peek);
	margin-right: calc(var(--peek) * -1);
	-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--peek)), rgba(0, 0, 0, 0.6) 100%);
	        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - var(--peek)), rgba(0, 0, 0, 0.6) 100%);
}

.abra-card-slider__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--gap);
	transform: translate3d(0, 0, 0);
	transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.abra-card-slider__slide {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap) - var(--peek)) / var(--per-view));
	min-width: 0;
	display: flex;
}

@media (max-width: 1280px) {
	.abra-card-slider {
		--per-view: 2;
		--gap: 18px;
		--peek: 56px;
	}
}

@media (max-width: 640px) {
	.abra-card-slider {
		--per-view: 1;
		--gap: 14px;
		--peek: 48px;
	}
}

/* Card — match site reference (Bricks .custom-slider cards) */
.abra-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--abra-sch-card-bg, #eceef4);
	border-radius: 24px;
	overflow: visible;
	padding: 12px 12px 60px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.abra-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px -22px rgba(18, 21, 30, 0.35);
}

.abra-card__media {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: var(--abra-sch-stripe, #f2f4f8);
	text-decoration: none;
}

.abra-card__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.abra-card:hover .abra-card__image {
	transform: scale(1.04);
}

.abra-card__image--placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--abra-sch-tabs-bg, #dfe3ec) 0%, var(--abra-sch-stripe, #f2f4f8) 100%);
}

.abra-card__label {
	display: inline-block;
	margin: 0 0 10px 0;
	padding: 6px 10px 4px 10px;
	background: #fecf23;
	color: #12151e;
	border-radius: 999px;
	font-family: 'Vinila', sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	width: max-content;
	max-width: 100%;
}

.abra-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 12px 0 0;
	gap: 8px;
}

.abra-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: uppercase;
	color: var(--abra-sch-text, #12151e);
}

.abra-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: background-size 0.25s ease;
}

.abra-card__title a:hover {
	background-size: 100% 1px;
}

.abra-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--abra-sch-text, #12151e);
}

.abra-card__text p {
	margin: 0;
}

.abra-card__cta {
	margin-top: auto;
	padding-top: 1rem;
	display: inline-block;
	align-self: flex-start;
	color: var(--abra-sch-text, #12151e);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.abra-card__cta-wrap {
	margin-top: auto;
	padding-top: 1rem;
}

.abra-card__cta-wrap .abra-form-button-wrap {
	display: block;
}

.abra-card__cta-wrap .btn-signup {
	width: auto;
}

/* Slider card shared styles (news + class) */
.abra-card--news:hover,
.abra-card--class:hover {
	transform: none;
	box-shadow: none;
}

.abra-card--news:hover .abra-card__image,
.abra-card--class:hover .abra-card__image {
	transform: none;
}

.abra-card-slider .abra-card--news,
.abra-card-slider .abra-card--class {
	padding: 8px;
}

.abra-card--news .abra-card__body,
.abra-card--class .abra-card__body {
	padding: 8px;
}

/* News card specifics */
.abra-card--news .abra-card__media img {
	aspect-ratio: 3 / 2;
}

.abra-card--news p {
	color: #7e879c;
}

.abra-card--news h3 {
	margin-top: 12px;
}

.abra-card--news .abra-card__cta {
	padding-left: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
}

/* Navigation arrows */
.abra-card-slider__nav {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	justify-content: center;
	margin-top: 1.5rem;
}

.abra-card-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 999px;
	border: 1.5px solid var(--abra-sch-text, #12151e);
	background: transparent;
	color: var(--abra-sch-text, #12151e);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.abra-card-slider__arrow:hover {
	background: var(--abra-sch-text, #12151e);
	color: #fff;
}

.abra-card-slider__arrow:focus-visible {
	outline: 2px solid var(--abra-sch-accent-reset, #e8c84a);
	outline-offset: 2px;
}

.abra-card-slider__arrow:active {
	transform: scale(0.96);
}

.abra-card-slider__arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

.abra-card-slider__arrow svg {
	display: block;
}
