/*
 * Find Your Zol - customer-facing styles.
 *
 * Written to sit inside the existing Amazol page rather than announce itself:
 * the sage/cream palette, the outlined pill treatment and the generous
 * whitespace all come from the surrounding design. No gradients, no confetti,
 * no all-caps shouting. Every interactive target is at least 48px.
 */

.amzmm {
	--amzmm-ground: #f4f5ef;
	--amzmm-card: #ffffff;
	--amzmm-ink: #14170f;
	--amzmm-muted: #5f6353;
	--amzmm-accent: #6b704f;
	--amzmm-accent-soft: #e7e9dd;
	--amzmm-line: #d5d8c6;
	--amzmm-focus: #2f6b45;
	--amzmm-radius: 999px;
	--amzmm-card-radius: 14px;

	background: var(--amzmm-ground);
	color: var(--amzmm-ink);
	padding: clamp(40px, 7vw, 88px) 20px;
	font-size: 16px;
	line-height: 1.55;
	position: relative;
	overflow: hidden;

	/* Breathing room when reveal() anchors the section to the top of the
	 * viewport after a view change. There is no fixed or sticky header on this
	 * site, so this only has to clear the edge of the screen. */
	scroll-margin-top: 24px;
}

/* A single, quiet leaf motif. Decorative only, hidden from assistive tech. */
.amzmm::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -40px;
	width: 260px;
	height: 260px;
	background-repeat: no-repeat;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6c14 20 30 28 44 30-14 2-30 10-44 30C36 46 20 38 6 36c14-2 30-10 44-30z' fill='%236b704f' fill-opacity='.07'/%3E%3C/svg%3E");
	pointer-events: none;
}

.amzmm__inner {
	max-width: 1120px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.amzmm__lead { max-width: 620px; margin-bottom: clamp(20px, 3vw, 32px); }

.amzmm__eyebrow {
	margin: 0 0 6px;
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--amzmm-accent);
}

.amzmm__title {
	margin: 0 0 10px;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 600;
}

.amzmm__intro { margin: 0; color: var(--amzmm-muted); max-width: 52ch; }

/* --- questions ---------------------------------------------------------- */

.amzmm__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.amzmm__legend {
	padding: 0;
	margin: 0 0 14px;
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 600;
}

.amzmm__chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* The radio stays in the accessibility tree and drives the label's state. */
.amzmm__radio {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.amzmm__chip,
.amzmm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--amzmm-line);
	border-radius: var(--amzmm-radius);
	background: transparent;
	color: var(--amzmm-ink);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	text-align: center;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.amzmm__chip:hover,
.amzmm__btn:hover { border-color: var(--amzmm-accent); background: var(--amzmm-accent-soft); }

.amzmm__radio:checked + .amzmm__chip,
.amzmm__chip[aria-pressed="true"] {
	background: var(--amzmm-accent);
	border-color: var(--amzmm-accent);
	color: #fff;
}

.amzmm__radio:focus-visible + .amzmm__chip,
.amzmm__chip:focus-visible,
.amzmm__btn:focus-visible,
.amzmm select:focus-visible,
.amzmm input:focus-visible {
	outline: 3px solid var(--amzmm-focus);
	outline-offset: 2px;
}

.amzmm__btn--primary {
	background: var(--amzmm-accent);
	border-color: var(--amzmm-accent);
	color: #fff;
}

.amzmm__btn--primary:hover { background: #5a5f42; border-color: #5a5f42; }

.amzmm__btn--quiet { border-color: transparent; text-decoration: underline; padding-inline: 12px; }

.amzmm__btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- progress + controls ------------------------------------------------ */

.amzmm__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-bottom: 16px;
}

.amzmm__step { font-size: 14px; color: var(--amzmm-muted); }

.amzmm__track { flex: 1 1 140px; height: 4px; background: var(--amzmm-line); border-radius: 2px; overflow: hidden; min-width: 120px; }
.amzmm__fill { display: block; height: 100%; background: var(--amzmm-accent); transition: width .2s ease; }

