/*
Theme Name: Maui
Description: Lekki motyw blokowy sklepu Maui Skin Clinic (WooCommerce, ebooki).
Version: 1.7.7
Requires at least: 6.6
Requires PHP: 8.1
Author: Maui Skin Clinic
Text Domain: maui
License: GPL-2.0-or-later
*/

/* ---------- Nagłówek ---------- */

.maui-header {
	position: relative;
	z-index: 100;
	box-shadow: 0 2px 4px rgb(0 0 0 / .075);
}
.maui-header.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 .5rem 1rem rgb(0 0 0 / .15);
	animation: maui-header-show .25s;
}
.admin-bar .maui-header.is-stuck {
	top: var(--wp-admin--admin-bar--height, 0);
}
@keyframes maui-header-show {
	from { transform: translateY(-100%); }
}

.maui-header .wp-block-site-logo img {
	transition: width .2s ease;
}
.maui-header.is-stuck .wp-block-site-logo img {
	width: 64px;
	height: auto;
}

/*
 * Wiersz z menu widać u góry strony. Po przewinięciu (komputer) chowa się, a przycisk ☰ rozwija go pod nagłówkiem.
 * Na telefonie menu otwiera się na całym ekranie (przycisk bloku Nawigacja).
 */
.maui-header__burger,
.maui-header__toggle {
	display: none !important;
}
.maui-header.is-stuck .maui-header__menu {
	display: none;
}
.maui-header__menu {
	padding: .7rem 0 1rem;
}
.maui-header.is-stuck.is-menu-open .maui-header__menu {
	display: flex;
	border-top: 1px solid var(--wp--preset--color--border);
	padding: 1rem 0 1.15rem;
	animation: maui-menu-show .2s ease;
}
@keyframes maui-menu-show {
	from { opacity: 0; transform: translateY(-6px); }
}
@media (min-width: 782px) {
	.maui-header.is-stuck .maui-header__toggle {
		display: flex !important;
	}
}
.maui-header__toggle {
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}
.maui-header__burger .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--primary);
}
.maui-header__burger .wp-block-navigation__responsive-container-open svg {
	width: 30px;
	height: 30px;
}
/* Menu na telefonie: pełny ekran, pozycje wyśrodkowane. */
.maui-header__burger .wp-block-navigation__responsive-container.is-menu-open {
	font-size: var(--wp--preset--font-size--large);
}
.maui-header__burger .is-menu-open .wp-block-navigation__responsive-close,
.maui-header__burger .is-menu-open .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.maui-header__burger .is-menu-open .wp-block-navigation__responsive-container-content {
	flex: 1;
	justify-content: center !important;
	align-items: center !important;
	text-align: center;
	padding-top: 0 !important;
}
.maui-header__burger .is-menu-open .wp-block-navigation-item {
	font-size: 1.35rem;
}
.maui-header__burger .is-menu-open .wp-block-navigation__container {
	justify-content: center !important;
	align-items: center !important;
	gap: 1.75rem !important;
}

/* Wyszukiwarka jak w starym sklepie: kremowe tło, beżowa ramka, okrągły przycisk. */
.maui-header .wp-block-search {
	max-width: 560px;
}
.maui-header .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--cream);
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 50px;
	padding: 4px;
}
.maui-header .wp-block-search__input {
	background: transparent;
	border: 0;
	padding-inline: 1rem;
	font-size: var(--wp--preset--font-size--medium);
}
.maui-header .wp-block-search__button {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	display: grid;
	place-items: center;
}

/* Koszyk: ikona w kremowym kółku, nad kwotą mały napis „Koszyk” (jak w starym sklepie). */
.maui-header .wc-block-mini-cart__button {
	gap: .6rem;
	padding: 0;
	color: var(--wp--preset--color--contrast);
}
.maui-header .wc-block-mini-cart__quantity-badge {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--accent);
}
.maui-header .wc-block-mini-cart__icon {
	width: 26px;
	height: 26px;
}
.maui-header .wc-block-mini-cart__badge {
	top: -2px;
	right: -4px;
	left: auto;
	transform: none;
}
.maui-header .wc-block-mini-cart__amount {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25;
}
.maui-header .wc-block-mini-cart__amount::before {
	content: "Koszyk";
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

/* Konto: większa złota ikona. */
.maui-header .wp-block-woocommerce-customer-account a {
	gap: .5rem;
	color: var(--wp--preset--color--contrast);
}
.maui-header .wp-block-woocommerce-customer-account svg {
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--accent);
}

