/**
 * Hearts in a Jar Customizer — base styles.
 * "Warm, Sacred, Bold, Premium, Human, Faith-rooted."
 *
 * All colors/spacing/type are exposed as CSS variables on .hiaj-customizer
 * so a theme or child plugin can override them without touching this file —
 * either by redeclaring the variables on `.hiaj-customizer { ... }` in a
 * child stylesheet, or via an inline <style> block with higher specificity.
 */

.hiaj-customizer {
	/* Color palette: black, white, and grays. */
	--hiaj-color-bg: #ffffff;
	--hiaj-color-surface: #f9f9f9;
	--hiaj-color-ink: #000000;
	--hiaj-color-ink-soft: #555555;
	--hiaj-color-primary: #000000;
	--hiaj-color-primary-dark: #222222;
	--hiaj-color-accent: #333333;
	--hiaj-color-border: #dddddd;
	--hiaj-color-error: #cc0000;
	--hiaj-color-success: #008800;

	/* Type */
	--hiaj-font-heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
	--hiaj-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	/* Spacing scale */
	--hiaj-space-xs: 0.5rem;
	--hiaj-space-sm: 1rem;
	--hiaj-space-md: 1.75rem;
	--hiaj-space-lg: 2.75rem;
	--hiaj-space-xl: 4rem;

	--hiaj-radius: 10px;
	--hiaj-transition: 200ms ease;

	/* The actual max-width can be overridden via inline style */
	max-width: var(--hiaj-max-width, 720px);
	margin: 0 auto;
	padding: var(--hiaj-space-lg) var(--hiaj-space-md);
	background: var(--hiaj-color-bg);
	border-radius: var(--hiaj-radius);
	font-family: var(--hiaj-font-body);
	color: var(--hiaj-color-ink);
	box-sizing: border-box;
}

.hiaj-customizer *,
.hiaj-customizer *::before,
.hiaj-customizer *::after {
	box-sizing: inherit;
}

.hiaj-notice {
	padding: var(--hiaj-space-md);
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	background: var(--hiaj-color-surface);
	color: var(--hiaj-color-ink-soft);
	font-family: var(--hiaj-font-body);
}

.hiaj-form-title {
	font-family: var(--hiaj-font-heading);
	font-size: 2rem;
	font-weight: 400;
	text-align: center;
	margin: 0 0 var(--hiaj-space-lg);
	color: var(--hiaj-color-ink);
}

.hiaj-option-card__price {
	margin-top: 0.25rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--hiaj-color-primary);
}

.hiaj-preview__row--total {
	background: #fbf1e4;
}

.hiaj-preview__row--total dt,
.hiaj-preview__row--total dd {
	color: var(--hiaj-color-primary);
	font-weight: 700;
}

.hiaj-cart-summary__label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hiaj-color-ink-soft);
	margin-bottom: 0.25rem;
}

/* ---------- Progress ---------- */

.hiaj-progress {
	margin-bottom: var(--hiaj-space-lg);
}

.hiaj-progress__steps {
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: var(--hiaj-space-xs);
	margin: 0;
	padding: 0;
}

.hiaj-progress__step {
	flex: 1;
	text-align: center;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hiaj-color-ink-soft);
	position: relative;
	padding-top: var(--hiaj-space-sm);
}

.hiaj-progress__step::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--hiaj-color-border);
	transition: background var(--hiaj-transition);
}

.hiaj-progress__step.is-active::before {
	background: var(--hiaj-color-primary);
}

.hiaj-progress__step.is-complete::before {
	background: var(--hiaj-color-accent);
}

.hiaj-progress__step.is-active span {
	color: var(--hiaj-color-primary);
	font-weight: 600;
}

/* ---------- Steps ---------- */

.hiaj-step {
	display: none;
	animation: hiaj-fade-in 220ms ease;
}

.hiaj-step.is-active {
	display: block;
}