.amzmm__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.amzmm__budget { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; }
.amzmm__budget label { display: block; font-size: 14px; color: var(--amzmm-muted); margin-bottom: 6px; }
.amzmm__budget input {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--amzmm-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	width: 160px;
	color: var(--amzmm-ink);
}

/* --- results ------------------------------------------------------------ */

.amzmm__results { margin-top: 8px; }

.amzmm__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

@media (min-width: 720px) {
	.amzmm__grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
	.amzmm__grid > li:first-child { grid-column: span 3; }
}

@media (min-width: 1000px) {
	.amzmm__grid > li:first-child { grid-column: span 1; }
}

.amzmm__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--amzmm-card);
	border: 1px solid var(--amzmm-line);
	border-radius: var(--amzmm-card-radius);
	overflow: hidden;
}

.amzmm__card--hero { border-color: var(--amzmm-accent); }

.amzmm__tag {
	align-self: flex-start;
	margin: 14px 14px 0;
	padding: 4px 12px;
	border-radius: var(--amzmm-radius);
	background: var(--amzmm-accent-soft);
	color: var(--amzmm-accent);
	font-size: 12px;
	letter-spacing: .04em;
}

.amzmm__media { display: block; margin: 12px 14px 0; aspect-ratio: 1 / 1; background: var(--amzmm-ground); border-radius: 10px; overflow: hidden; }
.amzmm__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.amzmm__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.amzmm__name { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; }
.amzmm__name a { color: inherit; text-decoration: none; }
.amzmm__name a:hover { text-decoration: underline; }

.amzmm__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 600; }
.amzmm__was { font-size: 14px; font-weight: 400; color: var(--amzmm-muted); text-decoration: line-through; }

