.wp-block-ohmyhack-premium-cards.omh-pc {
	--omh-pc-max-width: 1180px;
	--omh-pc-gap: 24px;
	--omh-pc-padding: 28px;
	--omh-pc-radius: 22px;
	--omh-pc-min-height: 250px;
	--omh-pc-mobile-min-height: 205px;
	--omh-pc-bg: #fff;
	--omh-pc-title: #101828;
	--omh-pc-text: #475467;
	--omh-pc-border: #e4e7ec;
	--omh-pc-accent: #111827;
	--omh-pc-duration: 650ms;
	--omh-pc-stagger: 90ms;
	box-sizing: border-box;
	width: min(100%, var(--omh-pc-max-width));
	max-width: var(--omh-pc-max-width);
	margin-inline: auto;
	padding: 2px;
	content-visibility: auto;
	contain-intrinsic-size: auto 420px;
}

.wp-block-ohmyhack-premium-cards.omh-pc *,
.wp-block-ohmyhack-premium-cards.omh-pc *::before,
.wp-block-ohmyhack-premium-cards.omh-pc *::after {
	box-sizing: border-box;
}

.omh-pc__track {
	display: grid;
	gap: var(--omh-pc-gap);
	width: 100%;
	max-width: 100%;
	grid-auto-rows: 1fr;
	align-items: stretch;
}

.omh-pc--desktop-grid .omh-pc__track {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.omh-pc--desktop-snap .omh-pc__track {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--omh-pc-gap) * 2)) / 3);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-block: 10px 14px;
}

.omh-pc--desktop-snap .omh-pc__track::-webkit-scrollbar {
	display: none;
}

.omh-pc__card {
	--omh-pc-hover-shadow: none;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	min-height: var(--omh-pc-min-height);
	height: 100%;
	padding: var(--omh-pc-padding);
	border: 1px solid color-mix(in srgb, var(--omh-pc-border) 92%, white 8%);
	border-radius: var(--omh-pc-radius);
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--omh-pc-bg) 96%, white 4%), color-mix(in srgb, var(--omh-pc-bg) 100%, transparent 0%)),
		linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
	color: var(--omh-pc-text);
	isolation: isolate;
	overflow: hidden;
	box-shadow: none;
	transform: translateZ(0);
	backface-visibility: hidden;
	transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}

.omh-pc__card-inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	height: 100%;
}

.omh-pc--desktop-snap .omh-pc__card,
.omh-pc--mobile-snap .omh-pc__card {
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.omh-pc__card::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background:
		radial-gradient(circle at top right, color-mix(in srgb, var(--omh-pc-accent) 11%, transparent), transparent 36%),
		linear-gradient(135deg, color-mix(in srgb, var(--omh-pc-accent) 4%, transparent), transparent 46%);
	opacity: 0;
	transition: opacity 260ms ease;
	pointer-events: none;
}

.omh-pc__card::after {
	content: '';
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--omh-pc-accent) 72%, white 28%), color-mix(in srgb, var(--omh-pc-accent) 12%, transparent));
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 260ms ease, transform 260ms ease;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.omh-pc__card:hover,
	.omh-pc__card:focus-within {
		box-shadow: var(--omh-pc-hover-shadow);
		border-color: color-mix(in srgb, var(--omh-pc-accent) 14%, var(--omh-pc-border));
		transform: translateY(-6px);
	}

	.omh-pc__card:hover::before,
	.omh-pc__card:focus-within::before,
	.omh-pc__card:hover::after,
	.omh-pc__card:focus-within::after {
		opacity: 1;
		transform: translateY(0);
	}
}

.omh-pc--shadow-none .omh-pc__card {
	--omh-pc-hover-shadow: none;
}

.omh-pc--shadow-soft .omh-pc__card {
	--omh-pc-hover-shadow: 0 18px 42px rgba(16, 24, 40, 0.10), 0 3px 10px rgba(16, 24, 40, 0.06);
}

.omh-pc--shadow-medium .omh-pc__card {
	--omh-pc-hover-shadow: 0 24px 60px rgba(16, 24, 40, 0.14), 0 6px 16px rgba(16, 24, 40, 0.08);
}

.omh-pc--shadow-floating .omh-pc__card {
	--omh-pc-hover-shadow: 0 34px 80px rgba(16, 24, 40, 0.18), 0 8px 22px rgba(16, 24, 40, 0.10);
}

.omh-pc__title {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--omh-pc-title);
	font: inherit;
	font-size: clamp(1.15rem, 0.98rem + 0.55vw, 1.5rem);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

.omh-pc__subtitle {
	width: 100%;
	margin: 10px 0 0;
	padding: 0;
	color: color-mix(in srgb, var(--omh-pc-title) 62%, var(--omh-pc-text) 38%);
	font-size: clamp(0.96rem, 0.92rem + 0.1vw, 1.02rem);
	font-weight: 500;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.omh-pc__text {
	width: 100%;
	margin: 18px 0 0;
	padding: 0;
	color: var(--omh-pc-text);
	font-size: clamp(0.94rem, 0.9rem + 0.15vw, 1.03rem);
	line-height: 1.68;
	overflow-wrap: anywhere;
}

.omh-pc__text > :first-child {
	margin-top: 0;
}

.omh-pc__text > :last-child {
	margin-bottom: 0;
}

.omh-pc__controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin-top: 18px;
}

.omh-pc.is-snap-active .omh-pc__controls {
	display: flex;
}