@media (max-width: 781px) {
	.maui-header__top {
		flex-wrap: wrap !important;
	}
	.maui-header__top .wp-block-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}
	.maui-header__menu {
		display: none !important;
	}
	.maui-header__burger {
		display: flex !important;
	}
	/* Na telefonie: logo i ikony w jednym rzędzie, wyszukiwarka pod spodem. */
	.maui-header .wp-block-site-logo img {
		width: 72px;
	}
	.maui-header .wp-block-woocommerce-customer-account .label,
	.maui-header .wc-block-mini-cart__amount {
		display: none;
	}
	.maui-header__actions {
		gap: .25rem !important;
	}
}

/* ---------- Karuzela banerów ---------- */

.maui-carousel {
	position: relative;
	display: grid;
}
.maui-carousel > * {
	grid-area: 1 / 1;
	margin: 0 !important;
}
.maui-carousel:not(.is-ready) > :not(:first-child) {
	display: none;
}
.maui-carousel.is-ready > .maui-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}
.maui-carousel.is-ready > .maui-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.maui-carousel .is-active .maui-slide__text {
	animation: maui-fade-up .9s ease both;
}
@keyframes maui-fade-up {
	from { opacity: 0; transform: translateY(16px); }
}

.maui-carousel__controls {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: .75rem;
	translate: -50% 0;
}
.maui-carousel__arrow {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / .9);
	color: var(--wp--preset--color--primary);
	box-shadow: 0 2px 8px rgb(0 0 0 / .1);
	cursor: pointer;
}
.maui-carousel__arrow::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: auto;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(135deg);
	translate: 2px 0;
}
.maui-carousel__arrow.is-next::before {
	transform: rotate(-45deg);
	translate: -2px 0;
}

.maui-carousel__dots {
	display: flex;
	gap: .5rem;
}
.maui-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgb(1 90 88 / .25);
	cursor: pointer;
	transition: width .3s;
}
.maui-carousel__dot[aria-current="true"] {
	width: 28px;
	background: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
	/* Na wąskim ekranie tekst leży na zdjęciu: jasna poświata dla czytelności. */
	.maui-slide .wp-block-cover__background {
		background: linear-gradient(90deg, rgb(255 255 255 / .85), rgb(255 255 255 / .4)) !important;
		opacity: 1 !important;
	}
	.maui-slide--right .wp-block-cover__background {
		background: linear-gradient(270deg, rgb(255 255 255 / .85), rgb(255 255 255 / .4)) !important;
	}
}

/* ---------- Tytuł strony i okruszki ---------- */

.maui-page-title .wp-block-post-title,
.maui-page-title .wp-block-query-title {
	font-size: var(--wp--preset--font-size--xx-large);
}
.maui-page-title .woocommerce-breadcrumb {
	margin: 0;
}
.woocommerce-breadcrumb a {
	text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--primary);
}

/* Pola wyboru (sortowanie itp.) w kolorach motywu. */
.wc-block-catalog-sorting select,
.woocommerce-ordering select {
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 50px;
	background-color: var(--wp--preset--color--cream);
	padding: .4rem 2rem .4rem 1rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
}

/* ---------- Nagłówek sekcji ze złotymi liniami ---------- */

.is-style-maui-lines {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.is-style-maui-lines::before,
.is-style-maui-lines::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

/* ---------- Produkty ---------- */

.wc-block-product {
	background: var(--wp--preset--color--base);
	border-radius: 6px;
	padding: 1rem;
	transition: box-shadow .2s ease;
}
.wc-block-product:hover {
	box-shadow: 0 .5rem 1.25rem rgb(0 0 0 / .08);
}
.wc-block-product .wp-block-post-title {
	font-weight: 500;
	line-height: 1.45;
}
.wc-block-product .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
}
.wc-block-product .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

