/* Word of Life Gift Finder */
.wlgf {
	--wlgf-accent: #670769;
	--wlgf-soft: color-mix(in srgb, var(--wlgf-accent) 7%, #fff);
	--wlgf-line: color-mix(in srgb, var(--wlgf-accent) 18%, #fff);
	--wlgf-text: #2d3748;
	--wlgf-muted: #5f6b7a;
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto 2.5rem;
	padding: clamp(20px, 4vw, 40px);
	background: linear-gradient(160deg, var(--wlgf-soft), #fff 70%);
	border: 1px solid var(--wlgf-line);
	border-radius: 24px;
	color: var(--wlgf-text);
	scroll-margin-top: 90px;
}
.wlgf *, .wlgf *::before, .wlgf *::after { box-sizing: border-box; }
.wlgf [hidden] { display: none !important; }

.wlgf-head { text-align: center; margin-bottom: 1.25rem; }
.wlgf-title { color: var(--wlgf-accent); margin: 0 0 .4rem; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; }
.wlgf-intro { margin: 0 auto; max-width: 34em; color: var(--wlgf-muted); }

.wlgf-progress { display: flex; justify-content: center; gap: 8px; margin: 0 0 1rem; }
.wlgf-dot { width: 36px; height: 6px; border-radius: 3px; background: var(--wlgf-line); transition: background .2s; }
.wlgf-dot.is-on { background: var(--wlgf-accent); }

.wlgf-step { text-align: center; animation: wlgf-in .25s ease; }
.wlgf-count { margin: 0; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--wlgf-muted); font-style: normal; }
.wlgf-question { margin: .2rem 0 1.1rem; font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--wlgf-text); outline: none; }

.wlgf-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wlgf .wlgf-option {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	min-height: 104px; padding: 14px 10px; margin: 0;
	background: #fff; color: var(--wlgf-text);
	border: 2px solid var(--wlgf-line); border-radius: 18px;
	font: inherit; font-size: 1rem; line-height: 1.25; text-transform: none; letter-spacing: normal;
	cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
	transition: border-color .15s, transform .15s, box-shadow .15s, background .15s;
}
.wlgf .wlgf-option:hover { border-color: var(--wlgf-accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .07); background: #fff; color: var(--wlgf-text); }
.wlgf .wlgf-option:focus-visible { outline: 3px solid var(--wlgf-accent); outline-offset: 2px; }
.wlgf .wlgf-option[aria-pressed="true"] { border-color: var(--wlgf-accent); background: var(--wlgf-soft); }
.wlgf-option__icon { font-size: 1.9rem; line-height: 1; font-style: normal; }
.wlgf-option__label { font-weight: 600; }

.wlgf .wlgf-back, .wlgf .wlgf-link {
	background: none; border: 0; padding: 6px 4px; margin: 1rem 0 0; box-shadow: none;
	color: var(--wlgf-accent); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-transform: none;
}
.wlgf .wlgf-back:hover, .wlgf .wlgf-link:hover { background: none; color: var(--wlgf-accent); text-decoration-thickness: 2px; }

/* Results */
.wlgf-results__head { text-align: center; margin-bottom: 1rem; }
.wlgf-results__title { margin: 0; color: var(--wlgf-accent); font-size: clamp(1.4rem, 3.5vw, 1.8rem); outline: none; }
.wlgf-results__answers { margin: .25rem 0 0; color: var(--wlgf-muted); }
.wlgf-results__actions { display: flex; justify-content: center; gap: 18px; }
.wlgf-results__actions .wlgf-link { margin-top: .25rem; }

.wlgf-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 2rem 0; color: var(--wlgf-muted); }
.wlgf-spinner { width: 20px; height: 20px; border: 3px solid var(--wlgf-line); border-top-color: var(--wlgf-accent); border-radius: 50%; animation: wlgf-spin .8s linear infinite; }

.wlgf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 1.25rem; }
.wlgf .wlgf-chip {
	padding: 7px 14px; margin: 0; border-radius: 999px; border: 1px solid var(--wlgf-line);
	background: #fff; color: var(--wlgf-text); font: inherit; font-size: .9rem; cursor: pointer; text-transform: none; box-shadow: none;
}
.wlgf .wlgf-chip:hover { border-color: var(--wlgf-accent); background: #fff; color: var(--wlgf-text); }
.wlgf .wlgf-chip[aria-pressed="true"] { background: var(--wlgf-accent); border-color: var(--wlgf-accent); color: #fff; }

.wlgf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.wlgf-card { margin: 0; padding: 0; animation: wlgf-in .25s ease; }
.wlgf-card__link {
	display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px;
	background: #fff; border: 1px solid var(--wlgf-line); border-radius: 18px;
	color: var(--wlgf-text); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.wlgf-card__link:hover, .wlgf-card__link:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .08); color: var(--wlgf-text); }
.wlgf-card__link:focus-visible { outline: 3px solid var(--wlgf-accent); outline-offset: 2px; }
.wlgf-card__img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--wlgf-soft); margin-bottom: 10px; }
.wlgf-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.wlgf-card__name { font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.wlgf-card__price { color: var(--wlgf-muted); font-size: .95rem; margin-bottom: 10px; }
.wlgf-card__price del { opacity: .7; margin-right: 4px; }
.wlgf-card__price ins { text-decoration: none; color: var(--wlgf-accent); font-weight: 600; }
.wlgf-card__cta { margin-top: auto; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--wlgf-accent); color: #fff; font-size: .88rem; font-style: normal; }

.wlgf-card--giftcard .wlgf-card__link { align-items: center; justify-content: center; text-align: center; background: var(--wlgf-soft); border-style: dashed; padding: 20px 14px; }
.wlgf-card__gift { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.wlgf-card__text { color: var(--wlgf-muted); font-size: .92rem; margin-bottom: 8px; }
.wlgf-card--giftcard .wlgf-card__cta { align-self: center; }

.wlgf-empty { text-align: center; padding: 1rem 0; color: var(--wlgf-muted); }
.wlgf .wlgf-button, .wlgf-cta {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; margin: 0; border: 2px solid var(--wlgf-accent, #670769); border-radius: 999px;
	background: var(--wlgf-accent, #670769); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-transform: none; box-shadow: none;
}
.wlgf .wlgf-button:hover, .wlgf-cta:hover { filter: brightness(1.1); color: #fff; }
.wlgf .wlgf-button--ghost { display: flex; margin: 1.5rem auto 0; background: #fff; color: var(--wlgf-accent); }
.wlgf .wlgf-button--ghost:hover { background: var(--wlgf-soft); color: var(--wlgf-accent); filter: none; }
.wlgf-error { grid-column: 1 / -1; text-align: center; color: #9b1c1c; }
.wlgf-custom-note { text-align: center; margin: 1.75rem 0 0; color: var(--wlgf-muted); font-size: .95rem; }
.wlgf-custom-note a { color: var(--wlgf-accent); }

@media (max-width: 520px) {
	.wlgf { border-radius: 18px; }
	.wlgf-options { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wlgf .wlgf-option { min-height: 92px; }
	.wlgf-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wlgf-card__link { padding: 8px 8px 12px; border-radius: 14px; }
	.wlgf-card__name { font-size: .95rem; }
	.wlgf-card__cta { font-size: .8rem; padding: 6px 10px; }
}

@keyframes wlgf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes wlgf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.wlgf *, .wlgf *::before, .wlgf *::after { animation: none !important; transition: none !important; }
}

/* The theme sets line-height: 0 on text; give the quiz its own spacing. */
.wlgf { line-height: 1.45; }
.wlgf-title, .wlgf-results__title, .wlgf-question { line-height: 1.25; }
