/*
Theme Name: Coastal Nailzz
Theme URI: https://coastalnailzz.com
Description: Custom coastal/beachy child theme for Coastal Nailzz, built on Twenty Twenty-Four.
Author: Coastal Nailzz
Template: twentytwentyfour
Version: 1.0.26
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coastal-nailzz-child
*/

/* Prevent horizontal scroll caused by off-canvas elements (e.g. WooCommerce's mini-cart drawer) sitting past the viewport edge.
   Uses overflow-x: clip (not hidden) because hidden forces overflow-y to auto too (per the CSS overflow spec's
   visible/non-visible pairing rule), which turns this element into a scroll container and breaks position: sticky
   on the header below -- clip doesn't create a scroll container, so it avoids that side effect. */
.wp-site-blocks {
	overflow-x: clip;
}

/* WordPress wraps the header template part in its own <header class="wp-block-template-part"> with no other
   content, so that wrapper's box shrinks to exactly the header's height. Since position: sticky is clamped to
   stay within its containing block, the header could only stay stuck for the first ~113px of scroll before
   "running out" of wrapper to stick within. display: contents removes the wrapper's box so the header's
   containing block resolves to .wp-site-blocks (which spans the whole page) instead. */
header.wp-block-template-part {
	display: contents;
}

/* ============ Header ============ */
.cn-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent);
	backdrop-filter: saturate(140%) blur(6px);
}
.cn-brand { align-items: center; }
.cn-brand-mark img { width: 34px; height: 34px; display: block; }
.cn-brand-word,
.cn-brand-word a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 21px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.cn-accent-word { color: var(--wp--preset--color--accent); }

.cn-primary-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	position: relative;
	padding-bottom: 4px;
}
.cn-primary-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background: var(--wp--preset--color--accent);
	transition: width 0.2s ease;
}
.cn-primary-nav .wp-block-navigation-item__content:hover::after { width: 100%; }

.cn-cart-icon a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

/* ============ Buttons ============ */
.cn-btn-primary .wp-block-button__link,
button.cn-btn-primary {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-2);
	border: none;
	font-weight: 600;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
}
.cn-btn-primary .wp-block-button__link:hover,
button.cn-btn-primary:hover {
	background: var(--wp--preset--color--accent-4);
	transform: translateY(-2px);
}
.cn-btn-secondary.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--contrast-2);
	border-color: var(--wp--preset--color--contrast-2);
	font-weight: 600;
	transition: background 0.18s ease, color 0.18s ease;
}
.cn-btn-secondary.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast-2);
	color: var(--wp--preset--color--base-2);
}
.cn-btn-small .wp-block-button__link { padding: 9px 18px; font-size: 13px; }

/* ============ Eyebrows & section titles ============ */
.cn-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 14px;
}
.cn-eyebrow-onDark { color: var(--wp--preset--color--accent-3); }
.cn-section-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	max-width: 20ch;
}
.cn-onDark { color: var(--wp--preset--color--base-2); }
.cn-section-sub {
	font-size: 15.5px;
	max-width: 56ch;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 80%, transparent);
}
.cn-section { padding-top: 68px; padding-bottom: 68px; }

/* ============ Hero ============ */
.cn-hero { padding-top: 56px; padding-bottom: 64px; }
.cn-hero-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: clamp(38px, 5vw, 58px);
	line-height: 1.05;
	max-width: 12ch;
}
.cn-hero-lede {
	font-size: 17px;
	line-height: 1.65;
	max-width: 46ch;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent);
}
.cn-hero-trust {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-3);
}