@keyframes hiaj-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hiaj-step__title {
	font-family: var(--hiaj-font-heading);
	font-size: 1.6rem;
	font-weight: 400;
	margin: 0 0 var(--hiaj-space-xs);
	color: var(--hiaj-color-ink);
}

.hiaj-step__subtitle {
	margin: 0 0 var(--hiaj-space-md);
	color: var(--hiaj-color-ink-soft);
	font-size: 0.95rem;
}

.hiaj-step__error {
	margin-top: var(--hiaj-space-sm);
	color: var(--hiaj-color-error);
	font-size: 0.875rem;
}

/* ---------- Option cards (Step 1 / Step 3) ---------- */

.hiaj-option-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--hiaj-space-sm);
}

.hiaj-option-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--hiaj-space-sm);
	background: var(--hiaj-color-surface);
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	cursor: pointer;
	transition: border-color var(--hiaj-transition), box-shadow var(--hiaj-transition);
}

.hiaj-option-card:hover {
	border-color: var(--hiaj-color-accent);
}

.hiaj-option-card input[type="radio"] {
	position: absolute;
	top: var(--hiaj-space-sm);
	right: var(--hiaj-space-sm);
	width: 18px;
	height: 18px;
	accent-color: var(--hiaj-color-primary);
}

.hiaj-option-card input[type="radio"]:checked ~ * {
	color: var(--hiaj-color-primary);
}

.hiaj-option-card:has(input:checked) {
	border-color: var(--hiaj-color-primary);
	box-shadow: 0 0 0 1px var(--hiaj-color-primary);
	background: #fff9f2;
}

.hiaj-option-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: calc(var(--hiaj-radius) - 4px);
	overflow: hidden;
	background: var(--hiaj-color-bg);
}

.hiaj-option-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hiaj-option-card--compact .hiaj-option-card__image {
	aspect-ratio: 16 / 10;
}

.hiaj-option-card__label {
	font-weight: 600;
	font-size: 0.95rem;
}

.hiaj-option-card__desc {
	font-size: 0.8rem;
	color: var(--hiaj-color-ink-soft);
}

/* ---------- Chips (Step 2) ---------- */

.hiaj-chip-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.hiaj-chip {
	position: relative;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--hiaj-color-border);
	border-radius: 999px;
	background: var(--hiaj-color-surface);
	cursor: pointer;
	font-size: 0.9rem;
	transition: border-color var(--hiaj-transition), background var(--hiaj-transition);
}

.hiaj-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hiaj-chip:has(input:checked) {
	border-color: var(--hiaj-color-primary);
	background: var(--hiaj-color-primary);
	color: #fff;
}

.hiaj-chip:hover {
	border-color: var(--hiaj-color-accent);
}

/* ---------- Note field (Step 4) ---------- */

.hiaj-field {
	display: flex;
	flex-direction: column;
}

.hiaj-textarea {
	width: 100%;
	padding: var(--hiaj-space-sm);
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	background: var(--hiaj-color-surface);
	font-family: var(--hiaj-font-body);
	font-size: 0.95rem;
	color: var(--hiaj-color-ink);
	resize: vertical;
	min-height: 120px;
}

.hiaj-textarea:focus {
	outline: none;
	border-color: var(--hiaj-color-primary);
	box-shadow: 0 0 0 1px var(--hiaj-color-primary);
}

.hiaj-char-count {
	align-self: flex-end;
	margin-top: 0.35rem;
	font-size: 0.75rem;
	color: var(--hiaj-color-ink-soft);
}

/* ---------- Preview (Step 5) ---------- */

/* ---------- Preview (Step 4 & 5) ---------- */

.hiaj-preview-container {
	margin: 0 0 var(--hiaj-space-lg);
}

.hiaj-preview-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--hiaj-space-md);
	background: #fbf1e4;
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	margin-bottom: var(--hiaj-space-md);
}