.wc-block-product .wc-block-components-product-button {
	align-items: flex-start;
	justify-content: flex-start;
}

.maui-product-summary .wp-block-post-title {
	margin-bottom: .5rem;
}
.wp-block-woocommerce-product-details .wc-tabs {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.wp-block-woocommerce-product-details .wc-tabs li.active a {
	color: var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/* ---------- Stopka ---------- */

.maui-footer a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}
.maui-footer a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- Odstępy między nagłówkiem, treścią i stopką ---------- */

/* Sekcje same mają wewnętrzne odstępy, więc bez domyślnej przerwy między częściami szablonu. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Ikony (maski SVG, kolor z currentColor) ---------- */

.maui-contact-list {
	list-style: none;
	padding-left: 0;
}
.maui-contact-list li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: .9rem;
	line-height: 1.6;
}
.maui-contact-list li::before,
.maui-faq summary::before,
.woocommerce-breadcrumb > a:first-child::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.1em;
	height: 1.1em;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--maui-icon) center / contain no-repeat;
	mask: var(--maui-icon) center / contain no-repeat;
}
.maui-contact-list .is-phone {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}
.maui-contact-list .is-mail {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='4' width='20' height='16' rx='2'/><path d='m22 7-10 6L2 7'/></svg>");
}
.maui-contact-list .is-pin {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>");
}
.maui-contact-list a {
	color: inherit;
	text-decoration: none;
}
.maui-contact-list a:hover {
	color: var(--wp--preset--color--primary);
}

/* Okruszki: domek zamiast „Strona główna” (tekst zostaje dla czytników ekranu). */
.woocommerce-breadcrumb > a:first-child {
	position: relative;
	display: inline-block;
	width: 1em;
	height: 1em;
	white-space: nowrap;
	overflow: hidden;
	color: transparent;
	vertical-align: -.1em;
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/></svg>");
}
.woocommerce-breadcrumb > a:first-child::before {
	top: 0;
	width: 1em;
	height: 1em;
	background: var(--wp--preset--color--muted);
}

/* ---------- Pasek tytułu ---------- */

.maui-page-title {
	padding-top: var(--wp--preset--spacing--50) !important;
	padding-bottom: var(--wp--preset--spacing--50) !important;
}
.maui-page-title .wp-block-post-title,
.maui-page-title .wp-block-query-title {
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 400;
}

/* ---------- Karta (kontakt, FAQ) ---------- */

.maui-card {
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
}

/* ---------- FAQ: pytania z ikoną dokumentu i strzałką ---------- */

.maui-faq .wp-block-details {
	border-bottom: 1px solid #dee2e6;
	padding: 0;
	margin: 0;
}
.maui-faq summary {
	position: relative;
	list-style: none;
	padding: 1rem 2.5rem 1rem 1.75rem;
	cursor: pointer;
	font-size: 1rem;
}
.maui-faq summary::-webkit-details-marker {
	display: none;
}
.maui-faq summary::before {
	top: 1.2rem;
	background: var(--wp--preset--color--contrast);
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/></svg>");
}
.maui-faq summary::after {
	content: "";
	position: absolute;
	right: .5rem;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border: solid var(--wp--preset--color--contrast);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
	transition: transform .2s;
}
.maui-faq details[open] > summary::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}
.maui-faq details > :not(summary) {
	padding: 0 0 1rem 1.75rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Stopka ---------- */

.maui-footer {
	font-size: var(--wp--preset--font-size--small);
}
.maui-footer .wp-block-list {
	line-height: 1.75 !important;
}
.maui-footer .wp-block-heading {
	font-weight: 600 !important;
	font-size: 1rem !important;
}

/* Baner z tekstem po prawej: tekst wyrównany do prawej (na komputerze). */
@media (min-width: 782px) {
	.maui-slide--right .maui-slide__text {
		text-align: right;
	}
	.maui-slide--right .wp-block-buttons {
		justify-content: flex-end;
	}
}

/* ---------- Formularz kontaktowy ---------- */

.maui-form p {
	margin: 0 0 1rem;
}
.maui-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}
@media (max-width: 600px) {
	.maui-form__row {
		grid-template-columns: 1fr;
	}
}
.maui-form input[type="text"],
.maui-form input[type="email"],
.maui-form input[type="file"],
.maui-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .7rem 1rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: #f6f6f6;
	font: inherit;
	color: var(--wp--preset--color--contrast);
}
.maui-form input:focus,
.maui-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	background: var(--wp--preset--color--base);
}
.maui-form input[type="file"] {
	padding: .5rem;
}
.maui-form input[type="file"]::file-selector-button {
	margin-right: 1rem;
	padding: .4rem 1rem;
	border: 0;
	border-radius: 50px;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--primary);
	font: inherit;
	cursor: pointer;
}
.maui-form__label {
	display: block;
	margin-bottom: .35rem;
	font-size: var(--wp--preset--font-size--small);
}
.maui-form__hint {
	display: block;
	margin-top: .35rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}