.cn-hero-visual {
	position: relative;
	background: linear-gradient(160deg, var(--wp--preset--color--accent-2) 0%, var(--wp--preset--color--base) 65%);
	border-radius: 8px;
	aspect-ratio: 1 / 0.92;
	overflow: hidden;
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
}
.cn-nail-fan { position: absolute; inset: 0; }
.cn-nail {
	position: absolute;
	width: 78px;
	height: 168px;
	border-radius: 42% 42% 46% 46% / 30% 30% 70% 70%;
	box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent), 0 0 0 1px rgba(255,255,255,0.35) inset;
	transition: transform 0.3s ease;
}
.cn-hero-visual:hover .cn-nail { transform: translateY(-6px); }
.cn-n1 { background: var(--wp--preset--color--accent); left: 18%; top: 54%; transform: rotate(-24deg); }
.cn-n2 { background: var(--wp--preset--color--accent-3); left: 34%; top: 40%; transform: rotate(-10deg); }
.cn-n3 { background: var(--wp--preset--color--contrast-2); left: 50%; top: 32%; transform: translateX(-50%) rotate(0deg); }
.cn-n4 { background: var(--wp--preset--color--accent-5); left: 66%; top: 40%; transform: rotate(10deg); }
.cn-n5 { background: var(--wp--preset--color--contrast-2); left: 82%; top: 54%; transform: rotate(24deg); }
.cn-hero-visual-tag {
	position: absolute;
	left: 20px;
	bottom: 20px;
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	font-size: 11.5px;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 999px;
	box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
}

/* ============ How it works ============ */
.cn-step {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 30%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 6px;
	padding: 30px 26px !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-step:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent);
}

.cn-shell-fill { fill: var(--wp--preset--color--accent-2); }
.cn-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	color: var(--wp--preset--color--accent);
	margin: 0 0 14px;
	line-height: 1;
}

/* ============ Collection ============ */
.cn-product { text-decoration: none; }
.cn-swatch {
	aspect-ratio: 1 / 1.05;
	border-radius: 6px;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-product:hover .cn-swatch {
	transform: translateY(-5px);
	box-shadow: 0 18px 30px -14px color-mix(in srgb, var(--wp--preset--color--contrast) 40%, transparent);
}
.cn-product-name { font-weight: 600; font-size: 14.5px; margin: 14px 0 2px !important; }
.cn-product-price { font-size: 13.5px; color: var(--wp--preset--color--contrast-3); }
.cn-c1 .cn-swatch { background: linear-gradient(160deg, var(--wp--preset--color--accent-2) 0%, var(--wp--preset--color--accent-3) 100%); }
.cn-c2 .cn-swatch { background: linear-gradient(160deg, var(--wp--preset--color--accent-5) 0%, var(--wp--preset--color--base) 100%); }
.cn-c3 .cn-swatch { background: linear-gradient(160deg, #F2D5C8 0%, var(--wp--preset--color--accent) 100%); }
.cn-c4 .cn-swatch { background: linear-gradient(160deg, var(--wp--preset--color--contrast-2) 0%, var(--wp--preset--color--contrast) 100%); }

/* ============ Story band ============ */
.cn-story {
	background: var(--wp--preset--color--contrast);
	border-radius: 8px;
	padding: 56px 48px !important;
}
.cn-story-copy { color: color-mix(in srgb, var(--wp--preset--color--base-2) 85%, transparent); max-width: 48ch; }
.cn-story-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	line-height: 1.4;
	color: var(--wp--preset--color--base-2);
	border-left: 2px solid var(--wp--preset--color--accent);
	padding-left: 22px;
}

/* ============ Footer ============ */
.cn-footer { padding-top: 52px; padding-bottom: 30px; }
.cn-footer-heading {
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-3);
	margin: 0 0 14px;
}
.cn-footer-link a {
	font-size: 14px;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}
.cn-footer-link a:hover { color: var(--wp--preset--color--accent); }
.cn-footer-blurb {
	font-size: 13.5px;
	color: var(--wp--preset--color--contrast-3);
	max-width: 32ch;
	line-height: 1.6;
}
.cn-newsletter-row { display: flex; gap: 8px; margin-top: 6px; }
.cn-newsletter-row input {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13.5px;
	padding: 10px 12px;
	border-radius: 3px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	flex: 1;
}
.cn-newsletter-row button {
	font-family: var(--wp--preset--font-family--body);
	cursor: pointer;
}
.cn-footer-bottom {
	font-size: 12.5px;
	color: var(--wp--preset--color--contrast-3);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	padding-top: 22px;
	margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
	.cn-btn-primary .wp-block-button__link,
	.cn-btn-secondary .wp-block-button__link,
	.cn-primary-nav .wp-block-navigation-item__content::after,
	.cn-nail,
	.cn-swatch { transition: none; }
}

@media (max-width: 780px) {
	.cn-hero-cols { flex-wrap: wrap; }
	.cn-hero-cols .wp-block-column { flex-basis: 100% !important; }
	.cn-story .wp-block-columns { flex-wrap: wrap; }
}

/* ============ Sizing Guide page ============ */
.cn-eyebrow:first-child {
	margin-top: 24px;
}

.cn-sizing-lede {
	font-size: 17px;
	line-height: 1.65;
	max-width: 58ch;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent);
	margin-bottom: 8px !important;
}

