.mamyto-po-frontend {
	--mamyto-po-accent: var(--ast-global-color-0, #222);
	--mamyto-po-border: #e4e7ec;
	--mamyto-po-muted: #69707d;
	--mamyto-po-soft: #f7f8fa;
	margin: 24px 0;
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--mamyto-po-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(17, 24, 39, .06);
}

.mamyto-po-frontend *,
.mamyto-po-frontend *::before,
.mamyto-po-frontend *::after {
	box-sizing: border-box;
}

.mamyto-po-frontend__heading {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 26px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--mamyto-po-border);
}

.mamyto-po-frontend__heading span {
	font-size: clamp(20px, 2.3vw, 26px);
	font-weight: 800;
	line-height: 1.2;
}

.mamyto-po-frontend__heading small,
.mamyto-po-field-head small {
	color: var(--mamyto-po-muted);
	font-size: 13px;
	line-height: 1.5;
}

.mamyto-po-field {
	margin-bottom: 28px;
}

.mamyto-po-field.has-error {
	padding: 12px;
	border: 1px solid #d63638;
	border-radius: 12px;
	background: #fff7f7;
}

.mamyto-po-field-error {
	display: block;
	margin-top: 8px;
	color: #b42318;
	font-size: 12px;
	font-weight: 700;
}

.mamyto-po-field-head {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 11px;
}

.mamyto-po-field-label {
	display: block;
	margin: 0;
	font-size: 15px;
	font-weight: 800;
}

.mamyto-po-req-star {
	color: #d63638;
}

.mamyto-po-optional {
	color: var(--mamyto-po-muted);
	font-size: 12px;
	font-weight: 500;
}

.mamyto-po-frontend textarea.mamyto-po-input,
.mamyto-po-frontend select.mamyto-po-input {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 11px;
	background: #fff;
	box-shadow: none;
}

.mamyto-po-frontend textarea.mamyto-po-input {
	min-height: 76px;
	padding: 10px 12px;
	resize: vertical;
}

.mamyto-po-frontend textarea.mamyto-po-input:focus,
.mamyto-po-frontend select.mamyto-po-input:focus {
	border-color: #929aa7;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(31, 41, 55, .08);
}

.mamyto-po-counter {
	margin-top: 5px;
	color: var(--mamyto-po-muted);
	font-size: 12px;
	text-align: right;
}

.mamyto-po-file-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px dashed #b8bec8;
	border-radius: 12px;
	background: var(--mamyto-po-soft);
}

.mamyto-po-frontend input[type="file"].mamyto-po-file-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 5px;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 10px;
	background: #fff;
	color: #30343b;
	font-size: 13px;
}

.mamyto-po-frontend input[type="file"].mamyto-po-file-input::file-selector-button {
	min-height: 36px;
	margin-right: 12px;
	padding: 7px 14px;
	border: 0;
	border-radius: 7px;
	background: var(--mamyto-po-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.mamyto-po-file-box > small {
	color: var(--mamyto-po-muted);
	font-size: 12px;
}

.mamyto-po-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.mamyto-po-radio-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 43px;
	margin: 0;
	padding: 9px 15px;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mamyto-po-radio-pill:hover {
	border-color: #aab0ba;
	transform: translateY(-1px);
}

.mamyto-po-radio-pill.is-selected,
.mamyto-po-radio-pill:has(input:checked) {
	border-color: var(--mamyto-po-accent);
	background: var(--mamyto-po-soft);
}

.mamyto-po-radio-pill input {
	margin: 0;
}

.mamyto-po-radio-pill small {
	color: var(--mamyto-po-muted);
	font-size: 11px;
}

.mamyto-po-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 12px;
}

.mamyto-po-swatch {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.mamyto-po-swatch > input,
.mamyto-po-font > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mamyto-po-swatch-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 13px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mamyto-po-swatch:hover .mamyto-po-swatch-card {
	border-color: #aeb4bd;
	box-shadow: 0 10px 24px rgba(17, 24, 39, .1);
	transform: translateY(-2px);
}

.mamyto-po-swatch.is-selected .mamyto-po-swatch-card,
.mamyto-po-swatch:has(input:checked) .mamyto-po-swatch-card {
	border-color: var(--mamyto-po-accent);
	box-shadow: 0 0 0 2px var(--mamyto-po-accent);
}

.mamyto-po-swatch-visual {
	display: grid;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--mamyto-po-soft);
	place-items: center;
}

.mamyto-po-swatch.is-image .mamyto-po-swatch-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .28s ease;
}