.maui-form__consent {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}
.maui-form__consent input {
	margin-top: .2rem;
	accent-color: var(--wp--preset--color--primary);
}
.maui-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.maui-form .cf-turnstile {
	margin-bottom: 1rem;
}
.maui-form__submit {
	background: transparent !important;
	color: var(--wp--preset--color--primary) !important;
	cursor: pointer;
}
.maui-form__submit:hover {
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
}
.maui-form__notice {
	margin-bottom: 1rem;
	padding: .85rem 1rem;
	border-radius: 6px;
	font-size: var(--wp--preset--font-size--small);
}
.maui-form__notice p {
	margin: 0;
}
.maui-form__notice.is-success {
	background: #e6f2f1;
	color: var(--wp--preset--color--primary-dark);
}
.maui-form__notice.is-error {
	background: #fbeaea;
	color: #8a1f1f;
}

/* ---------- Konsultacja ---------- */

/* Zdjęcie w zaokrąglonej ramce z „dymkami” jak w starym sklepie. */
.maui-consult-visual {
	position: relative;
	padding: 0 0 0 10%;
}
.maui-consult-visual .wp-block-image {
	margin: 0;
	padding: 10px;
	border: 1px solid rgb(0 0 0 / .15);
	border-radius: 175px;
	background: var(--wp--preset--color--base);
}
.maui-consult-visual .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: 165px;
}
.maui-bubble {
	position: absolute;
	max-width: 300px;
	margin: 0 !important;
	padding: 1.1rem 1.25rem;
	border: 3px solid;
	border-radius: 30px;
	text-align: center;
	font-size: 1.05rem;
	line-height: 1.4;
}
.maui-bubble::after {
	content: "";
	position: absolute;
	top: -30px;
	width: 0;
	height: 0;
	border: 15px solid;
}
.maui-bubble--teal {
	left: 0;
	top: 40%;
	background: var(--wp--preset--color--primary);
	border-color: #033c3b;
	color: var(--wp--preset--color--base);
	box-shadow: 16px 19px 14px -16px rgb(2 38 37);
}
.maui-bubble--teal::after {
	right: 40px;
	border-color: transparent var(--wp--preset--color--primary) var(--wp--preset--color--primary) transparent;
}
.maui-bubble--sand {
	right: 0;
	bottom: 0;
	background: var(--wp--preset--color--border);
	border-color: #d5bca8;
	color: var(--wp--preset--color--contrast);
	box-shadow: 16px 19px 14px -16px rgb(87 69 41);
}
.maui-bubble--sand::after {
	left: 40px;
	border-color: transparent transparent var(--wp--preset--color--border) var(--wp--preset--color--border);
}
@media (max-width: 781px) {
	.maui-consult-visual {
		padding: 0;
	}
	.maui-bubble {
		position: static;
		margin: 1.5rem auto 0 !important;
	}
}