.wp-block-separator {
	margin-top: 64px !important;
	margin-bottom: 64px !important;
}

.cn-photo-example figure { margin: 0; }
.cn-photo-example img {
	border-radius: 8px;
	aspect-ratio: 4/3;
	object-fit: cover;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
}
.cn-photo-caption {
	font-size: 13.5px;
	color: var(--wp--preset--color--contrast-3);
	margin-top: 10px !important;
}
.cn-photo-caption b { color: var(--wp--preset--color--contrast); }

.cn-sizing-steps .cn-step {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 30%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 6px;
	padding: 26px 22px !important;
}
.cn-step-icon { width: 44px; height: 44px; margin-bottom: 14px; display: block; }

.cn-sizing-form {
	background: var(--wp--preset--color--base-2);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 8px;
	padding: 40px !important;
	box-shadow: 0 20px 40px -28px color-mix(in srgb, var(--wp--preset--color--contrast) 40%, transparent);
}
.cn-sizing-form .wpcf7-form-control-wrap { display: block; margin-bottom: 4px; }
.cn-sizing-form p { margin: 0 0 18px; }
.cn-sizing-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: 6px;
}
.cn-sizing-form input[type="text"],
.cn-sizing-form input[type="email"],
.cn-sizing-form input[type="file"] {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	padding: 11px 13px;
	border-radius: 4px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	width: 100%;
	box-sizing: border-box;
}
.cn-sizing-form input[type="file"] {
	padding: 9px 13px;
	border-style: dashed;
	border-width: 1.5px;
	border-color: var(--wp--preset--color--contrast-2);
}
.cn-sizing-form .wpcf7-submit {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 15px;
	padding: 13px 28px;
	border-radius: 3px;
	cursor: pointer;
	border: none;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-2);
	box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--wp--preset--color--accent) 60%, transparent);
	transition: background 0.18s ease, transform 0.18s ease;
}
.cn-sizing-form .wpcf7-submit:hover { background: var(--wp--preset--color--accent-4); transform: translateY(-2px); }
.cn-sizing-form .wpcf7-not-valid-tip { color: var(--wp--preset--color--accent-4); font-size: 12.5px; margin-top: 4px; }
.cn-sizing-form .wpcf7-response-output { border-radius: 4px; margin-top: 20px !important; }

.cn-no-order {
	background: var(--wp--preset--color--accent-2);
	border-radius: 6px;
	padding: 18px 22px !important;
}
.cn-no-order a { color: var(--wp--preset--color--contrast); font-weight: 600; }

@media (max-width: 720px) {
	.cn-sizing-form { padding: 26px 20px !important; }
}

/* ============ Gallery page ============ */
.cn-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 36px !important;
	margin-bottom: 44px !important;
}
.cn-filter-chip {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	color: var(--wp--preset--color--contrast-2);
	background: var(--wp--preset--color--base-2);
}
.cn-filter-chip.is-active {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base-2);
	border-color: var(--wp--preset--color--contrast);
}

