/*
Theme Name: Start With Love
Theme URI: https://startwith.love
Author: Yellowcake Media
Description: Block theme for the Start With Love store. Ships layout, styles and insertable patterns; all store copy lives in pages, products and template parts.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: startwithlove
*/

/* ---------- Base ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:where(h1, h2, h3, h4) {
	text-wrap: balance;
}

:where(h1, h2, h3) em {
	font-style: italic;
	color: var(--wp--preset--color--rose);
}

.has-dark-background-color :where(h1, h2, h3) em {
	color: var(--wp--preset--color--peach);
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--rose);
	outline-offset: 3px;
}

/* ---------- Sections ---------- */

.swl-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.swl-page {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--70);
}

.swl-band {
	background: var(--wp--preset--color--white);
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.swl-section > .wp-block-heading,
.swl-section > p {
	margin-top: 0;
}

.swl-grid {
	margin-top: 48px !important;
}

.swl-lead {
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
	color: var(--wp--preset--color--ink-soft);
	max-width: 30em;
}

.swl-hero {
	padding-top: clamp(48px, 7vw, 96px);
}

.swl-hero h1 {
	margin-top: 16px;
}

.swl-hero .wp-block-buttons {
	margin-top: 36px;
}

/* ---------- Block style variations ---------- */

.is-style-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
	margin-bottom: 14px !important;
}

.is-style-step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--wp--preset--color--rose-tint);
	color: var(--wp--preset--color--rose);
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 19px;
	line-height: 1;
	margin: 0 0 20px !important;
}

.wp-block-group.is-style-card,
.wp-block-group.is-style-card-cream {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px;
	padding: 32px;
}

.wp-block-group.is-style-card-cream {
	background: var(--wp--preset--color--cream);
}

.is-style-card > *,
.is-style-card-cream > * {
	margin-block: 0;
}

.is-style-card > * + *,
.is-style-card-cream > * + * {
	margin-top: 10px;
}

.is-style-card h3,
.is-style-card-cream h3 {
	font-size: 23px;
}

.is-style-card p,
.is-style-card-cream p {
	color: var(--wp--preset--color--ink-soft);
	font-size: 15.5px;
	line-height: 1.55;
}

ul.is-style-checks {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checks li {
	position: relative;
	padding-left: 28px;
	color: var(--wp--preset--color--ink-soft);
}

ul.is-style-checks li + li {
	margin-top: 10px;
}

ul.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 18px;
	height: 18px;
	background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F7A5E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

ul.is-style-checks.swl-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: var(--wp--preset--font-size--small);
}

ul.is-style-checks.swl-inline li + li {
	margin-top: 0;
}

.wp-block-image.is-style-rounded-xl img {
	border-radius: 28px;
}

/* ---------- Feature list (Why paper) ---------- */

.swl-feature {
	position: relative;
	padding-left: 56px;
}

.swl-feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--wp--preset--color--sage-tint) no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F7A5E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.swl-feature > * {
	margin: 0;
}

.swl-feature p {
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Dark panel ---------- */

.swl-panel {
	border-radius: 28px;
	padding: clamp(40px, 6vw, 72px) !important;
}

.swl-panel p {
	color: var(--wp--preset--color--sand);
}

.swl-panel .swl-stat {
	margin: 0;
	line-height: 1;
	color: var(--wp--preset--color--peach);
}

.swl-panel .swl-stat + p {
	margin-top: 8px;
	font-size: 13px;
}

/* ---------- Reviews ---------- */

.swl-quote {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 20px !important;
	line-height: 1.45 !important;
	color: var(--wp--preset--color--ink-soft);
}

.swl-cite {
	font-size: 14px !important;
	color: var(--wp--preset--color--muted) !important;
	margin-top: 28px !important;
}

/* ---------- Split buy card ---------- */

.swl-split {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--lift);
}

.swl-split > .wp-block-column {
	padding: clamp(32px, 5vw, 56px);
}