.omh-pc__arrow {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--omh-pc-accent) 18%, transparent);
	border-radius: 999px;
	background: var(--omh-pc-bg);
	color: var(--omh-pc-accent);
	font: inherit;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.omh-pc__arrow:hover:not(:disabled),
.omh-pc__arrow:focus-visible:not(:disabled) {
	transform: translateY(-2px);
	background: var(--omh-pc-accent);
	color: #fff;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--omh-pc-accent) 24%, transparent);
}

.omh-pc__arrow:focus-visible,
.omh-pc__dot:focus-visible,
.omh-pc__track:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--omh-pc-accent) 32%, transparent);
	outline-offset: 3px;
}

.omh-pc__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.omh-pc__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
	max-width: min(50vw, 320px);
}

.omh-pc__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--omh-pc-accent) 22%, transparent);
	cursor: pointer;
	transition: width 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.omh-pc__dot.is-active {
	width: 24px;
	background: var(--omh-pc-accent);
}

.omh-pc__dot[hidden] {
	display: none !important;
}

.omh-pc.is-ready .omh-pc__card {
	opacity: 0;
	transition-property: opacity, transform, filter, box-shadow, border-color, background;
	transition-duration: var(--omh-pc-duration), var(--omh-pc-duration), var(--omh-pc-duration), 260ms, 260ms, 260ms;
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1), ease, ease, ease;
	transition-delay: calc(var(--omh-pc-index, 0) * var(--omh-pc-stagger)), calc(var(--omh-pc-index, 0) * var(--omh-pc-stagger)), calc(var(--omh-pc-index, 0) * var(--omh-pc-stagger)), 0ms, 0ms, 0ms;
	will-change: opacity, transform;
}

.omh-pc--animation-fade-up.is-ready .omh-pc__card {
	transform: translate3d(0, 28px, 0);
}

.omh-pc--animation-scale.is-ready .omh-pc__card {
	transform: scale(0.94);
}

.omh-pc--animation-slide-left.is-ready .omh-pc__card {
	transform: translate3d(-34px, 0, 0);
}

.omh-pc--animation-slide-right.is-ready .omh-pc__card {
	transform: translate3d(34px, 0, 0);
}

.omh-pc--animation-soft-rise.is-ready .omh-pc__card {
	transform: translate3d(0, 18px, 0) scale(0.985);
	filter: blur(2px);
}

.omh-pc.is-ready.is-visible .omh-pc__card {
	opacity: 1;
	transform: none;
	filter: none;
}

@media (max-width: 1023.98px) and (min-width: 768px) {
	.omh-pc {
		padding-inline: 12px;
	}

	.omh-pc--desktop-grid .omh-pc__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.omh-pc--desktop-snap .omh-pc__track {
		grid-auto-columns: calc((100% - var(--omh-pc-gap)) / 2);
	}
}

@media (max-width: 767.98px) {
	.wp-block-ohmyhack-premium-cards.omh-pc {
		width: 100%;
		max-width: 100%;
		padding-inline: clamp(16px, 5vw, 24px);
	}

	.omh-pc__track {
		gap: clamp(14px, 4vw, var(--omh-pc-gap));
	}

	.omh-pc--mobile-stack .omh-pc__track {
		display: grid;
		grid-auto-flow: row;
		grid-template-columns: minmax(0, min(100%, 420px));
		justify-content: center;
		overflow: visible;
		scroll-snap-type: none;
	}

	.omh-pc--mobile-snap .omh-pc__track {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: min(100%, 420px);
		grid-template-columns: none;
		justify-content: start;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-inline: contain;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-block: 8px 12px;
	}

	.omh-pc--mobile-snap .omh-pc__track::-webkit-scrollbar {
		display: none;
	}

	.omh-pc__card {
		min-height: var(--omh-pc-mobile-min-height);
		padding: clamp(20px, 6vw, var(--omh-pc-padding));
		border-radius: min(var(--omh-pc-radius), 24px);
	}

	.omh-pc__title {
		font-size: clamp(1.06rem, 4.7vw, 1.28rem);
	}

	.omh-pc__subtitle {
		font-size: clamp(0.93rem, 3.8vw, 1rem);
	}

	.omh-pc__text {
		font-size: clamp(0.91rem, 3.8vw, 0.99rem);
		line-height: 1.62;
	}

	.omh-pc__controls {
		justify-content: center;
		gap: 10px;
		margin-top: 14px;
	}

	.omh-pc__arrow {
		width: 40px;
		height: 40px;
	}

	.omh-pc__dots {
		max-width: calc(100vw - 150px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.omh-pc,
	.omh-pc *,
	.omh-pc *::before,
	.omh-pc *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}

	.omh-pc.is-ready .omh-pc__card {
		opacity: 1;
		transform: none;
		filter: none;
	}
}

@media (scripting: none) {
	.omh-pc .omh-pc__card {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

@media (min-width: 1024px) {
	.omh-pc[data-omh-card-count="1"] .omh-pc__track {
		grid-template-columns: minmax(0, calc((100% - (var(--omh-pc-gap) * 2)) / 3));
		grid-auto-columns: calc((100% - (var(--omh-pc-gap) * 2)) / 3);
		justify-content: center;
	}

	.omh-pc[data-omh-card-count="2"] .omh-pc__track {
		grid-template-columns: repeat(2, minmax(0, calc((100% - (var(--omh-pc-gap) * 2)) / 3)));
		grid-auto-columns: calc((100% - (var(--omh-pc-gap) * 2)) / 3);
		justify-content: center;
	}
}