.cn-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.cn-gallery-grid.is-layout-flow > * {
	margin-block-start: 0 !important;
}
.cn-gallery-card { text-decoration: none; color: inherit; display: block; }
.cn-gallery-frame {
	aspect-ratio: 4/5;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-gallery-card:hover .cn-gallery-frame {
	transform: translateY(-5px);
	box-shadow: 0 20px 32px -16px color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
}
.cn-gallery-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cn-gallery-caption { margin-top: 12px !important; }
.cn-gallery-caption b { display: block; font-size: 14.5px; }
.cn-gallery-caption span { font-size: 12.5px; color: var(--wp--preset--color--contrast-3); }

.cn-cta-band {
	background: var(--wp--preset--color--contrast);
	border-radius: 8px;
	padding: 48px !important;
	text-align: center;
}
.cn-cta-band .cn-eyebrow { color: var(--wp--preset--color--accent-3); margin-top: 0 !important; }
.cn-cta-band .cn-section-title { color: var(--wp--preset--color--base-2); max-width: none; }
.cn-cta-band p { color: color-mix(in srgb, var(--wp--preset--color--base-2) 85%, transparent); max-width: 52ch; margin: 0 auto 26px !important; }
.cn-cta-band .wp-block-buttons { justify-content: center; }

.cn-btn-outline-onDark.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base-2);
	border-color: var(--wp--preset--color--base-2);
}
.cn-btn-outline-onDark.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 780px) {
	.cn-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.cn-cta-band { padding: 36px 26px !important; }
}
@media (max-width: 480px) {
	.cn-gallery-grid { grid-template-columns: 1fr; }
}

/* ============ Shop / WooCommerce ============ */
.price ins {
	color: var(--wp--preset--color--accent-4);
	text-decoration: none;
	font-weight: 600;
}
.price del {
	color: var(--wp--preset--color--contrast-3);
	opacity: 0.75;
}

/* ============ About page ============ */
.cn-pillars-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.cn-pillars-grid.is-layout-flow > * {
	margin-block-start: 0 !important;
}
.cn-pillar {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 30%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 6px;
	padding: 28px 24px !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-pillar:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--wp--preset--color--accent) 40%, transparent);
}
.cn-pillar-icon { width: 40px; height: 40px; margin-bottom: 14px; display: block; }

.cn-story-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
}
.cn-story-grid.is-layout-flow > * {
	margin-block-start: 0 !important;
}
.cn-story-photo {
	aspect-ratio: 4/5;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-story-photo:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 32px -16px color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
}
.cn-story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cn-story-copy p {
	font-size: 16px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent);
}

@media (max-width: 780px) {
	.cn-pillars-grid { grid-template-columns: 1fr; }
	.cn-story-grid { grid-template-columns: 1fr; }
}

/* ============ Contact page ============ */
/* Matches the standard .cn-eyebrow:first-child spacing (24px) used on every other page.
   Not scoped to :first-child itself -- this page has a leftover empty div from the old
   Pagelayer build sitting before the content, which breaks that selector here. */
.cn-contact-page-eyebrow {
	margin-top: 24px !important;
}
.cn-contact-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.cn-contact-grid.is-layout-flow > * {
	margin-block-start: 0 !important;
}
.cn-contact-card {
	display: flex;
	align-items: center;
	gap: 28px;
	text-decoration: none;
	color: inherit;
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 30%, white);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	border-radius: 6px;
	padding: 28px 36px;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cn-contact-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
}
.cn-contact-icon { width: 44px; height: 44px; flex-shrink: 0; display: block; }
.cn-contact-body { flex: 1; min-width: 0; }
.cn-contact-card h3 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 4px;
}
.cn-contact-handle {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 21px;
	margin: 0 0 6px;
	word-break: break-word;
}
.cn-contact-sub {
	font-size: 13.5px;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 70%, transparent);
	margin: 0;
}
.cn-contact-arrow {
	display: inline-block;
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--accent);
}
.cn-contact-card:hover .cn-contact-arrow { text-decoration: underline; }