.swl-split-media {
	align-self: stretch !important;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
}

.swl-split-media .wp-block-image {
	margin: 0;
	max-width: 280px;
}

.swl-price {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 46px;
	font-weight: 500;
	line-height: 1;
	margin: 20px 0 0;
}

.swl-small-center {
	text-align: center;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

/* ---------- FAQ / details ---------- */

.swl-faq {
	border-top: 1px solid var(--wp--preset--color--line);
}

.swl-faq > * + * {
	margin-top: 0 !important;
}

.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: 16px 0;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	flex-shrink: 0;
	font-size: 24px;
	line-height: 1;
	color: var(--wp--preset--color--rose);
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details > :not(summary) {
	margin-top: 0;
	margin-bottom: 22px;
	color: var(--wp--preset--color--ink-soft);
	max-width: 36em;
}

.swl-faq-compact .wp-block-details summary {
	min-height: 56px;
	font-size: 16px;
	font-weight: 600;
}

/* ---------- Announcement + header ---------- */

.swl-announcement {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	font-size: 13px;
	padding-top: 9px;
	padding-bottom: 9px;
}

.swl-announcement p {
	margin: 0;
}

.swl-announcement strong {
	color: var(--wp--preset--color--peach);
	font-weight: 600;
}

.swl-announcement a {
	color: inherit;
	text-decoration: underline;
}

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.swl-header {
	background: rgba(252, 247, 242, 0.94);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: 12px;
	padding-bottom: 12px;
}

.swl-header .wp-block-site-logo img {
	width: 26px;
	height: auto;
}

/* ---------- Footer ---------- */

.swl-footer {
	background: var(--wp--preset--color--cream-2);
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 64px;
	padding-bottom: 32px;
	margin-top: 0;
}

.swl-footer-bottom {
	margin-top: 48px !important;
	padding-top: 24px;
	border-top: 1px solid #E2D5CA;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.swl-footer-bottom p {
	margin: 0;
}

/* ---------- WooCommerce: single product ---------- */

.swl-product-top {
	margin-top: 24px;
	margin-bottom: var(--wp--preset--spacing--70);
}

.swl-product-top .woocommerce-product-gallery__image img,
.swl-product-top .woocommerce-product-gallery img {
	border-radius: 28px;
}

.swl-product-top .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px !important;
}

.swl-product-top .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.swl-product-top .flex-control-thumbs img {
	border-radius: 14px;
	border: 2px solid transparent;
}

.swl-product-top .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--ink);
}

.swl-product-top .wp-block-post-title {
	font-size: clamp(36px, 4vw, 50px);
	line-height: 1.05;
	margin-top: 0;
}

.swl-product-top .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 36px;
	font-weight: 500;
}

.swl-product-top .wp-block-post-excerpt__excerpt {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-soft);
}

.swl-product-top table.variations th,
.swl-product-top table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.swl-product-top table.variations label {
	font-size: 14px;
	font-weight: 600;
}

.swl-product-top table.variations select {
	min-height: 48px;
	min-width: 220px;
	padding: 0 14px;
	border: 1px solid #D9CBBF;
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	font: inherit;
	color: var(--wp--preset--color--ink);
	margin-top: 8px;
}

.swl-product-top .quantity .qty {
	height: 56px;
	width: 84px;
	border: 1px solid #D9CBBF;
	border-radius: 999px;
	text-align: center;
	font: inherit;
	font-weight: 600;
	background: var(--wp--preset--color--white);
}

.swl-product-top form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 28px;
}

.swl-product-top form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 56px;
}

.swl-product-top .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}

.swl-product-top .swl-trust {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.swl-product-top .swl-faq {
	margin-top: 28px;
}

.wp-block-woocommerce-product-details {
	margin-bottom: var(--wp--preset--spacing--70);
}

.wp-block-woocommerce-product-details .wc-tabs {
	display: none;
}
