.cp-product-title,
.cp-product-content {
	color: inherit;
	font: inherit;
}

.cp-product-title__heading,
.cp-product-intro__heading,
.cp-product-story__heading,
.cp-product-specifications__heading,
.cp-product-video__heading,
.cp-product-cross-sell__heading {
	color: inherit;
	font: inherit;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .75em;
}

.cp-product-title__pills {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
	margin: .75em 0 0;
	padding: 0;
}

.cp-product-title__pill {
	border: 1px solid currentColor;
	border-radius: 999px;
	font: inherit;
	font-size: .8em;
	padding: .25em .7em;
}

.cp-product-content > section {
	margin-block: 2rem;
}

.cp-product-intro__lead > :first-child,
.cp-product-intro__note > :first-child,
.cp-product-story__copy > :first-child {
	margin-top: 0;
}

.cp-product-intro__lead > :last-child,
.cp-product-intro__note > :last-child,
.cp-product-story__copy > :last-child {
	margin-bottom: 0;
}

.cp-product-intro__note {
	border-inline-start: .25rem solid currentColor;
	margin-top: 1rem;
	padding-inline-start: 1rem;
}

.cp-product-story__row {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 2rem;
}

.cp-product-story__media {
	margin: 0;
}

.cp-product-story__media img,
.cp-product-video__item iframe,
.cp-product-video__item video {
	display: block;
	max-width: 100%;
	width: 100%;
}

.cp-product-video__grid,
.cp-product-cross-sell__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.cp-product-video--wide .cp-product-video__grid {
	grid-template-columns: minmax(0, 1fr);
}

.cp-product-video__item iframe {
	aspect-ratio: 16 / 9;
	border: 0;
}

.cp-product-specifications__list {
	margin: 0;
}

.cp-product-specifications__item {
	border-block-end: 1px solid currentColor;
	display: grid;
	gap: .5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	padding: .75rem 0;
}

.cp-product-specifications__item dd,
.cp-product-specifications__item dt {
	margin: 0;
}

.cp-product-specifications__item dt {
	font-weight: 700;
}

.cp-product-cross-sell__card {
	color: inherit;
	display: grid;
	gap: .5rem;
	text-decoration: none;
}

.cp-product-cross-sell__image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.cp-product-host {
	--cp-layout-viewport-gutter: clamp(10px, 5vw, 20px);
	display: block !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding-inline: var(--cp-layout-viewport-gutter) !important;
	box-sizing: border-box;
}