/* Liczby: duże, morskie, z pionowymi kreskami między kolumnami. */
.maui-stats > .wp-block-column {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.5rem;
}
.maui-stats > .wp-block-column + .wp-block-column {
	border-left: 1px solid #dee2e6;
	padding-left: 1.5rem;
}
.maui-stats .maui-stats__num {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}
.maui-stats .maui-stats__label {
	flex: 1;
	min-width: 9rem;
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}
@media (max-width: 781px) {
	.maui-stats > .wp-block-column + .wp-block-column {
		border-left: 0;
		padding-left: 0;
	}
}

/* ---------- Newsletter (nad stopką) ---------- */

.maui-newsletter .wp-block-heading {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.maui-newsletter-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50px;
	background: #f1ece6;
	font: inherit;
	color: var(--wp--preset--color--contrast);
}
.maui-newsletter-form input[type="email"]:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	background: var(--wp--preset--color--base);
}
.maui-newsletter-form p {
	margin: 0 0 .9rem;
}
.maui-newsletter-form .maui-form__consent {
	color: var(--wp--preset--color--muted);
}

/* ---------- Karty z ikonami (sekcja informacyjna na stronie głównej) ---------- */

.maui-features > .wp-block-column {
	position: relative;
	padding: 2.25rem 1.75rem 1.75rem;
	border-radius: 16px;
	background: var(--wp--preset--color--cream);
	border: 1px solid #f1e7dd;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.maui-features > .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: 0 .75rem 1.5rem rgb(1 90 88 / .08);
}
.maui-features > .wp-block-column::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background:
		var(--maui-icon) center / 30px no-repeat,
		var(--wp--preset--color--primary);
	box-shadow: 0 0 0 8px rgb(1 90 88 / .08);
}
.maui-features .wp-block-heading {
	margin-top: 0;
	font-size: 1.15rem;
	font-weight: 600;
}
.maui-features p {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}
/* Ikony białe na morskim kółku (stroke='white' wprost w SVG). */
.maui-features .is-download {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><path d='m7 10 5 5 5-5'/><path d='M12 15V3'/></svg>");
}
.maui-features .is-leaf {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/><path d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/></svg>");
}
.maui-features .is-shield {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/><path d='m9 12 2 2 4-4'/></svg>");
}

/* ---------- Moje konto ---------- */

.woocommerce-account .wp-block-post-content > .woocommerce {
	max-width: var(--wp--style--global--wide-size);
}
@media (min-width: 782px) {
	.woocommerce-account.logged-in .wp-block-post-content > .woocommerce {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}
	.woocommerce-account.logged-in .wp-block-post-content > .woocommerce > * {
		grid-column: 1 / -1;
	}
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content {
		float: none !important;
		width: auto !important;
	}
	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
	}
	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 2;
	}
}

/* Menu boczne: karta z ikonami, aktywna pozycja z morskim paskiem. */
.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: .5rem;
	list-style: none;
	border: 1px solid #f1e7dd;
	border-radius: 14px;
	background: var(--wp--preset--color--cream);
}
.woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0 !important;
}
.woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .75rem 1rem !important;
	border-radius: 10px;
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: none !important;
	transition: background .15s;
}
.woocommerce-MyAccount-navigation a::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: var(--maui-icon) center / contain no-repeat;
	mask: var(--maui-icon) center / contain no-repeat;
}
.woocommerce-MyAccount-navigation a:hover {
	background: rgb(255 255 255 / .7);
}
.woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary) !important;
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--wp--preset--color--primary), 0 2px 6px rgb(0 0 0 / .04);
}
.woocommerce-MyAccount-navigation .is-active a::before {
	background: var(--wp--preset--color--primary);
}
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: .35rem !important;
	padding-top: .35rem !important;
	border-top: 1px solid #f1e7dd;
}

