/*
Theme Name: insulinopornosc.pl
Description: Landing page sprzedażowy z jednym produktem cyfrowym. Motyw potomny Twenty Twenty-Five.
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: insulinopornosc
*/

html { scroll-behavior: smooth; }

/* ---------- Karty ---------- */
.ip-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 16px;
	box-shadow: 0 6px 24px rgba(28, 43, 42, .06);
}
.ip-card > :first-child { margin-top: 0; }

.ip-eyebrow {
	display: inline-block;
	padding: .35em .9em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-1);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .02em;
}

.ip-checklist { list-style: none; padding-left: 0; }
.ip-checklist li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.ip-checklist li::before {
	content: "✓";
	position: absolute; left: 0; top: .05em;
	width: 1.35em; height: 1.35em;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	color: #fff; font-size: .8em; font-weight: 800;
	display: grid; place-items: center;
}
.ip-crosslist { list-style: none; padding-left: 0; }
.ip-crosslist li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.ip-crosslist li::before {
	content: "✕";
	position: absolute; left: 0; top: .05em;
	width: 1.35em; height: 1.35em;
	border-radius: 50%;
	background: #f3d9d4; color: #b5412b;
	font-size: .75em; font-weight: 800;
	display: grid; place-items: center;
}

.ip-num {
	width: 2.4rem; height: 2.4rem;
	border-radius: 12px;
	display: grid; place-items: center;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-1);
	font-weight: 800;
}

.ip-value { color: var(--wp--preset--color--accent-4); font-weight: 600; }
.ip-placeholder { color: #b5412b; font-style: italic; font-size: .85em; }

/* ---------- Cena ---------- */
.ip-price { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
.ip-price del { font-size: .5em; font-weight: 600; color: var(--wp--preset--color--accent-4); margin-right: .3em; }
.ip-price ins { text-decoration: none; }

/* ---------- Przycisk CTA ---------- */
.wp-block-button .wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240, 122, 26, .35); }
.ip-cta-big .wp-block-button__link { font-size: 1.15rem; padding: 1.05em 2.2em; }
.ip-cta-full, .ip-cta-full .wp-block-button__link { width: 100%; }

/* ---------- FAQ ---------- */
.wp-block-details.ip-faq {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--base);
}
.wp-block-details.ip-faq summary { font-weight: 700; cursor: pointer; }
.wp-block-details.ip-faq[open] summary { margin-bottom: .6rem; }

/* ---------- Opinie ---------- */
.ip-quote p:first-child::before { content: "„"; }
.ip-quote p:first-child::after { content: "”"; }

/* ---------- Nagłówek: CTA zbędne w kasie ---------- */
.woocommerce-checkout .ip-header-cta { display: none; }

/* ---------- Pływający pasek zakupu (mobile) ---------- */
.ip-sticky-buy {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: none;
	align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--accent-6);
	box-shadow: 0 -6px 20px rgba(28, 43, 42, .08);
	font-weight: 700;
}
.ip-sticky-buy a {
	background: var(--wp--preset--color--accent-2);
	color: #fff; text-decoration: none;
	padding: .7em 1.3em; border-radius: 10px;
	white-space: nowrap;
}
.ip-sticky-buy .ip-price-inline del { font-weight: 500; color: var(--wp--preset--color--accent-4); font-size: .85em; }
.ip-sticky-buy .ip-price-inline ins { text-decoration: none; }
@media (max-width: 781px) {
	.ip-sticky-buy.is-visible { display: flex; }
	body.home { padding-bottom: 72px; }
}

/* ---------- Kasa (klasyczny formularz WooCommerce) ---------- */
.woocommerce-checkout .woocommerce { max-width: 720px; margin-inline: auto; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
.woocommerce-checkout .woocommerce-input-wrapper input.input-text {
	padding: .8em 1em;
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 10px;
	font-size: 1rem;
	width: 100%;
}
.woocommerce-checkout #order_review_heading { margin-top: 2rem; }
.woocommerce-checkout #place_order {
	width: 100%;
	background: var(--wp--preset--color--accent-2);
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	padding: 1em;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
}
.woocommerce-checkout #insulinopornosc_digital_consent_field label { font-size: .9rem; line-height: 1.4; }
.is-draft-note { background: #fff4e5; border-left: 4px solid var(--wp--preset--color--accent-2); padding: .8em 1em; }