.hiaj-preview-summary__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.hiaj-preview-summary__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hiaj-color-ink-soft);
	font-weight: 600;
}

.hiaj-preview-summary__value {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--hiaj-color-primary);
}

.hiaj-preview-layout {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hiaj-space-md);
}

.hiaj-preview-box {
	background: var(--hiaj-color-surface);
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	padding: var(--hiaj-space-md);
	flex: 1 1 300px;
	display: flex;
	flex-direction: column;
}

.hiaj-preview-box__title {
	font-family: var(--hiaj-font-heading);
	font-size: 1.25rem;
	margin: 0 0 var(--hiaj-space-sm);
	padding-bottom: var(--hiaj-space-sm);
	border-bottom: 1px solid var(--hiaj-color-border);
	text-align: center;
}

.hiaj-preview-box__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hiaj-preview-jar-item {
	display: flex;
	justify-content: space-between;
	padding: var(--hiaj-space-xs) 0;
	border-bottom: 1px dashed var(--hiaj-color-border);
}

.hiaj-preview-jar-item:last-child {
	border-bottom: none;
}

.hiaj-preview-jar-item__label {
	font-weight: 600;
	color: var(--hiaj-color-ink-soft);
	font-size: 0.85rem;
	flex-shrink: 0;
	margin-right: 1rem;
}

.hiaj-preview-jar-item__value {
	text-align: right;
	font-weight: 500;
}

.hiaj-preview-jar-item__value--msg {
	text-align: left;
	font-style: italic;
	color: var(--hiaj-color-ink-soft);
	white-space: pre-wrap;
	margin: 0;
	margin-top: 0.25rem;
}

/* ---------- Cart step (Step 6) ---------- */

.hiaj-cart-summary {
	padding: var(--hiaj-space-md);
	background: var(--hiaj-color-surface);
	border: 1px solid var(--hiaj-color-border);
	border-radius: var(--hiaj-radius);
	text-align: center;
	margin-bottom: var(--hiaj-space-sm);
}

.hiaj-cart-summary__price {
	font-family: var(--hiaj-font-heading);
	font-size: 1.5rem;
	color: var(--hiaj-color-primary);
}

.hiaj-status {
	min-height: 1.2em;
	font-size: 0.9rem;
	text-align: center;
	margin-top: var(--hiaj-space-sm);
}

.hiaj-status.is-success {
	color: var(--hiaj-color-success);
}

.hiaj-status.is-error {
	color: var(--hiaj-color-error);
}

/* ---------- Navigation ---------- */

.hiaj-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--hiaj-space-sm);
	margin-top: var(--hiaj-space-lg);
	padding-top: var(--hiaj-space-md);
	border-top: 1px solid var(--hiaj-color-border);
}

.hiaj-btn {
	appearance: none;
	border: none;
	border-radius: 999px;
	padding: 0.85rem 2rem;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--hiaj-transition), opacity var(--hiaj-transition);
}

.hiaj-btn--primary {
	background: var(--hiaj-color-primary);
	color: #fff;
	margin-left: auto;
}

.hiaj-btn--primary:hover {
	background: var(--hiaj-color-primary-dark);
}

.hiaj-btn--ghost {
	background: transparent;
	color: var(--hiaj-color-ink-soft);
	border: 1px solid var(--hiaj-color-border);
}

.hiaj-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.hiaj-btn[hidden] {
	display: none;
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
	.hiaj-customizer {
		padding: var(--hiaj-space-md) var(--hiaj-space-sm);
	}

	.hiaj-progress__step span {
		display: none;
	}

	.hiaj-nav {
		flex-direction: column-reverse;
	}

	.hiaj-btn--primary {
		margin-left: 0;
		width: 100%;
	}

	.hiaj-btn--ghost {
		width: 100%;
	}
}