.cp-product-host__product {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.cp-product-layout {
	--cp-layout-max-width: 1088px;
	--cp-layout-surface: var(--cp-color-surface, #fff);
	--cp-layout-border-color: var(--cp-color-border, rgba(7, 19, 33, .14));
	--cp-layout-card-radius: var(--cp-radius-card, 8px);
	--cp-layout-card-shadow: var(--cp-shadow-card, 0 12px 32px rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .02));
	--cp-color-heading: var(--cp-color-text, #273240);
	--cp-color-text-muted: var(--cp-color-muted, #667085);
	--cp-color-surface-alt: color-mix(in srgb, var(--cp-color-surface, #fff) 94%, var(--cp-color-text, #273240) 6%);
	--cp-color-border-soft: color-mix(in srgb, var(--cp-color-border, rgba(7, 19, 33, .14)) 55%, transparent);
	--cp-radius-md: var(--cp-radius-input, 8px);
	--cp-button-radius: var(--cp-radius-button, 8px);
	--cp-button-primary-background: var(--cp-color-primary, #c9a24f);
	--cp-button-primary-background-hover: color-mix(in srgb, var(--cp-color-primary, #c9a24f) 85%, #000);
	--cp-button-primary-text: var(--cp-color-primary-contrast, #fff);
	--cp-button-secondary-border: var(--cp-color-primary, #c9a24f);
	--cp-button-secondary-text: var(--cp-color-primary, #c9a24f);
	--cp-button-font-weight: var(--cp-font-weight-heading, 700);
	--cp-layout-section-gap: clamp(24px, 4vw, 56px);
	--cp-layout-section-padding: clamp(32px, 5vw, 64px);
	--cp-layout-copy-width: 768px;
	--cp-layout-story-gap: clamp(32px, 7vw, 88px);
	box-sizing: border-box;
	color: var(--cp-color-text, #273240) !important;
	font-family: var(--cp-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
	font-size: 16px;
	font-weight: var(--cp-font-weight-normal, 400);
	line-height: 1.5;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	isolation: isolate;
	overflow: visible;
	position: relative;
	left: auto !important;
	width: 100%;
	max-width: var(--cp-layout-max-width) !important;
	margin-inline: auto !important;
	margin-block: clamp(48px, 8vw, 136px) clamp(60px, 6vw, 100px) !important;
	transform: none !important;
}

.cp-product-layout,
.cp-product-layout *,
.cp-product-layout *::before,
.cp-product-layout *::after {
	box-sizing: border-box;
}

/* Block themes place the product inside a constrained content column. Center
 * the stable CyberPiotr shell on that column's axis even when it is wider than
 * the column; auto margins become zero for an over-constrained block. */
.cp-product-layout__title {
	margin-bottom: clamp(20px, 2vw, 28px);
}

.cp-product-layout__title .cp-product-title {
	margin: 0;
}

.cp-product-layout__title .cp-product-title__heading {
	margin-bottom: .5em;
}

.cp-product-layout__hero {
	display: grid !important;
	align-items: stretch !important;
	gap: 10px !important;
	grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr) !important;
}

.cp-product-layout__gallery,
.cp-product-layout__buy,
.cp-product-layout__variants,
.cp-product-layout__content,
.cp-product-layout__native-details {
	min-width: 0;
}

.cp-product-layout__gallery,
.cp-product-layout__buy {
	border: var(--cp-component-border-width, 1px) var(--cp-component-border-style, solid) var(--cp-layout-border-color) !important;
	border-radius: var(--cp-layout-card-radius);
	background: var(--cp-layout-surface) !important;
	box-shadow: var(--cp-layout-card-shadow);
}

.cp-product-layout__gallery {
	overflow: visible !important;
	padding: 20px;
}

.cp-product-layout__buy {
	display: flex !important;
	min-width: 0;
	padding: 20px;
}

.cp-product-layout__buy .cyberpiotr-buy-panel {
	min-width: 0;
}

.woocommerce .cp-product-layout__gallery .woocommerce-product-gallery {
	position: relative;
	float: none !important;
	margin: 0 !important;
	max-width: 100%;
	opacity: 1 !important;
	width: 100% !important;
}

/*
 * WooCommerce initialises FlexSlider on DOM ready. Until then its server-side
 * wrapper contains every full-size image one below another. Keep the first
 * image as a stable, square no-JS shell; once FlexSlider creates its
 * .flex-viewport wrapper these direct-child rules stop applying naturally.
 */
.cp-product-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.cp-product-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	grid-area: 1 / 1;
	min-width: 0;
	visibility: hidden;
}

.cp-product-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	visibility: visible;
}

.cp-product-layout__gallery .woocommerce-product-gallery__trigger {
	display: none !important;
}

.woocommerce .cp-product-layout__gallery .wp-block-woocommerce-product-image-gallery {
	max-width: none !important;
	width: 100% !important;
}

.cp-product-gallery .woocommerce-product-gallery__image,
.cp-product-gallery .wp-block-woocommerce-product-image-gallery > * {
	margin: 0;
}

.cp-product-layout__gallery :where(.woocommerce-product-gallery__image, .wp-block-woocommerce-product-image-gallery) img {
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.cp-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-product-gallery .flex-control-thumbs > li,
.cp-product-gallery .flex-control-thumbs > li::marker {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)) !important;
	gap: 10px;
	margin-top: 10px;
	max-width: 100% !important;
	width: 100% !important;
	overflow: visible !important;
}

.cp-product-gallery .flex-control-thumbs > li {
	display: block;
	float: none !important;
	min-width: 0 !important;
	width: auto !important;
}

.cp-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100% !important;
	height: auto;
	margin: 0;
	border: 0;
	padding: 0;
	box-shadow: none;
	border-radius: 4px;
	aspect-ratio: 1;
	object-fit: cover;
}

.cp-product-layout__gallery :where(
	.onsale,
	.wc-block-components-product-sale-badge,
	.wc-block-grid__product-onsale
) {
	display: none !important;
}

.cp-product-layout__variants,
.cp-product-layout__native-details,
.cp-product-layout__content {
	margin-top: var(--cp-layout-section-gap);
}

.cp-product-layout__native-details {
	font-size: .9em;
	opacity: .78;
}

.cp-product-layout__content,
.cp-product-layout .cp-product-content {
	display: grid;
	gap: var(--cp-layout-section-gap);
}

.cp-product-layout .cp-product-content > section {
	margin: 0;
	padding: var(--cp-layout-section-padding);
	border: var(--cp-component-border-width, 1px) var(--cp-component-border-style, solid) var(--cp-layout-border-color) !important;
	border-radius: var(--cp-layout-card-radius);
	background: var(--cp-layout-surface) !important;
	box-shadow: var(--cp-layout-card-shadow);
}

.cp-product-layout :where(
	.cp-product-intro__heading,
	.cp-product-story__heading,
	.cp-product-specifications__heading,
	.cp-product-video__heading,
	.cp-product-cross-sell__heading
) {
	font-size: clamp(24px, 2.7vw, 36px);
	font-weight: var(--cp-font-weight-heading, 700) !important;
	line-height: 1.15;
	margin-bottom: clamp(24px, 3vw, 40px);
	text-align: center;
}

.cp-product-layout .cp-product-intro {
	padding-block: clamp(48px, 7vw, 80px);
	text-align: center;
}

.cp-product-layout .cp-product-intro__lead,
.cp-product-layout .cp-product-intro__note {
	max-width: var(--cp-layout-copy-width);
	margin-inline: auto;
}

.cp-product-layout .cp-product-intro__lead {
	line-height: 1.7;
}

.cp-product-layout .cp-product-intro__note {
	margin-top: 20px;
	padding: 0;
	border: 0;
	line-height: 1.65;
}

.cp-product-layout .cp-product-story {
	padding: clamp(40px, 6vw, 80px);
}

.cp-product-layout .cp-product-story__heading {
	margin-bottom: clamp(44px, 6vw, 80px);
}

.cp-product-layout .cp-product-story__rows {
	display: grid;
	gap: var(--cp-layout-story-gap);
}

.cp-product-layout .cp-product-story__row {
	gap: var(--cp-layout-story-gap);
	margin: 0;
}

.cp-product-layout .cp-product-story__copy {
	line-height: 1.65;
}

.cp-product-layout .cp-product-story__copy h3 {
	font-family: inherit !important;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: var(--cp-font-weight-heading, 700) !important;
	line-height: 1.2;
	margin: 0 0 .75em;
}

.cp-product-layout .cp-product-story__media {
	min-width: 0;
}

.cp-product-layout .cp-product-story__media img {
	aspect-ratio: 1;
	border-radius: var(--cp-layout-card-radius);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .055);
	object-fit: cover;
}

.cp-product-layout .cp-product-specifications__list {
	max-width: 896px;
	margin-inline: auto;
}

.cp-product-layout .cp-product-specifications__item {
	gap: clamp(16px, 4vw, 48px);
	padding: 16px 0;
	border-color: rgba(0, 0, 0, .1);
	border-color: color-mix(in srgb, currentColor 12%, transparent);
}

.cp-product-layout .cp-product-specifications__item:last-child {
	border-block-end: 0;
}

.cp-product-layout .cp-product-video__grid {
	gap: 16px;
	grid-template-columns: minmax(0, 1fr);
}

.cp-product-layout .cp-product-video__item {
	overflow: hidden;
	border-radius: calc(var(--cp-layout-card-radius) / 2);
	background: #10171e;
}

.cp-product-layout .cp-product-video__item :where(iframe, video) {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.cp-product-layout .cp-product-video--shorts .cp-product-video__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(12px, 2vw, 20px);
}

.cp-product-layout .cp-product-video--shorts .cp-product-video__item {
	flex: 0 1 min(22%, 192px);
	width: min(22%, 192px);
}

.cp-product-layout .cp-product-video--shorts .cp-product-video__item :where(iframe, video) {
	aspect-ratio: 9 / 16;
	object-fit: cover;
}

.cp-product-layout .cp-product-cross-sell__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 20px);
}

.cp-product-layout .cp-product-cross-sell__card {
	align-content: start;
	gap: 8px;
	min-width: 0;
	padding: 12px;
	border: var(--cp-component-border-width, 1px) var(--cp-component-border-style, solid) var(--cp-layout-border-color) !important;
	border-radius: calc(var(--cp-layout-card-radius) / 2);
}

.cp-product-layout .cp-product-cross-sell__image {
	overflow: hidden;
	border-radius: calc(var(--cp-layout-card-radius) / 2);
}

.cp-product-layout .cp-product-cross-sell__image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.cp-product-layout .cp-product-cross-sell__name {
	font-size: .9em;
	line-height: 1.3;
}

.cp-product-layout .cp-product-cross-sell__price {
	font-size: .85em;
}

.cp-product-layout + .summary {
	display: none !important;
}

body.single-product .cp-product-layout :where(h1, h2, h3, h4, p, dl, dt, dd, form, table, figure) {
	float: none !important;
	max-width: none;
}

body.single-product .cp-product-layout :where(h1, h2, h3, h4) {
	color: var(--cp-color-text, #273240) !important;
	font-family: var(--cp-font-family, inherit) !important;
}

body.single-product .cp-product-layout :where(button, input, select, textarea) {
	font-family: var(--cp-font-family, inherit) !important;
}

body.single-product .cp-product-layout :where(input, select, textarea) {
	border-radius: var(--cp-radius-input, 8px) !important;
}

body.single-product .cp-product-layout :where(.button, button, input[type="button"], input[type="submit"]) {
	border-radius: var(--cp-radius-button, 8px) !important;
}

body.single-product .cp-product-layout__gallery :where([class*="thumbnail"], [class*="thumbnails"]) {
	max-width: 100% !important;
	min-width: 0 !important;
	overflow: visible !important;
}

@media (min-width: 768px) {
	.cp-product-story__row--has-media {
		align-items: center;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.cp-product-story__row--image-left .cp-product-story__copy {
		order: 2;
	}

	.cp-product-story__row--image-left .cp-product-story__media {
		order: 1;
	}
}

@media (max-width: 767px) {
	.cp-product-layout {
		--cp-layout-section-gap: 20px;
		--cp-layout-section-padding: 20px;
		width: 100%;
		max-width: var(--cp-layout-max-width) !important;
		margin-top: 40px;
		margin-bottom: 60px;
	}

	.cp-product-layout__title,
	.cp-product-layout__title .cp-product-title,
	.cp-product-layout__title .cp-product-title__pills {
		text-align: center;
		justify-content: center;
	}

	.cp-product-layout__hero {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.cp-product-layout__gallery {
		padding: 16px;
	}

	.cp-product-layout__buy {
		padding: 20px;
	}

	.cp-product-layout__gallery .flex-control-thumbs {
		grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
	}

	.cp-product-layout .cp-product-story {
		padding: 20px;
	}

	.cp-product-layout .cp-product-story__heading {
		margin-bottom: 32px;
	}

	.cp-product-layout .cp-product-story__rows {
		gap: 40px;
	}

	.cp-product-layout .cp-product-story__row {
		gap: 20px;
		grid-template-columns: minmax(0, 1fr);
	}

	.cp-product-layout .cp-product-story__copy,
	.cp-product-layout .cp-product-specifications__list,
	.cp-product-layout .cp-product-specifications__item,
	.cp-product-layout .cp-product-cross-sell__card,
	.cp-product-layout .cp-product-cross-sell__name,
	.cp-product-layout .cp-product-cross-sell__price,
	.cp-product-layout__native-details {
		text-align: center;
	}

	.cp-product-layout .cp-product-story__media {
		margin-inline: auto;
	}

	.cp-product-layout .cp-product-specifications__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		justify-items: center;
	}

	.cp-product-layout .cp-product-cross-sell__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cp-product-layout .cp-product-cross-sell__card {
		align-items: start;
		justify-items: center;
		padding: 8px;
	}

	.cp-product-layout .cp-product-cross-sell__image,
	.cp-product-layout .cp-product-cross-sell__name,
	.cp-product-layout .cp-product-cross-sell__price {
		width: 100%;
	}

	.cp-product-layout .cp-product-cross-sell__price :where(.price, del, ins) {
		text-align: center;
	}

	.cp-product-layout .cp-product-video--shorts .cp-product-video__item {
		flex-basis: min(100%, 240px);
		width: min(100%, 240px);
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.cp-product-layout .cp-product-video--shorts .cp-product-video__item {
		flex-basis: min(30%, 176px);
		width: min(30%, 176px);
	}
}
.cp-product-intro .cp-text-size-small,
.cp-product-story .cp-text-size-small { font-size: .85em; }
.cp-product-intro .cp-text-size-large,
.cp-product-story .cp-text-size-large { font-size: 1.2em; }
.cp-product-intro .cp-text-size-x-large,
.cp-product-story .cp-text-size-x-large { font-size: 1.45em; }