@media (max-width: 600px) {
	.cn-contact-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 26px 24px; }
}

.cn-help-note {
	background: var(--wp--preset--color--accent-2);
	border-radius: 6px;
	padding: 20px 24px !important;
	font-size: 14.5px;
	line-height: 1.6;
}
.cn-help-note a { color: var(--wp--preset--color--contrast); font-weight: 600; }

/* ============ Spin to Win popup ============ */
.cn-spin-launcher {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 999px;
	padding: 14px 22px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
	box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
	display: none;
	align-items: center;
	gap: 8px;
	z-index: 200;
}
.cn-spin-launcher.visible { display: inline-flex; }
.cn-spin-launcher:hover { background: var(--wp--preset--color--contrast-2); }

.cn-spin-overlay {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 300;
	opacity: 0;
	transition: opacity 0.35s ease;
}
.cn-spin-overlay.visible { display: flex; }
.cn-spin-overlay.shown { opacity: 1; }

.cn-spin-modal {
	background: var(--wp--preset--color--base);
	border-radius: 16px;
	max-width: 620px;
	width: 100%;
	padding: 40px 44px 36px;
	position: relative;
	box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--wp--preset--color--contrast) 50%, transparent);
	transform: scale(0.94) translateY(10px);
	transition: transform 0.35s ease;
}
.cn-spin-overlay.shown .cn-spin-modal { transform: scale(1) translateY(0); }

.cn-spin-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	border: none;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.cn-spin-close:hover { background: color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent); }

.cn-spin-grid {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 34px;
	align-items: center;
}

.cn-spin-wheel-wrap {
	position: relative;
	width: 240px;
	height: 240px;
	margin: 0 auto;
}
.cn-spin-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 20px solid var(--wp--preset--color--accent-4);
	z-index: 5;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}
.cn-spin-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: relative;
	box-shadow: 0 0 0 6px var(--wp--preset--color--base), 0 0 0 8px color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent), 0 20px 40px -20px rgba(22,65,74,0.5);
	background: conic-gradient(
		var(--wp--preset--color--accent-2) 0deg 72deg,
		var(--wp--preset--color--contrast-3) 72deg 144deg,
		var(--wp--preset--color--contrast) 144deg 216deg,
		var(--wp--preset--color--contrast-2) 216deg 288deg,
		var(--wp--preset--color--accent) 288deg 360deg
	);
}
.cn-spin-label {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	transform-origin: 0 0;
}
.cn-spin-label-inner {
	position: absolute;
	top: -14px;
	left: -45px;
	width: 90px;
	text-align: center;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.2;
}
.cn-spin-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	background: var(--wp--preset--color--base);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px -2px rgba(22,65,74,0.3);
	z-index: 4;
}

.cn-spin-copy .cn-spin-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 10px;
}
.cn-spin-copy h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 10px;
	color: var(--wp--preset--color--contrast);
}
.cn-spin-copy p.cn-spin-sub {
	font-size: 14.5px;
	line-height: 1.55;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 78%, transparent);
	margin: 0 0 20px;
}

.cn-spin-email-row { display: flex; flex-direction: column; gap: 10px; }
.cn-spin-email-row input {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14.5px;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	width: 100%;
	box-sizing: border-box;
}
.cn-spin-email-row input:focus { outline: 2px solid var(--wp--preset--color--contrast-2); outline-offset: 1px; }
.cn-spin-email-row input.invalid { border-color: var(--wp--preset--color--accent-4); }
.cn-spin-email-error {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--wp--preset--color--accent-4);
	min-height: 16px;
}
@keyframes cn-spin-shake {
	10%, 90% { transform: translateX(-1px); }
	20%, 80% { transform: translateX(2px); }
	30%, 50%, 70% { transform: translateX(-4px); }
	40%, 60% { transform: translateX(4px); }
}
.cn-spin-email-row input.shake { animation: cn-spin-shake 0.4s; }

