/* ==========================================================================
   Lumiére Fit
   Inherits the theme's design tokens, with safe fallbacks if used elsewhere.
   ========================================================================== */

.lfit {
	--lf-ink:    var(--wp--preset--color--noir, #1A1416);
	--lf-ox:     var(--wp--preset--color--oxblood, #3E1012);
	--lf-gold:   var(--wp--preset--color--gold, #A98149);
	--lf-line:   var(--wp--preset--color--line, #E3D8D2);
	--lf-blush:  var(--wp--preset--color--blush, #F5EBE6);
	--lf-muted:  var(--wp--preset--color--smoke, #7A6B6E);
	--lf-paper:  var(--wp--preset--color--white, #fff);
	--lf-radius: 10px;
	color: var(--lf-ink);
}

.lfit__title {
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 500;
	line-height: 1.12;
	margin: 0 0 .75rem;
	letter-spacing: -.015em;
}
.lfit__sub {
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.2rem; font-weight: 500;
	margin: 2.25rem 0 .85rem;
}
.lfit__intro { color: var(--lf-muted); max-width: 60ch; margin: 0 0 2rem; }
.lfit__note { font-size: .82rem; color: var(--lf-muted); margin: 0 0 1rem; }

/* --------------------------------------------------------------------------
   Calculator form
   -------------------------------------------------------------------------- */

.lfit--calc {
	background: var(--lf-paper);
	border: 1px solid var(--lf-line);
	border-radius: var(--lf-radius);
	padding: clamp(1.25rem, 4vw, 2.5rem);
}
/* On the dark CTA panel the card becomes near-solid: a translucent card over
   oxblood left the result text far too low-contrast to read. */
.lfit--calc.is-compact {
	background: #FBF8F5;
	border-color: rgba(255, 255, 255, .18);
	color: var(--lf-ink);
	box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55);
}
.lfit--calc.is-compact .lfit__label { color: var(--lf-muted); }
.lfit--calc.is-compact .lfit__tip { color: var(--lf-muted); }
.lfit--calc.is-compact .lfit__input input {
	background: #fff;
	border-color: var(--lf-line);
	color: var(--lf-ink);
}
.lfit--calc.is-compact .lfit__input input::placeholder { color: #A89C9E; }
.lfit--calc.is-compact .lfit__input em { color: var(--lf-muted); }
.lfit--calc.is-compact .lfit__submit { background: var(--lf-ox); color: #fff; }
.lfit--calc.is-compact .lfit__submit:hover { background: #6B2029; }
.lfit--calc.is-compact .lfit__hero { background: var(--lf-blush); }
.lfit--calc.is-compact .lfit__herosize { color: var(--lf-ox); }
.lfit--calc.is-compact .lfit__info { color: var(--lf-muted); }
.lfit--calc.is-compact .lfit__sysgrid > div { border-color: var(--lf-line); }
.lfit--calc.is-compact .lfit__sisters li { border-color: var(--lf-line); }
.lfit--calc.is-compact .lfit__notes { border-top-color: var(--lf-line); }
.lfit--calc.is-compact .lfit__btn--ghost { color: var(--lf-ox); border-color: var(--lf-ox); }

/* The result pane carries an image so it does not read as an empty box. */
.lfit__resultmedia {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: 50% 38%;
	border-radius: var(--lf-radius);
	margin-bottom: 1.25rem;
}
@media (min-width: 700px) {
	.lfit__resultmedia { aspect-ratio: 21 / 9; }
}

.lfit__fields { display: grid; gap: 1.1rem; }
@media (min-width: 600px) {
	.lfit__fields { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
}

.lfit__field { display: block; }
.lfit__label {
	display: flex; align-items: center; gap: .45rem;
	font-size: .76rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--lf-muted);
	margin-bottom: .5rem;
}
.lfit__label small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .8; }

.lfit__info {
	width: 17px; height: 17px; border-radius: 999px;
	border: 1px solid currentColor; background: transparent;
	color: inherit; font-size: .62rem; line-height: 1; cursor: pointer;
	display: inline-grid; place-items: center; padding: 0;
	flex: 0 0 auto;
}
.lfit__info:hover { background: var(--lf-ox); border-color: var(--lf-ox); color: #fff; }

.lfit__input { position: relative; display: block; }
.lfit__input input {
	width: 100%;
	border: 1px solid var(--lf-line);
	border-radius: 6px;
	background: transparent;
	padding: .95rem 3rem .95rem 1rem;
	font-size: 1.05rem; font-family: inherit; color: inherit;
	-moz-appearance: textfield;
	transition: border-color .16s ease, box-shadow .16s ease;
}
.lfit__input input::-webkit-outer-spin-button,
.lfit__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lfit__input input:focus {
	outline: none;
	border-color: var(--lf-ox);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-ox) 14%, transparent);
}
.lfit__input em {
	position: absolute; inset-inline-end: 1rem; top: 50%;
	transform: translateY(-50%);
	font-style: normal; font-size: .85rem; color: var(--lf-muted);
	pointer-events: none;
}

.lfit__tip {
	display: block; margin-top: .5rem;
	font-size: .78rem; line-height: 1.5; color: var(--lf-muted);
	padding-inline-start: .75rem;
	border-inline-start: 2px solid var(--lf-gold);
}

.lfit__submit {
	margin-top: 1.5rem;
	width: 100%;
	border: 0; border-radius: 999px; cursor: pointer;
	background: var(--lf-ox); color: #fff;
	padding: 1.1rem 2rem;
	font-size: .78rem; font-weight: 700; font-family: inherit;
	text-transform: uppercase; letter-spacing: .16em;
	position: relative;
	transition: background-color .25s ease;
}
.lfit__submit:hover { background: #6B2029; }
.lfit__submit:disabled { opacity: .65; cursor: default; }
.lfit__submit.is-loading { color: transparent; }
.lfit__submit.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 17px; height: 17px; border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
	animation: lfit-spin .7s linear infinite;
}
@keyframes lfit-spin { to { transform: rotate(360deg); } }

.lfit__error {
	margin-top: 1rem; padding: .85rem 1.1rem;
	background: #FBEDEE; border-inline-start: 3px solid #8E2230;
	border-radius: 4px; font-size: .86rem; color: #6B1A25;
}

/* --------------------------------------------------------------------------
   Result
   -------------------------------------------------------------------------- */

.lfit__result { margin-top: 2rem; }

.lfit__hero {
	background: var(--lf-blush);
	border-radius: var(--lf-radius);
	padding: clamp(1.5rem, 5vw, 2.5rem);
	text-align: center;
	display: grid; gap: .4rem;
}
.lfit__herolabel {
	font-size: .72rem; text-transform: uppercase;
	letter-spacing: .26em; color: var(--lf-gold); font-weight: 600;
}
.lfit__herosize {
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(3rem, 12vw, 5rem);
	line-height: 1; font-weight: 500;
	color: var(--lf-ox);
	letter-spacing: -.02em;
}
.lfit__heroknick, .lfit__heroavail { font-size: .85rem; color: var(--lf-muted); }
.lfit__heroavail { font-weight: 600; color: var(--lf-ink); }

.lfit__systems { margin-top: 2rem; }
.lfit__systems h3,
.lfit__sisters h3 {
	font-size: .74rem; text-transform: uppercase;
	letter-spacing: .16em; font-weight: 600;
	color: var(--lf-muted); margin: 0 0 .9rem;
}
.lfit__sysgrid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: .6rem;
}
.lfit__sysgrid > div {
	border: 1px solid var(--lf-line); border-radius: 6px;
	padding: .8rem .6rem; text-align: center;
}
.lfit__sysgrid span {
	display: block; font-size: .66rem; text-transform: uppercase;
	letter-spacing: .1em; color: var(--lf-muted); margin-bottom: .3rem;
}
.lfit__sysgrid strong { font-size: 1.05rem; font-weight: 600; }

.lfit__sisters { margin-top: 2rem; }
.lfit__sisters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.lfit__sisters li {
	display: grid; grid-template-columns: auto 1fr; gap: 1rem;
	align-items: center;
	border: 1px solid var(--lf-line); border-radius: 8px;
	padding: .9rem 1.1rem;
}
.lfit__sisters li strong {
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.4rem; font-weight: 500; min-width: 3.5rem;
}
.lfit__sisters li span { font-size: .82rem; color: var(--lf-muted); line-height: 1.5; }
.lfit__sisters li.is-tighter { border-inline-start: 3px solid var(--lf-gold); }
.lfit__sisters li.is-looser  { border-inline-start: 3px solid var(--lf-ox); }

.lfit__notes { margin-top: 1.5rem; border-top: 1px solid var(--lf-line); }
.lfit__notes summary {
	cursor: pointer; list-style: none;
	padding: 1.1rem 0; font-weight: 600; font-size: .9rem;
	position: relative; padding-inline-end: 2rem;
}
.lfit__notes summary::-webkit-details-marker { display: none; }
.lfit__notes summary::after {
	content: ""; position: absolute; inset-inline-end: .25rem; top: 50%;
	width: 9px; height: 9px;
	border-inline-end: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform .25s ease;
}
.lfit__notes[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.lfit__notes ul { margin: 0 0 1.25rem; padding-inline-start: 1.1rem; }
.lfit__notes li { font-size: .86rem; color: var(--lf-muted); line-height: 1.6; margin-block: .5rem; }

.lfit__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.lfit__btn {
	display: inline-block; text-decoration: none; cursor: pointer;
	border: 1px solid var(--lf-ox); border-radius: 999px;
	background: var(--lf-ox); color: #fff;
	padding: .95rem 1.8rem;
	font-size: .74rem; font-weight: 700; font-family: inherit;
	text-transform: uppercase; letter-spacing: .14em;
	transition: all .2s ease;
}
.lfit__btn:hover { background: #6B2029; border-color: #6B2029; color: #fff; }
.lfit__btn--ghost { background: transparent; color: var(--lf-ox); }
.lfit__btn--ghost:hover { background: var(--lf-ox); color: #fff; }
.lfit__btn:disabled { opacity: .5; cursor: default; }

.lfit__saved { font-size: .82rem; color: #3D7A4E; margin-top: .9rem; }

.lfit__privacy {
	font-size: .76rem; color: var(--lf-muted);
	margin-top: 1.5rem; padding-top: 1.25rem;
	border-top: 1px solid var(--lf-line);
	line-height: 1.6;
}
.lfit__clear {
	display: block; margin-top: .6rem;
	background: none; border: 0; padding: 0; cursor: pointer;
	font-family: inherit; font-size: .76rem; color: var(--lf-ox);
	text-decoration: underline; text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Size chart
   -------------------------------------------------------------------------- */

.lfit__tablewrap { overflow-x: auto; border: 1px solid var(--lf-line); border-radius: 8px; }
.lfit__table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.lfit__table th {
	text-align: start; padding: .85rem 1rem;
	font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
	color: var(--lf-muted); font-weight: 600;
	border-bottom: 1px solid var(--lf-line);
	background: var(--lf-blush);
	white-space: nowrap;
}
.lfit__table td { padding: .7rem 1rem; border-bottom: 1px solid color-mix(in srgb, var(--lf-line) 55%, transparent); }
.lfit__table tr:last-child td { border-bottom: 0; }
.lfit__table tbody tr:hover td { background: color-mix(in srgb, var(--lf-blush) 45%, transparent); }
.lfit__table strong { color: var(--lf-ox); }

.lfit__cta {
	margin-top: 2.5rem; padding: 1.5rem;
	background: var(--lf-blush); border-radius: var(--lf-radius);
	text-align: center;
}
.lfit__cta p { margin: 0 0 1rem; font-size: .95rem; }

/* --------------------------------------------------------------------------
   Shape finder
   -------------------------------------------------------------------------- */

.lfit__shapes {
	display: grid; gap: .7rem;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.lfit__shape {
	text-align: start; cursor: pointer;
	background: var(--lf-paper);
	border: 1px solid var(--lf-line); border-radius: var(--lf-radius);
	padding: 1.2rem 1.3rem;
	font-family: inherit; color: inherit;
	transition: all .2s ease;
}
.lfit__shape:hover { border-color: var(--lf-ox); transform: translateY(-2px); }
.lfit__shape.is-active {
	border-color: var(--lf-ox);
	box-shadow: inset 0 0 0 1px var(--lf-ox);
	background: color-mix(in srgb, var(--lf-blush) 55%, transparent);
}
.lfit__shape strong {
	display: block;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.1rem; font-weight: 500; margin-bottom: .35rem;
}
.lfit__shape span { font-size: .82rem; color: var(--lf-muted); line-height: 1.5; }

.lfit__shaperesult { margin-top: 1.5rem; }
.lfit__card {
	border: 1px solid var(--lf-line); border-radius: var(--lf-radius);
	padding: clamp(1.25rem, 4vw, 2rem);
	background: var(--lf-paper);
}
.lfit__card h3 {
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.3rem; font-weight: 500; margin: 0 0 .6rem;
}
.lfit__why { color: var(--lf-muted); font-size: .92rem; margin: 0 0 1.5rem; }
.lfit__cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lfit__cols h4 {
	font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
	color: var(--lf-muted); margin: 0 0 .7rem; font-weight: 600;
}
.lfit__yes, .lfit__no { list-style: none; margin: 0; padding: 0; }
.lfit__yes li, .lfit__no li {
	position: relative; padding-inline-start: 1.5rem;
	margin-block: .45rem; font-size: .9rem;
}
.lfit__yes li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .45em;
	width: 10px; height: 5px;
	border-inline-start: 1.5px solid #3D7A4E; border-bottom: 1.5px solid #3D7A4E;
	transform: rotate(-45deg);
}
.lfit__no li::before {
	content: "×"; position: absolute; inset-inline-start: .1rem; top: -.1em;
	color: var(--lf-muted); font-size: 1.1rem;
}
.lfit__card .lfit__btn { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   Product page integration
   -------------------------------------------------------------------------- */

.lfit-pdp { margin-top: 1.25rem; }

.lfit-pdp__prompt {
	display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
	border: 1px dashed var(--wp--preset--color--nude, #C9A08F);
	border-radius: 10px;
	padding: 1rem 1.15rem;
	background: color-mix(in srgb, var(--wp--preset--color--blush, #F5EBE6) 45%, transparent);
}
.lfit-pdp__icon { flex: 0 0 auto; color: var(--wp--preset--color--gold, #A98149); }
.lfit-pdp__icon svg { width: 24px; height: 24px; }
.lfit-pdp__prompt > div { flex: 1 1 180px; min-width: 0; }
.lfit-pdp__prompt strong { display: block; font-size: .88rem; margin-bottom: .2rem; }
.lfit-pdp__prompt p { margin: 0; font-size: .8rem; color: var(--wp--preset--color--smoke, #7A6B6E); line-height: 1.5; }
.lfit-pdp__open {
	flex: 0 0 auto; cursor: pointer;
	border: 1px solid var(--wp--preset--color--oxblood, #3E1012);
	background: transparent; color: var(--wp--preset--color--oxblood, #3E1012);
	border-radius: 999px; padding: .7rem 1.3rem;
	font-size: .7rem; font-weight: 700; font-family: inherit;
	text-transform: uppercase; letter-spacing: .12em;
	transition: all .2s ease;
}
.lfit-pdp__open:hover { background: var(--wp--preset--color--oxblood, #3E1012); color: #fff; }

.lfit-pdp__match {
	position: relative;
	display: flex; align-items: center; gap: 1rem;
	border-radius: 10px; padding: 1rem 1.15rem;
	border: 1px solid var(--wp--preset--color--line, #E3D8D2);
}
.lfit-pdp__match strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.lfit-pdp__match p { margin: 0; font-size: .82rem; color: var(--wp--preset--color--smoke, #7A6B6E); line-height: 1.55; }
.lfit-pdp__match a { color: var(--wp--preset--color--oxblood, #3E1012); }

.lfit-pdp__badge {
	flex: 0 0 auto;
	display: grid; place-items: center;
	min-width: 54px; height: 54px; padding-inline: .6rem;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.15rem; font-weight: 500;
	background: var(--wp--preset--color--oxblood, #3E1012); color: #fff;
}
.lfit-pdp__badge.is-muted { background: var(--wp--preset--color--smoke, #7A6B6E); }

.lfit-pdp__match.is-yes    { border-color: #9FC4A8; background: #F2F8F3; }
.lfit-pdp__match.is-yes .lfit-pdp__badge { background: #3D7A4E; }
.lfit-pdp__match.is-soon   { border-color: #E3C58F; background: #FDF8EF; }
.lfit-pdp__match.is-soon .lfit-pdp__badge { background: #A98149; }
.lfit-pdp__match.is-sister { border-color: #C9A08F; background: #FBF4F1; }
.lfit-pdp__match.is-no     { border-color: var(--wp--preset--color--line, #E3D8D2); }
.lfit-pdp__match.is-info   { border-color: var(--wp--preset--color--line, #E3D8D2); }

.lfit-pdp__edit {
	position: absolute; top: .5rem; inset-inline-end: .65rem;
	background: none; border: 0; cursor: pointer; padding: .2rem;
	font-family: inherit; font-size: .7rem;
	color: var(--wp--preset--color--smoke, #7A6B6E);
	text-decoration: underline; text-underline-offset: 2px;
}
.lfit-pdp__edit:hover { color: var(--wp--preset--color--oxblood, #3E1012); }

.lfit-sister { margin-top: 1.25rem; }
.lfit-sister .lfit__sub { margin-top: 0; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Wishlist
   -------------------------------------------------------------------------- */

.lfit--wishlist .lfit__wishempty { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0; }
.lfit--wishlist .lfit__wishempty .lfit__intro { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	.lfit__shape:hover { transform: none; }
	.lfit__submit.is-loading::after { animation: none; }
}