.mamyto-po-swatch.is-image:hover .mamyto-po-swatch-visual img {
	transform: scale(1.08);
}

.mamyto-po-swatch.is-color .mamyto-po-swatch-visual {
	height: auto;
	aspect-ratio: 1 / 1;
}

.mamyto-po-swatch.is-color .mamyto-po-swatch-visual i {
	display: block;
	width: 42px;
	height: 42px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--mamyto-swatch-color);
	box-shadow: 0 0 0 1px rgba(17, 24, 39, .15);
}

.mamyto-po-swatch-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
}

.mamyto-po-swatch-copy strong {
	font-size: 13px;
	line-height: 1.3;
}

.mamyto-po-swatch-copy small,
.mamyto-po-font-card small {
	color: var(--mamyto-po-muted);
	font-size: 11px;
}

.mamyto-po-check {
	position: absolute;
	top: 7px;
	right: 7px;
	display: grid;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mamyto-po-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	opacity: 0;
	place-items: center;
	transform: scale(.7);
	transition: .18s ease;
}

.is-selected .mamyto-po-check,
label:has(input:checked) .mamyto-po-check {
	opacity: 1;
	transform: scale(1);
}

.mamyto-po-fonts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
	justify-content: center;
	gap: 10px;
}

.mamyto-po-font {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.mamyto-po-font-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 88px;
	padding: 12px;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 12px;
	background: #fff;
	text-align: center;
	transition: .18s ease;
}

.mamyto-po-font:hover .mamyto-po-font-card {
	border-color: #aeb4bd;
	transform: translateY(-1px);
}

.mamyto-po-font.is-selected .mamyto-po-font-card,
.mamyto-po-font:has(input:checked) .mamyto-po-font-card {
	border-color: var(--mamyto-po-accent);
	box-shadow: 0 0 0 2px var(--mamyto-po-accent);
}

.mamyto-po-font-sample {
	display: block;
	width: 100%;
	margin: 0;
	font-size: 27px;
	line-height: 1.2;
	overflow: hidden;
	text-align: center;
	white-space: nowrap;
}

.mamyto-po-font-card strong,
.mamyto-po-font-card small {
	text-align: center;
}

.mamyto-po-live-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin-top: 8px;
	padding-top: 9px;
	border-top: 1px solid #e4e7ec;
}

.mamyto-po-live-price small {
	color: var(--mamyto-po-muted);
	font-size: 13px;
	font-weight: 500;
}

.mamyto-po-live-price strong {
	color: inherit;
	font-size: 20px;
	font-weight: 900;
	white-space: nowrap;
}

.summary .price:has(.mamyto-po-live-price) {
	display: flex;
	flex-wrap: wrap;
}

.mamyto-po-fallback-price {
	margin: 12px 0 20px;
}

@media (max-width: 600px) {
	.mamyto-po-frontend {
		margin: 18px 0;
		padding: 18px 14px;
		border-radius: 14px;
	}

	.mamyto-po-swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mamyto-po-fonts {
		grid-template-columns: minmax(0, 220px);
		justify-content: center;
	}
}


/* Tak/Nie z opcjonalną personalizacją. */
.mamyto-po-yesno-layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.mamyto-po-yesno-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: min(100%, 280px);
	gap: 8px;
}