.cn-spin-btn {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 14.5px;
	padding: 13px 20px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base-2);
	transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.cn-spin-btn:hover { background: var(--wp--preset--color--accent-4); transform: translateY(-1px); }
.cn-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.cn-spin-fine-print {
	font-size: 11px;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 55%, transparent);
	margin-top: 12px;
}

.cn-spin-result { display: none; }
.cn-spin-result.visible { display: block; }
.cn-spin-result .cn-spin-eyebrow { color: var(--wp--preset--color--accent); }
.cn-spin-code-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--accent-2);
	border-radius: 6px;
	padding: 12px 16px;
	margin: 16px 0 18px;
}
.cn-spin-code-box code {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 19px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--contrast);
	flex: 1;
}
.cn-spin-copy-btn {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 12.5px;
	padding: 8px 14px;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--contrast);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.cn-spin-copy-btn:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.cn-spin-shop-btn {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 14.5px;
	padding: 13px 24px;
	border-radius: 6px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	text-decoration: none;
	transition: background 0.18s ease;
}
.cn-spin-shop-btn:hover { background: var(--wp--preset--color--contrast-2); }

@media (max-width: 560px) {
	.cn-spin-modal { padding: 32px 24px 28px; }
	.cn-spin-grid { grid-template-columns: 1fr; }
	.cn-spin-wheel-wrap { width: 200px; height: 200px; }
}

/* ============ Cart page (WooCommerce Cart block) ============ */
/* Targets WooCommerce Blocks' standard cart markup -- these class names are
   part of @woocommerce/blocks and stable across WooCommerce sites, not custom
   markup we control directly the way page content is. */
.wc-block-cart {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--contrast);
}
.wc-block-components-sidebar-layout {
	gap: 48px;
}
.wc-block-cart-items {
	border-top: none;
}
.wc-block-cart-items__header {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	text-transform: uppercase;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent);
}
.wc-block-cart-items__row {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 10%, transparent);
	padding: 24px 0;
}
.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 19px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--accent-4) !important;
	font-weight: 600;
	font-size: 12px;
}
.wc-block-components-quantity-selector {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: 6px;
}
.wc-block-cart__sidebar {
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 28%, white);
	border-radius: 10px;
	padding: 30px;
}
.wc-block-cart__totals-title,
.wc-block-cart__sidebar .wc-block-components-panel__button {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 21px;
}
.wc-block-components-totals-item__value {
	font-weight: 600;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 400;
}
.wc-block-cart__submit-button,
.wc-block-cart__submit-button:visited {
	background: var(--wp--preset--color--accent) !important;
	color: white !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	border: none !important;
}
.wc-block-cart__submit-button:hover {
	background: var(--wp--preset--color--accent-4) !important;
}

@media (max-width: 780px) {
	.wc-block-components-sidebar-layout { flex-direction: column; }
}

/* ============ Scroll reveal ============ */
/* .js-reveal-enabled is only added by scroll-reveal.js, so content never gets
   stuck invisible if JS fails to load -- progressive enhancement, not a risk. */
.js-reveal-enabled .cn-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal-enabled .cn-reveal.cn-revealed {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.js-reveal-enabled .cn-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ============ Post-order sizing reminder (thank-you page) ============ */
.cn-sizing-reminder {
	background: var(--wp--preset--color--accent-2);
	border-radius: 8px;
	padding: 28px 32px;
	margin: 32px 0;
	max-width: 640px;
}
.cn-sizing-reminder .cn-eyebrow { margin: 0 0 8px; }
.cn-sizing-reminder h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 22px;
	margin: 0 0 10px;
	color: var(--wp--preset--color--contrast);
}
.cn-sizing-reminder p {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 18px;
}
.cn-sizing-reminder .cn-btn-primary-inline {
	display: inline-block;
	background: var(--wp--preset--color--accent);
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	border-radius: 6px;
	transition: background 0.18s ease, transform 0.18s ease;
}
.cn-sizing-reminder .cn-btn-primary-inline:hover {
	background: var(--wp--preset--color--accent-4);
	transform: translateY(-1px);
}