.woocommerce-MyAccount-navigation-link--dashboard a {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='9' rx='1'/><rect x='14' y='3' width='7' height='5' rx='1'/><rect x='14' y='12' width='7' height='9' rx='1'/><rect x='3' y='16' width='7' height='5' rx='1'/></svg>");
}
.woocommerce-MyAccount-navigation-link--orders a,
.maui-account-tile.is-orders {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/><path d='M3 6h18'/><path d='M16 10a4 4 0 0 1-8 0'/></svg>");
}
.woocommerce-MyAccount-navigation-link--downloads a,
.maui-account-tile.is-downloads {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><path d='m7 10 5 5 5-5'/><path d='M12 15V3'/></svg>");
}
.woocommerce-MyAccount-navigation-link--edit-address a,
.maui-account-tile.is-edit-address {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>");
}
.woocommerce-MyAccount-navigation-link--edit-account a,
.maui-account-tile.is-edit-account {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21a8 8 0 0 1 16 0'/></svg>");
}
.woocommerce-MyAccount-navigation-link--p24-one-click a {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/></svg>");
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
	--maui-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><path d='m16 17 5-5-5-5'/><path d='M21 12H9'/></svg>");
}

/* Kafelki w kokpicie: białe ikony w morskich kółkach. */
.maui-account-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}
.maui-account-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.25rem;
	border: 1px solid #f1e7dd;
	border-radius: 14px;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast) !important;
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.maui-account-tile::before {
	content: "";
	width: 44px;
	height: 44px;
	margin-bottom: .6rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}
.maui-account-tile::after {
	content: "";
	position: absolute;
	top: calc(1.25rem + 12px);
	left: calc(1.25rem + 12px);
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--base);
	-webkit-mask: var(--maui-icon) center / contain no-repeat;
	mask: var(--maui-icon) center / contain no-repeat;
}
.maui-account-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 .75rem 1.5rem rgb(1 90 88 / .08);
}
.maui-account-tile strong {
	font-weight: 600;
}
.maui-account-tile span {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Formularze i tabele WooCommerce (konto, logowanie, rejestracja). */
.woocommerce form .input-text,
.woocommerce form .form-row .input-text,
.woocommerce form select {
	padding: .7rem 1rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: #f6f6f6;
	font: inherit;
}
.woocommerce form .input-text:focus,
.woocommerce form .form-row .input-text:focus,
.woocommerce form select:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	background: var(--wp--preset--color--base);
}
.woocommerce-account .woocommerce fieldset {
	margin: 2rem 0 1rem;
	padding: 1.25rem;
	border: 1px solid #f1e7dd;
	border-radius: 10px;
}
.woocommerce table.shop_table {
	overflow: hidden;
	border: 1px solid #f1e7dd;
	border-collapse: separate;
	border-radius: 10px;
}
.woocommerce table.shop_table th {
	background: var(--wp--preset--color--cream);
	font-weight: 600;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	padding: .85rem 1rem;
	border-color: #f1e7dd;
}
.woocommerce-account .woocommerce-Address {
	max-width: 520px;
	padding: 1.25rem;
	border: 1px solid #f1e7dd;
	border-radius: 10px;
	background: var(--wp--preset--color--cream);
}
/* Logowanie i rejestracja obok siebie, w kartach. */
.woocommerce-account:not(.logged-in) .u-columns > .u-column1,
.woocommerce-account:not(.logged-in) .u-columns > .u-column2 {
	padding: 1.75rem;
	border: 1px solid #dee2e6;
	border-radius: 8px;
}

/* ---------- Komunikaty WooCommerce w kolorach sklepu ---------- */

