/* ==========================================================================
   tiklo — style bloków i sekcji (ładowane na stronie i w edytorze)
   ========================================================================== */

@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- kontener treści z bloków ---------- */
.block-content > *:not(.alignfull) {
	max-width: var(--wp--style--global--content-size, 860px);
	margin-left: auto; margin-right: auto;
	padding-left: 20px; padding-right: 20px;
}
.block-content > .alignwide { max-width: calc(var(--wp--style--global--wide-size, 1180px) + 40px); }
.block-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.block-content > :not(.alignfull) + :not(.alignfull) { margin-top: 1.2em; }
.block-content > :not(.alignfull):first-child { margin-top: 56px; }
.block-content > :not(.alignfull):last-child { margin-bottom: 56px; }

/* Na stronie produktu treść jest wewnątrz kontenera .wrap — sekcje pełnej
   szerokości „wychodzą" z niego na całą szerokość ekranu. */
.product-blocks { margin-top: 56px; }
.product-blocks > .alignfull {
	margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	width: 100vw; max-width: 100vw;
}
.product-blocks > :not(.alignfull):not(.alignwide) { max-width: var(--wp--style--global--content-size, 860px); }
.product-blocks > * + * { margin-top: 1.2em; }
.product-blocks > .alignfull + .alignfull { margin-top: 0; }

/* Szerokości wewnątrz sekcji o układzie „ograniczonym" */
.is-layout-constrained > .alignwide { max-width: var(--wp--style--global--wide-size, 1180px); margin-left: auto !important; margin-right: auto !important; }
.alignfull.is-layout-constrained { padding-left: 20px; padding-right: 20px; }

/* ---------- sekcje ---------- */
.tiklo-section { padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 760px) { .tiklo-section { padding-top: 48px; padding-bottom: 48px; } }