.mamyto-po-yesno-pill {
	justify-content: center;
	min-width: 0;
	padding-inline: 10px;
	gap: 6px;
}

.mamyto-po-yesno-pill span,
.mamyto-po-yesno-pill small {
	white-space: nowrap;
}

.mamyto-po-conditional {
	display: flex;
	flex-direction: column;
	gap: 7px;
	max-height: 0;
	margin: 0;
	padding: 0 14px;
	overflow: hidden;
	visibility: hidden;
	border: 0 solid #e8ded3;
	border-radius: 12px;
	background: #f9f6f2;
	opacity: 0;
	transform: translateY(-8px);
	transition:
		max-height .3s ease,
		padding .3s ease,
		border-width .3s ease,
		opacity .22s ease,
		transform .3s ease,
		visibility 0s linear .3s;
}

.mamyto-po-conditional[hidden] {
	display: flex !important;
}

.mamyto-po-conditional.is-open {
	max-height: 280px;
	padding: 14px;
	visibility: visible;
	border-width: 1px;
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
}

.mamyto-po-conditional > label {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
}

.mamyto-po-frontend textarea.mamyto-po-conditional-input {
	min-height: 64px;
	background: #fff;
}

@media (max-width: 600px) {
	.mamyto-po-yesno-group {
		width: 100%;
	}
}
/* Styl sklepu MamyTo 2.4.2 */
.mamyto-po-frontend {
	--mamyto-po-accent: #b89a5e;
	--mamyto-po-border: #e8e0d4;
	--mamyto-po-muted: #77716b;
	--mamyto-po-soft: #fffaf4;
	padding: clamp(18px, 2.6vw, 24px);
	border-color: var(--mamyto-po-border);
	border-radius: 10px;
	background: #f9f6f2;
	box-shadow: none;
}

.mamyto-po-frontend__heading {
	margin-bottom: 22px;
	padding-bottom: 15px;
	border-bottom-color: rgba(184, 154, 94, .32);
}