.wc-block-components-notice-banner {
	border-radius: 10px !important;
	border-width: 1px !important;
	color: var(--wp--preset--color--contrast) !important;
}
.wc-block-components-notice-banner > svg {
	fill: var(--wp--preset--color--base) !important;
}
.wc-block-components-notice-banner a,
.wc-block-components-notice-banner .wc-forward {
	color: var(--wp--preset--color--primary) !important;
	opacity: 1 !important;
}
.wc-block-components-notice-banner.is-info {
	background: var(--wp--preset--color--cream) !important;
	border-color: var(--wp--preset--color--border) !important;
}
.wc-block-components-notice-banner.is-info > svg {
	background-color: var(--wp--preset--color--accent) !important;
}
.wc-block-components-notice-banner.is-success {
	background: #eef6f5 !important;
	border-color: #b9d9d6 !important;
}
.wc-block-components-notice-banner.is-success > svg {
	background-color: var(--wp--preset--color--primary) !important;
}
.wc-block-components-notice-banner.is-error {
	background: #fdf1f1 !important;
	border-color: #efc7c7 !important;
}
.wc-block-components-notice-banner.is-error > svg {
	background-color: #b3261e !important;
}
.wc-block-components-notice-banner.is-warning {
	background: #fdf7ec !important;
	border-color: #efdcb3 !important;
}
.wc-block-components-notice-banner.is-warning > svg {
	background-color: #b7791f !important;
}
/* Komunikaty własnych formularzy w tym samym stylu. */
.maui-form__notice {
	border: 1px solid transparent;
	border-radius: 10px;
}
.maui-form__notice.is-success {
	background: #eef6f5;
	border-color: #b9d9d6;
}
.maui-form__notice.is-error {
	background: #fdf1f1;
	border-color: #efc7c7;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
}
.woocommerce-account .woocommerce-Address-title h2 {
	margin: 0 0 .5rem;
	font-size: var(--wp--preset--font-size--large);
}
.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	color: var(--wp--preset--color--muted);
}

.woocommerce-account:not(.logged-in) .u-columns form.login,
.woocommerce-account:not(.logged-in) .u-columns form.register {
	margin: 0;
	padding: 0;
	border: 0;
}

@media (min-width: 782px) {
	.woocommerce-account:not(.logged-in) .u-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
	.woocommerce-account:not(.logged-in) .u-columns::before,
	.woocommerce-account:not(.logged-in) .u-columns::after {
		display: none;
	}
	.woocommerce-account:not(.logged-in) .u-columns > div {
		float: none;
		width: auto;
	}
}

/* Stopka zawsze przy dole okna, także na krótkich stronach. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
.admin-bar .wp-site-blocks {
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}

/* Kafelek produktu: bez linku „Zobacz koszyk” po dodaniu (koszyk jest w nagłówku). */
.wc-block-components-product-button .added_to_cart,
.wc-block-product .added_to_cart {
	display: none !important;
}

/* ---------- Strona produktu: opis, autor, „Sprawdź też” ---------- */

.maui-product-section + .maui-product-section {
	margin-top: var(--wp--preset--spacing--60);
}
.maui-product-section > .is-style-maui-lines {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-weight: 400;
}
.maui-product-description {
	line-height: 1.8;
}
.maui-product-description > :first-child {
	margin-top: 0;
}

.maui-author {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--wp--preset--spacing--50);
	align-items: center;
}
.maui-author + .maui-author {
	margin-top: var(--wp--preset--spacing--50);
}
.maui-author.has-no-image {
	grid-template-columns: 1fr;
	max-width: 820px;
}
.maui-author__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}
.maui-author__name {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	letter-spacing: .04em;
}
.maui-author__bio {
	padding-left: 1.25rem;
	border-left: 2px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--muted);
}
.maui-author__bio > :first-child {
	margin-top: 0;
}
.maui-author__bio > :last-child {
	margin-bottom: 0;
}
@media (max-width: 781px) {
	.maui-author {
		grid-template-columns: 1fr;
	}
	.maui-author__photo {
		max-width: 360px;
	}
}

/* „Sprawdź też te pozycje”: odstęp od sekcji powyżej. */
.single-product main .wp-block-woocommerce-product-collection {
	margin-top: var(--wp--preset--spacing--60);
}
.single-product main .wp-block-woocommerce-product-collection > .is-style-maui-lines {
	margin-bottom: var(--wp--preset--spacing--40);
	font-weight: 400;
}

/* =====================================================================
   Motywy z ebooków (gałąź wyglad-ebook): łuk, etykiety, „Wskazówka”,
   okładki 3:4, etykieta formatu, newsletter na morskim pasie.
   ===================================================================== */

/* Etykieta: małe, rozstrzelone, morskie wersaliki nad nagłówkiem. */
.is-style-maui-eyebrow {
	margin: 0 0 .6rem;
	color: var(--wp--preset--color--primary);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}