.amzmm__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.amzmm__fact {
	font-size: 12px;
	padding: 4px 10px;
	border: 1px solid var(--amzmm-line);
	border-radius: var(--amzmm-radius);
	color: var(--amzmm-muted);
}
.amzmm__fact--stock { color: var(--amzmm-focus); border-color: #bcd6c6; }

.amzmm__why { margin: 0; font-size: 14px; color: var(--amzmm-muted); }
.amzmm__why strong { color: var(--amzmm-ink); font-weight: 600; }
.amzmm__why ul { margin: 6px 0 0; padding-left: 18px; }
.amzmm__why li { margin-bottom: 2px; }

.amzmm__strain { display: flex; flex-direction: column; gap: 6px; }
.amzmm__strain label { font-size: 13px; color: var(--amzmm-muted); }
.amzmm__strain select {
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--amzmm-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: var(--amzmm-ink);
	width: 100%;
}
.amzmm__strain--needed select { border-color: #b0552f; }

.amzmm__cardactions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.amzmm__cardactions .amzmm__btn { flex: 1 1 auto; }

.amzmm__note { margin: 0; font-size: 13px; color: #8a3427; }

/* --- refine ------------------------------------------------------------- */

.amzmm__refine { border-top: 1px solid var(--amzmm-line); margin-top: 24px; padding-top: 20px; }
.amzmm__refine .amzmm__fieldset + .amzmm__fieldset { margin-top: 20px; }

.amzmm__box {
	margin-top: 20px;
	padding: 16px;
	border: 1px dashed var(--amzmm-line);
	border-radius: var(--amzmm-card-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
}
.amzmm__box p { margin: 0; color: var(--amzmm-muted); font-size: 14px; }

.amzmm__empty { padding: 24px; background: var(--amzmm-card); border: 1px solid var(--amzmm-line); border-radius: var(--amzmm-card-radius); }
.amzmm__empty p { margin: 0 0 8px; }

.amzmm__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.amzmm__noscript { margin: 14px 0 0; color: var(--amzmm-muted); font-size: 14px; }

/* Nothing here is load-bearing, so it all goes when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
	.amzmm *,
	.amzmm *::before,
	.amzmm *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (max-width: 480px) {
	.amzmm { padding-inline: 16px; }
	.amzmm__chip, .amzmm__btn { width: 100%; }
	.amzmm__chips { gap: 8px; }
	.amzmm__budget input { width: 100%; }
}

/* --- Zol Box -------------------------------------------------------------
 *
 * The box view is the results view wearing a different hat: same tokens, same
 * chips, same 48px targets. It is a list rather than a grid on purpose - a box
 * is one thing made of parts, and a row per part reads as a basket where a
 * card grid would read as three more products to choose between.
 */

.amzmm__tiers { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 20px; }

.amzmm__boxhead {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--amzmm-line);
}

.amzmm__boxtotal { font-size: 20px; font-weight: 600; }
.amzmm__boxtotal span { font-weight: 400; color: var(--amzmm-muted); font-size: 15px; }
.amzmm__boxleft { font-size: 14px; color: var(--amzmm-muted); }

.amzmm__meter { width: 100%; height: 6px; background: var(--amzmm-line); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.amzmm__meter span { display: block; height: 100%; background: var(--amzmm-accent); transition: width .2s ease; }

.amzmm__box-list { list-style: none; margin: 0; padding: 0; }

.amzmm__row {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--amzmm-line);
	align-items: start;
}

.amzmm__row-media {
	width: 72px; height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--amzmm-card);
	border: 1px solid var(--amzmm-line);
}
.amzmm__row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.amzmm__row-slot {
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--amzmm-accent);
	margin: 0 0 2px;
}

.amzmm__row-name { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.amzmm__row-name a { color: inherit; text-decoration: none; }
.amzmm__row-name a:hover { text-decoration: underline; }

.amzmm__row-price { font-weight: 600; margin: 0 0 8px; }
.amzmm__row-price .amzmm__was { margin-left: 8px; }

.amzmm__row-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.amzmm__row-foot .amzmm__btn { min-height: 48px; padding-inline: 18px; }

.amzmm__row--changed { background: #fdf7ef; border-radius: 10px; padding-inline: 12px; }
.amzmm__row--changed .amzmm__row-slot { color: #8a5a27; }

.amzmm__boxnote { margin: 14px 0 0; font-size: 14px; color: #8a3427; }
.amzmm__boxnote--ok { color: var(--amzmm-focus); }

.amzmm__boxactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.amzmm__confirm {
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid #d9c08f;
	background: #fdf7ef;
	border-radius: var(--amzmm-card-radius);
}
.amzmm__confirm p { margin: 0 0 10px; font-size: 14px; }
.amzmm__confirm ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }

@media (max-width: 480px) {
	.amzmm__row { grid-template-columns: 56px 1fr; gap: 10px; }
	.amzmm__row-media { width: 56px; height: 56px; }
	.amzmm__row-foot .amzmm__btn { width: 100%; }
	.amzmm__boxactions .amzmm__btn { width: 100%; }
}

/* --- product-page prompt ---------------------------------------------------
 *
 * One line under the add-to-cart form. It borrows the section's palette but
 * none of its weight: no panel, no background, nothing that competes with the
 * button above it. Normal document flow, so it cannot collide with the site's
 * sticky cart bar.
 */

.amzmm-prompt {
	--amzmm-muted: #5f6353;
	--amzmm-accent: #6b704f;
	--amzmm-focus: #2f6b45;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 16px 0 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--amzmm-muted);
}

.amzmm-prompt__q { color: inherit; }

.amzmm-prompt__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 0;
	color: var(--amzmm-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.amzmm-prompt__link:hover,
.amzmm-prompt__link:focus-visible { color: var(--amzmm-focus); }

.amzmm-prompt__link:focus-visible {
	outline: 3px solid var(--amzmm-focus);
	outline-offset: 3px;
	text-decoration: none;
}

@media (max-width: 480px) {
	.amzmm-prompt { gap: 2px 8px; }
}