.mamyto-po-frontend__heading span,
.mamyto-po-field-label {
	color: #1a1614;
	font-family: Cinzel, serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.mamyto-po-frontend__heading small,
.mamyto-po-field-head small {
	color: #77716b;
	font-family: Inter, sans-serif;
}

.mamyto-po-frontend textarea.mamyto-po-input,
.mamyto-po-frontend select.mamyto-po-input,
.mamyto-po-frontend input[type="file"].mamyto-po-file-input {
	border-color: var(--mamyto-po-border);
	background: #fff;
}

.mamyto-po-frontend textarea.mamyto-po-input:focus,
.mamyto-po-frontend select.mamyto-po-input:focus,
.mamyto-po-frontend input[type="file"].mamyto-po-file-input:focus {
	border-color: var(--mamyto-po-accent);
	box-shadow: 0 0 0 3px rgba(184, 154, 94, .15);
}

.mamyto-po-radio-pill {
	border-color: var(--mamyto-po-accent);
	background: #fff;
	color: var(--mamyto-po-accent);
	font-family: Cinzel, serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.mamyto-po-radio-pill:hover {
	border-color: var(--mamyto-po-accent);
	background: #fffaf4;
	color: #9f7f43;
}

.mamyto-po-radio-pill.is-selected,
.mamyto-po-radio-pill:has(input:checked) {
	border-color: var(--mamyto-po-accent);
	background: var(--mamyto-po-accent);
	color: #fff;
	box-shadow: none;
}

.mamyto-po-radio-pill input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.mamyto-po-radio-pill small {
	color: inherit;
}

.mamyto-po-file-box {
	border-color: rgba(184, 154, 94, .55);
	background: rgba(255, 255, 255, .62);
}

.mamyto-po-frontend input[type="file"].mamyto-po-file-input::file-selector-button {
	border: 1px solid var(--mamyto-po-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--mamyto-po-accent);
	font-family: Cinzel, serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.mamyto-po-swatch-card,
.mamyto-po-font-card {
	border-color: rgba(184, 154, 94, .5);
}

.mamyto-po-swatch:hover .mamyto-po-swatch-card,
.mamyto-po-font:hover .mamyto-po-font-card {
	border-color: var(--mamyto-po-accent);
}

.mamyto-po-swatch.is-selected .mamyto-po-swatch-card,
.mamyto-po-swatch:has(input:checked) .mamyto-po-swatch-card,
.mamyto-po-font.is-selected .mamyto-po-font-card,
.mamyto-po-font:has(input:checked) .mamyto-po-font-card {
	border-color: var(--mamyto-po-accent);
	box-shadow: 0 0 0 2px rgba(184, 154, 94, .32);
}

.mamyto-po-conditional {
	border-color: var(--mamyto-po-border);
	background: rgba(255, 255, 255, .7);
}

@media (max-width: 600px) {
	.mamyto-po-frontend {
		border-radius: 10px;
	}
}
/* Dopracowanie typografii i odstępów 2.4.4 */
body.single-product.woocommerce div.product .summary .product_title,
body.single-product.woocommerce .product_title {
	font-family: Cinzel, serif !important;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .4px;
}

.mamyto-po-frontend {
	padding-top: 18px;
	padding-bottom: 18px;
}

.mamyto-po-frontend__heading {
	margin-bottom: 18px;
	padding-bottom: 12px;
}

.mamyto-po-frontend .mamyto-po-field {
	margin-bottom: 20px;
}

.mamyto-po-frontend .mamyto-po-field:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.mamyto-po-frontend {
		padding-top: 16px;
		padding-bottom: 16px;
	}
}
/* Rozbudowany konfigurator MamyTo 3.0 */
.mamyto-po-frontend input[type="date"].mamyto-po-input,
.mamyto-po-frontend input[type="number"].mamyto-po-input {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--mamyto-po-border);
	border-radius: 11px;
	background: #fff;
	box-shadow: none;
}

.mamyto-po-frontend input[type="date"].mamyto-po-input:focus,
.mamyto-po-frontend input[type="number"].mamyto-po-input:focus {
	border-color: var(--mamyto-po-accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(184, 154, 94, .15);
}

.mamyto-po-field.is-condition-hidden {
	display: none !important;
}

.mamyto-po-section-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-top: 1px solid rgba(184, 154, 94, .35);
	border-bottom: 1px solid rgba(184, 154, 94, .35);
}

.mamyto-po-section-heading strong {
	color: #1a1614;
	font-family: Cinzel, serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.mamyto-po-section-heading small {
	color: var(--mamyto-po-muted);
	font-size: 12px;
}

/* Kwadratowe warianty obrazkowe MamyTo 3.0.5 */
.mamyto-po-swatch.is-image .mamyto-po-swatch-card {
	height: auto;
	min-height: 0;
	aspect-ratio: 1 / 1;
}

.mamyto-po-swatch.is-image .mamyto-po-swatch-visual {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.mamyto-po-swatch.is-image .mamyto-po-swatch-copy {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	min-height: 58px;
	align-items: center;
	justify-content: flex-end;
	padding: 28px 9px 9px;
	text-align: center;
	background: linear-gradient(to bottom, transparent 0, rgba(255, 255, 255, .88) 42%, #fff 100%);
	pointer-events: none;
}

.mamyto-po-swatch.is-image .mamyto-po-swatch-copy strong,
.mamyto-po-swatch.is-image .mamyto-po-swatch-copy small {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}

.mamyto-po-swatch.is-image .mamyto-po-check {
	z-index: 3;
}

@media (max-width: 600px) {
	.mamyto-po-swatch.is-image .mamyto-po-swatch-copy {
		min-height: 54px;
		padding: 24px 8px 8px;
	}
}