/* Wskazówka: beżowa, zaokrąglona ramka (np. „Wskazówka kosmetologa”, „Zanim zaczniesz”). */
.is-style-maui-tip {
	padding: 1.5rem 1.75rem !important;
	border: 1px solid #e3cdb9;
	border-radius: 22px;
	background: #efe1d4;
}
.is-style-maui-tip > :first-child {
	margin-top: 0;
}
.is-style-maui-tip > :last-child {
	margin-bottom: 0;
}

/* Łuk: zdjęcie z zaokrągloną górą i cienką miedzianą linią przesuniętą w lewo i w górę. */
.is-style-maui-arch,
.maui-author__photo,
.maui-consult-visual .wp-block-image {
	position: relative;
	isolation: isolate;
	padding: 16px 0 0 16px !important;
	border: 0 !important;
	background: none !important;
}
.is-style-maui-arch::before,
.maui-author__photo::before,
.maui-consult-visual .wp-block-image::before {
	content: "";
	position: absolute;
	inset: 0 16px 16px 0;
	z-index: -1;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 999px 999px 18px 18px;
}
.is-style-maui-arch img,
.maui-author__photo img,
.maui-consult-visual .wp-block-image img {
	border-radius: 999px 999px 18px 18px !important;
}

/* Sekcja autora jak strona „O autorce” w ebooku. */
.maui-product-authors .maui-author {
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	align-items: center;
}
.maui-product-authors .maui-author__photo {
	max-width: 380px;
}
.maui-product-authors .maui-author__name {
	margin: 0 0 .35rem;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 600;
	letter-spacing: 0;
}
.maui-author__role {
	margin: 0 0 1rem;
	color: #a8693b;
	font-weight: 500;
}
.maui-product-authors .maui-author__bio {
	padding-left: 0;
	border-left: 0;
	font-size: 1.05rem;
	line-height: 1.75;
}

/* Okładki w kafelkach w pionie 3:4 (jak strona A4). */
/* Proporcje 3:4 ustawia blok zdjęcia produktu w szablonach (aspectRatio). */
.wc-block-product .wc-block-components-product-image img {
	border-radius: 10px;
}

/* Etykieta formatu z tagu produktu, np. „Ebook PDF”, „Mini-kurs wideo + PDF”. */
.maui-badge {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0 0 .5rem;
	font-size: 0; /* ukrywa przecinki między tagami */
}
.maui-badge a {
	display: inline-block;
	padding: .3rem .8rem;
	border-radius: 50px;
	background: #e2ab74;
	color: #2b2017 !important;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.3;
	text-decoration: none !important;
	text-transform: uppercase;
}
.maui-badge a:hover {
	background: #d99b5f;
}

/* Newsletter na morskim pasie z kręgami jak okładka ebooka. */
.maui-newsletter {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--wp--preset--color--base);
}
.maui-newsletter::before {
	content: "";
	position: absolute;
	top: -45%;
	right: -8%;
	z-index: -1;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: #024d4b;
}
.maui-newsletter::after {
	content: "";
	position: absolute;
	bottom: -60%;
	left: -6%;
	z-index: -1;
	width: 420px;
	height: 420px;
	border: 1px solid rgb(226 171 116 / .6);
	border-radius: 50%;
}
.maui-newsletter p,
.maui-newsletter label {
	color: rgb(255 255 255 / .88);
}
.maui-newsletter .maui-newsletter-form input[type="email"] {
	border-color: transparent;
	background: var(--wp--preset--color--base);
}
.maui-newsletter .maui-newsletter-form input[type="email"]:focus {
	outline-color: #e2ab74;
}
.maui-newsletter .maui-form__consent input {
	accent-color: #e2ab74;
}
.maui-newsletter .maui-form__submit {
	border-color: #e2ab74 !important;
	background: #e2ab74 !important;
	color: #2b2017 !important;
}
.maui-newsletter .maui-form__submit:hover {
	border-color: var(--wp--preset--color--base) !important;
	background: var(--wp--preset--color--base) !important;
}
.maui-newsletter .maui-form__notice {
	color: var(--wp--preset--color--contrast);
}