.tiklo-hero { position: relative; overflow: hidden; padding-top: 64px; padding-bottom: 0; }
.tiklo-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(circle at 5% 84%, #FDC10A 9px, transparent 10px),
		radial-gradient(circle at 96% 14%, #12C295 7px, transparent 8px),
		radial-gradient(circle at 48% 8%, rgba(255, 247, 238, .5) 3px, transparent 4px);
}
.tiklo-hero > * { position: relative; z-index: 1; }
.tiklo-hero .wp-block-columns { margin-bottom: 0; }
.tiklo-hero .wp-block-buttons { margin-bottom: 56px; }
.tiklo-hero p { color: #B9C6DA; }
.tiklo-hero .wp-block-image { margin: 0; }
.tiklo-hero .wp-block-image img { max-height: 520px; width: auto; margin: 0 auto; display: block; }
@media (max-width: 781px) { .tiklo-hero { padding-top: 40px; } .tiklo-hero .wp-block-buttons { margin-bottom: 20px; } }

.tiklo-trust { padding-top: 18px; padding-bottom: 18px; }
.tiklo-trust .wp-block-columns { margin: 0; gap: 14px 24px; }
.tiklo-trust p { margin: 0; font-weight: 700; font-size: 15px; }
@media (max-width: 781px) { .tiklo-trust .wp-block-columns { flex-wrap: wrap !important; } .tiklo-trust .wp-block-column { flex-basis: 45% !important; } }

.tiklo-cta { border-radius: 28px; padding: 40px !important; }
.tiklo-cta .wp-block-columns { margin: 0; }
.tiklo-cta h2 { margin-bottom: 8px; }
.tiklo-cta p { color: #B9C6DA; margin: 0; }
.tiklo-cta .wp-block-image { margin: 0; }
.tiklo-cta .wp-block-image img { width: 120px; }
@media (min-width: 782px) { .tiklo-cta .wp-block-column:last-child .wp-block-buttons { justify-content: flex-end; } }
@media (max-width: 781px) { .tiklo-cta { padding: 28px !important; text-align: center; } .tiklo-cta .wp-block-image img { margin: 0 auto; } .tiklo-cta .wp-block-buttons { justify-content: center; } }

.tiklo-emoji {
	width: 56px; height: 56px; border-radius: 16px; background: var(--wp--preset--color--cream-2, #FBEADB);
	display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; margin: 0 0 16px;
}
.tiklo-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.tiklo-lead { font-size: 18px; color: var(--wp--preset--color--soft, #5E6E85); }
.has-navy-background-color .tiklo-lead { color: #B9C6DA; }
.tiklo-note { font-size: 13px; color: var(--wp--preset--color--soft, #5E6E85); }

/* ---------- warianty bloków (panel „Style" w edytorze) ---------- */

/* Lista z ptaszkami */
ul.is-style-tiklo-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.is-style-tiklo-check li {
	position: relative; padding: 14px 16px 14px 52px;
	background: #fff; border: 1px solid #EADCCB; border-radius: 14px;
}
ul.is-style-tiklo-check li::before {
	content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--wp--preset--color--green, #01A27D) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Zaokrąglone zdjęcia i filmy */
.wp-block-image.is-style-tiklo-rounded img,
.wp-block-video.is-style-tiklo-rounded video { border-radius: 24px; display: block; }
.wp-block-video video { width: 100%; }

/* Karta */
.wp-block-group.is-style-tiklo-card {
	background: #fff; border: 1px solid #EADCCB; border-radius: 20px; padding: 26px;
}
.wp-block-group.is-style-tiklo-card > * { margin-top: 0; }
.wp-block-group.is-style-tiklo-card p:last-child { margin-bottom: 0; }

/* Tabela danych */
.wp-block-table.is-style-tiklo-specs table {
	border-collapse: separate; border-spacing: 0; width: 100%;
	background: #fff; border: 1px solid #EADCCB; border-radius: 20px; overflow: hidden;
}
.wp-block-table.is-style-tiklo-specs td { border: 0; border-bottom: 1px solid #EADCCB; padding: 15px 22px; }
.wp-block-table.is-style-tiklo-specs tr:last-child td { border-bottom: 0; }
.wp-block-table.is-style-tiklo-specs td:first-child { font-weight: 700; width: 42%; color: #051B3F; }
.wp-block-table.is-style-tiklo-specs td:last-child { color: #5E6E85; }

/* Żółty przycisk */
.wp-block-button.is-style-tiklo-yellow .wp-block-button__link {
	background: var(--wp--preset--color--yellow, #FDC10A); color: #051B3F;
}
.wp-block-button.is-style-tiklo-yellow .wp-block-button__link:hover { background: #FFD24A; color: #051B3F; }

/* Przycisk z obramowaniem na ciemnym tle */
.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link { border-color: rgba(255, 247, 238, .45); color: #FFF7EE; }

/* FAQ — blok „Szczegóły" */
.wp-block-details.is-style-tiklo-faq {
	background: #fff; border: 1px solid #EADCCB; border-radius: 16px; padding: 18px 22px; margin-bottom: 12px;
}
.wp-block-details.is-style-tiklo-faq summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
	font-family: var(--wp--preset--font-family--display, "Baloo 2", sans-serif); font-weight: 700; font-size: 19px;
}
.wp-block-details.is-style-tiklo-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-tiklo-faq summary::after { content: "+"; color: #01A27D; font-size: 26px; line-height: 1; }
.wp-block-details.is-style-tiklo-faq[open] summary::after { content: "–"; }
.wp-block-details.is-style-tiklo-faq > :not(summary) { color: #5E6E85; margin: 10px 0 0; }

/* Siatka produktów WooCommerce wstawiona shortcodem w sekcji */
.tiklo-section .woocommerce { margin-top: 8px; }

/* Nagłówek sekcji z linkiem po prawej */
.tiklo-head { align-items: baseline; margin-bottom: 26px !important; }
.tiklo-head h2 { margin: 0; }
.tiklo-head p { margin: 0; font-weight: 700; }
.tiklo-head a { text-decoration: none; }

/* Cena i przycisk „Dodaj do koszyka" w banerze sklepu jednoproduktowego */
.tiklo-hero--buy .add_to_cart_inline {
	border: 0 !important; padding: 0 !important; margin: 0 0 56px !important;
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.tiklo-hero--buy .add_to_cart_inline .woocommerce-Price-amount {
	font-family: var(--wp--preset--font-family--display, "Baloo 2", sans-serif);
	font-weight: 800; font-size: 40px; color: #FFF7EE;
}
.tiklo-hero--buy .add_to_cart_inline del .woocommerce-Price-amount { font-size: 20px; color: #B9C6DA; font-weight: 500; }
.tiklo-hero--buy .add_to_cart_inline ins { text-decoration: none; }
.tiklo-hero--buy .add_to_cart_inline .button {
	background: var(--wp--preset--color--green, #01A27D); border: 2px solid var(--wp--preset--color--green, #01A27D);
	color: #fff; border-radius: 999px; padding: 16px 32px; font-weight: 700; font-size: 17px;
}
.tiklo-hero--buy .add_to_cart_inline .button:hover { background: #017F62; border-color: #017F62; }
.tiklo-hero--buy .add_to_cart_inline .added_to_cart { color: #FDC10A; font-weight: 700; }
@media (max-width: 781px) { .tiklo-hero--buy .add_to_cart_inline { margin-bottom: 24px !important; } }