/* ---------- HTML Sticker Preview ---------- */
.hiaj-sticker-builder {
	display: inline-block;
	/* Base background with perfect SVG scalloped border */
	background-color: transparent;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320"><circle cx="160" cy="160" r="150" fill="none" stroke="%23231f20" stroke-width="14" stroke-dasharray="0 19.634" stroke-linecap="round" /><circle cx="160" cy="160" r="148" fill="%23fffce8" /><circle cx="160" cy="160" r="144" fill="none" stroke="%23231f20" stroke-width="1" /></svg>');
	background-size: cover;
	background-position: center;
	border-radius: 50%;
	width: 320px;
	height: 320px;
	padding: 2.2rem 1.8rem;
	box-shadow: 0 8px 25px rgba(0,0,0,0.12);
	position: relative;
	color: #231f20;
	box-sizing: border-box;
	margin: 0 auto;
	font-family: 'Inter', sans-serif;
}

.hiaj-sticker-builder::before {
	content: '';
	position: absolute;
	top: 10px; left: 10px; right: 10px; bottom: 10px;
	border-radius: 50%;
	/* Very subtle inner glow to give it depth */
	box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
	pointer-events: none;
	z-index: 1;
}

.hiaj-sticker-builder__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	text-align: center;
	position: relative;
	z-index: 2;
}

.hiaj-sticker-builder__heading-wrap {
	margin-bottom: 0.25rem;
}

.hiaj-sticker-builder__heading {
	font-family: 'Great Vibes', cursive;
	font-size: 2.6rem;
	font-weight: 400;
	line-height: 0.9;
	color: #111;
	letter-spacing: 0.02em;
	transform: rotate(-2deg);
}

.hiaj-sticker-builder__subheading {
	font-size: 0.65rem;
	font-weight: 500;
	margin-top: 0px;
	margin-left: 60px;
	font-family: 'Inter', sans-serif;
}

/* Elegant SVG Flourish Divider */
.hiaj-sticker-builder__divider {
	width: 80px;
	height: 12px;
	margin: 0.3rem auto;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M50 10 Q35 0 10 10 Q35 20 50 10 Q65 0 90 10 Q65 20 50 10" fill="none" stroke="%23231f20" stroke-width="1.5"/><circle cx="50" cy="10" r="2.5" fill="%23231f20"/></svg>');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.7;
}

.hiaj-sticker-builder__poem {
	font-size: 0.65rem;
	line-height: 1.4;
	margin: 0.1rem 0;
	font-weight: 400;
}

.hiaj-sticker-builder__colors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.3rem 0.8rem;
	margin: 0.4rem 0;
	width: 95%;
	font-size: 0.65rem;
	text-align: left;
}

.hiaj-sticker-color-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hiaj-sticker-color-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hiaj-sticker-color-icon svg {
	width: 14px;
	height: 14px;
	filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.hiaj-sticker-color-text {
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 0.04em;
	font-size: 0.65rem;
}

.hiaj-sticker-builder__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.2rem;
	font-size: 0.6rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	width: 85%;
}

.hiaj-sticker-builder__made-with,
.hiaj-sticker-builder__logo-text {
	text-align: right;
	line-height: 1.1;
}

.hiaj-sticker-builder__logo-text {
	text-align: left;
}

.hiaj-sticker-builder__footer-sub {
	font-family: 'Great Vibes', cursive;
	font-size: 0.85rem;
	margin-top: 0.2rem;
	line-height: 1;
	color: #333;
}

.hiaj-sticker-builder__colors {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem 0.8rem;
	margin: 0.5rem 0;
	width: 90%;
	font-size: 0.7rem;
	text-align: left;
}

.hiaj-sticker-color-row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.hiaj-sticker-color-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hiaj-sticker-color-icon svg {
	width: 12px;
	height: 12px;
}

.hiaj-sticker-color-text {
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.05em;
	font-size: 0.65rem;
}

.hiaj-sticker-builder__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
	font-size: 0.6rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-top: 1px solid rgba(0,0,0,0.1);
	padding-top: 0.5rem;
	width: 80%;
}

.hiaj-sticker-builder__made-with,
.hiaj-sticker-builder__logo-text {
	text-align: right;
	line-height: 1.2;
}

.hiaj-sticker-builder__logo-text {
	text-align: left;
}

.hiaj-sticker-builder__footer-sub {
	font-family: 'Great Vibes', cursive;
	font-size: 0.8rem;
	margin-top: 0.5rem;
	line-height: 1.1;
	color: #555;
}
/* ==========================================================================
   v1.1 — Brand alignment (Lwala / Hearts in a Jar) + live sticker + 12 notes
   ========================================================================== */
@font-face { font-family: 'HIAJ Script'; src: url(../fonts/alex-brush-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'HIAJ Sticker'; src: url(../fonts/poppins-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HIAJ Sticker'; src: url(../fonts/poppins-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'HIAJ Serif'; src: url(../fonts/cormorant-600.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: 'HIAJ Serif'; src: url(../fonts/cormorant-500-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'HIAJ Body'; src: url(../fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'HIAJ Body'; src: url(../fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

.hiaj-customizer {
	--hiaj-color-bg: #FFFFFF;
	--hiaj-color-surface: #F7F7F4;
	--hiaj-color-ink: #111111;
	--hiaj-color-ink-soft: #666666;
	--hiaj-color-primary: #111111;
	--hiaj-color-primary-dark: #333333;
	--hiaj-color-border: #E5E3DC;
	--hiaj-cream: #F8F5E4;
	--hiaj-font-heading: 'Cormorant', 'HIAJ Serif', Garamond, serif;
	--hiaj-font-body: 'Lato', 'HIAJ Body', -apple-system, 'Segoe UI', sans-serif;
	--hiaj-radius: 14px;
	--hiaj-max-width: 1160px !important;
}
.hiaj-customizer .hiaj-form-title { font-family: var(--hiaj-font-heading); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
.hiaj-customizer .hiaj-step__title { font-family: var(--hiaj-font-heading); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); }
.hiaj-customizer .hiaj-step__subtitle { color: var(--hiaj-color-ink-soft); max-width: 640px; }

/* Buttons: brand pills */
.hiaj-customizer .hiaj-btn { border-radius: 50px; font-family: var(--hiaj-font-body); font-weight: 700; letter-spacing: .8px; text-transform: uppercase; font-size: 12.5px; padding: 13px 28px; }
.hiaj-customizer .hiaj-btn--primary { background: #111111; color: #FFFFFF; border: 1px solid #111111; }
.hiaj-customizer .hiaj-btn--primary:hover { background: #333333; border-color: #333333; }
.hiaj-customizer .hiaj-btn--ghost { background: transparent; color: #111111; border: 1px solid #111111; }
.hiaj-customizer .hiaj-btn--ghost:hover { background: #111111; color: #FFFFFF; }
.hiaj-customizer .hiaj-btn--sm { padding: 8px 14px; font-size: 11px; letter-spacing: .5px; }

/* Journey / option cards */
.hiaj-customizer .hiaj-option-card { border-radius: 18px; border: 1px solid var(--hiaj-color-border); background: #FFFFFF; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.hiaj-customizer .hiaj-option-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.06); }
.hiaj-customizer .hiaj-option-card:has(input:checked) { border-color: #111111; box-shadow: 0 0 0 1px #111111, 0 10px 26px rgba(0,0,0,.08); background: var(--hiaj-cream); }
.hiaj-customizer .hiaj-option-card__label { font-family: var(--hiaj-font-heading); font-size: 1.45rem; font-weight: 700; }
.hiaj-customizer .hiaj-option-card__price { font-weight: 700; }

/* Progress */
.hiaj-customizer .hiaj-progress__step.is-active::before,
.hiaj-customizer .hiaj-progress__step.is-complete::before { background: #111111; border-color: #111111; }

/* Fields */
.hiaj-customizer .hiaj-field { margin-bottom: 1.4rem; }
.hiaj-customizer .hiaj-label { display: block; margin-bottom: .45rem; font-weight: 700; font-size: .92rem; }
.hiaj-customizer .hiaj-hint { font-weight: 400; color: var(--hiaj-color-ink-soft); font-size: .82rem; margin-left: .35rem; }
.hiaj-customizer .hiaj-input {
	width: 100%; padding: .75rem .95rem; border: 1px solid var(--hiaj-color-border); border-radius: 12px;
	background: #FFFFFF; font: inherit; color: var(--hiaj-color-ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.hiaj-customizer .hiaj-input:focus { outline: none; border-color: #111111; box-shadow: 0 0 0 3px rgba(17,17,17,.07); }
.hiaj-customizer .hiaj-input--area { resize: vertical; min-height: 64px; }
.hiaj-customizer .hiaj-input--label { text-transform: uppercase; letter-spacing: .08em; max-width: 280px; }
.hiaj-customizer .hiaj-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Notes step layout: fields + sticky live sticker */
.hiaj-notes-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr); gap: 2.5rem; align-items: start; }
.hiaj-notes-preview { position: sticky; top: 24px; background: var(--hiaj-color-surface); border: 1px solid var(--hiaj-color-border); border-radius: 22px; padding: 1.5rem; }
.hiaj-sticker-legend { margin: 1rem 0 0; font-size: .84rem; line-height: 1.55; color: var(--hiaj-color-ink-soft); text-align: center; }
.hiaj-sticker-legend strong { color: var(--hiaj-color-ink); }

/* Swatches */
.hiaj-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.hiaj-swatch { position: relative; display: grid; justify-items: center; gap: .4rem; padding: .8rem .3rem; border: 1px solid var(--hiaj-color-border); border-radius: 14px; background: #FFFFFF; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.hiaj-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hiaj-swatch__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); display: inline-block; flex: 0 0 auto; }
.hiaj-swatch__name { font-size: .8rem; font-weight: 700; }
.hiaj-swatch:hover { border-color: #999999; }
.hiaj-swatch:has(input:checked) { border-color: #111111; background: var(--hiaj-cream); box-shadow: 0 0 0 1px #111111; }
.hiaj-swatch:has(input:checked)::after { content: '✓'; position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 700; }
.hiaj-swatch:has(input:focus-visible) { outline: 2px solid #111111; outline-offset: 2px; }

/* Color panels with 12 notes */
.hiaj-color-panels { display: grid; gap: 1.2rem; }
.hiaj-color-panel { border: 1px solid var(--hiaj-color-border); border-left: 5px solid var(--swatch); border-radius: 16px; padding: 1.1rem 1.25rem 1.25rem; margin: 0; background: #FFFFFF; min-width: 0; }
.hiaj-color-panel[hidden] { display: none; }
.hiaj-color-panel__head { display: flex; align-items: center; gap: .6rem; width: 100%; padding: 0; font-family: var(--hiaj-font-heading); font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; float: left; }
.hiaj-color-panel__head .hiaj-swatch__dot { width: 18px; height: 18px; }
.hiaj-color-panel__head + * { clear: both; }
.hiaj-color-panel__count { margin-left: auto; font-family: var(--hiaj-font-body); font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 50px; background: var(--hiaj-color-surface); border: 1px solid var(--hiaj-color-border); }
.hiaj-color-panel__count.is-complete { background: #111111; color: #FFFFFF; border-color: #111111; }
.hiaj-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.hiaj-notes-head .hiaj-label { margin: 0; }
.hiaj-notes-list { margin: 0; padding: 0; list-style: none; counter-reset: note; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .75rem; }
.hiaj-notes-list li { counter-increment: note; position: relative; }
.hiaj-notes-list li::before { content: counter(note); position: absolute; left: .7rem; top: .78rem; font-size: .72rem; font-weight: 700; color: #999999; pointer-events: none; }
.hiaj-customizer .hiaj-note { padding-left: 1.9rem; min-height: 46px; resize: none; line-height: 1.4; font-size: .9rem; overflow: hidden; }

/* Live sticker (matches the printed Hearts in a Jar sticker) */
.hiaj-sticker { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; container-type: inline-size; margin: 0 auto; color: #231F20; font-family: 'HIAJ Sticker', 'Poppins', sans-serif; user-select: none; filter: drop-shadow(0 12px 22px rgba(0,0,0,.12)); }
.hiaj-sticker__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hiaj-sticker__title { position: absolute; left: 10%; right: 10%; top: 15%; height: 11%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: 'HIAJ Script', 'Alex Brush', cursive; font-size: 9.3cqw; line-height: 1; white-space: nowrap; overflow: hidden; -webkit-text-stroke: .28cqw currentColor; paint-order: stroke fill; }
.hiaj-sticker__sub { position: absolute; left: 22%; right: 22%; top: 30%; text-align: center; font-size: 3.55cqw; line-height: 1.15; letter-spacing: .01em; }
.hiaj-sticker__legend { position: absolute; left: 24.2%; width: 57%; top: 39%; height: 22.5%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 7.8cqw; align-content: center; column-gap: 0; }
.hiaj-sticker__legend li { display: flex; align-items: center; gap: 1.7cqw; font-size: 3.7cqw; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; min-width: 0; margin: 0; }
.hiaj-sticker__legend li span { overflow: hidden; text-overflow: ellipsis; }
.hiaj-sticker__legend em { font-style: normal; opacity: .45; }
.hiaj-sticker__heart { width: 4.6cqw; height: 4.2cqw; flex: 0 0 auto; }
.hiaj-sticker__closing { position: absolute; left: 24%; right: 24%; top: 62.3%; text-align: center; font-size: 3.55cqw; line-height: 1.1; }
.hiaj-sticker.is-empty .hiaj-sticker__legend::before { content: 'Choose your heart colors'; grid-column: 1 / -1; text-align: center; font-size: 3.2cqw; opacity: .45; font-style: italic; }

/* Preview step */
.hiaj-customizer .hiaj-preview__row-notes .hiaj-sticker { max-width: 360px; }
.hiaj-preview-notes { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; width: 100%; }
.hiaj-preview-notes details { border: 1px solid var(--hiaj-color-border); border-radius: 12px; padding: .7rem .9rem; background: #FFFFFF; }
.hiaj-preview-notes summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; }
.hiaj-preview-notes summary::-webkit-details-marker { display: none; }
.hiaj-preview-notes summary .hiaj-sticker__heart { width: 20px; height: 18px; }
.hiaj-preview-notes summary span { margin-left: auto; font-size: .8rem; color: var(--hiaj-color-ink-soft); }
.hiaj-preview-notes ol { margin: .7rem 0 0 1.2rem; padding: 0; font-size: .88rem; line-height: 1.5; color: #333333; }

/* Responsive */
@media (max-width: 900px) {
	.hiaj-notes-layout { grid-template-columns: 1fr; }
	.hiaj-notes-preview { position: static; order: -1; }
	.hiaj-notes-preview .hiaj-sticker { max-width: 300px; }
}
@media (max-width: 600px) {
	.hiaj-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hiaj-field-row, .hiaj-notes-list { grid-template-columns: 1fr; }
}

/* Screen-reader-only live announcements; softer placeholders */
.hiaj-customizer .hiaj-live-region { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hiaj-customizer .hiaj-input::placeholder { color: #A3A3A3; opacity: 1; }
.hiaj-customizer .hiaj-step__error { margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #FBEAEA; color: #8A1F1F; font-size: .9rem; }
