/* Navelle "What's my size?" (plugin). Self-contained: brand colours set on its own boxes, so it looks the same on any theme. */
.nv-fit, .nv-fitdlg, .nv-chartdlg {
	--nv-ink: #111111; --nv-white: #FFFFFF; --nv-line: #D9D4CE; --nv-hair: #ECE8E3; --nv-sand: #F1EEEA; --nv-paper: #FBFAF8;
	--nv-wine: #B0124F; --nv-muted: #6B6B6B; --nv-soft: #4A4A4A; --nv-display: 'Bellefair', 'Times New Roman', serif;
	box-sizing: border-box; color: var(--nv-ink);
}
.nv-fit *, .nv-fitdlg * { box-sizing: border-box; }
.nv-fit button, .nv-fitdlg button { text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0; min-height: 0; }
.nv-fitdlg .nv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 28px; border: 1px solid var(--nv-ink); background: var(--nv-ink); color: var(--nv-white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.nv-fitdlg .nv-btn:hover { background: var(--nv-wine); border-color: var(--nv-wine); }
.nv-fitdlg input[type=number], .nv-fitdlg input[type=text] { height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.nv-fitdlg h2 { color: var(--nv-ink); text-transform: none; letter-spacing: 0; }
.nv-fitdlg legend { border: 0; }

/* What's my size? (inc/fit.php): a sand card under the sizes, and the measurements dialog */
.nv-fit { margin: 18px 0 22px; }
.nv-fit__cta { display: block; width: 100%; text-align: start; padding: 16px 18px; background: var(--nv-sand); border: 0; cursor: pointer; font: inherit; color: var(--nv-ink); transition: background .2s; }
.nv-fit__cta:hover { background: var(--nv-hair); }
.nv-fit__cta strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nv-fit__cta span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--nv-soft); }
.nv-fit.has-rec { padding: 16px 18px; background: var(--nv-sand); }
.nv-fit__rec { margin: 0 0 8px; font-size: 15px; }
.nv-fit__rec b { font-size: 19px; font-weight: 600; margin-inline-start: 4px; }
.nv-fit__lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.nv-fit__lines li { position: relative; padding-inline-start: 22px; line-height: 1.5; }
.nv-fit__lines li::before { position: absolute; inset-inline-start: 0; top: 0; width: 16px; text-align: center; font-weight: 600; }
.nv-fit__lines .is-ok::before { content: '✓'; color: #2F6E48; }
.nv-fit__lines .is-warn { color: var(--nv-wine); }
.nv-fit__lines .is-warn::before { content: '!'; color: var(--nv-wine); }
.nv-fit__lines .is-info::before { content: '·'; color: var(--nv-muted); }
.nv-fit__lines .is-unknown { color: var(--nv-muted); }
.nv-fit__lines .is-unknown::before { content: '?'; color: var(--nv-muted); }
.nv-fit__msg { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--nv-soft); }
.nv-fit__pick { display: inline-block; padding: 10px 18px; margin-inline-end: 14px; background: var(--nv-ink); color: var(--nv-white); border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.nv-fit__pick:hover { background: var(--nv-wine); }
.nv-fit__pick[disabled] { background: none; color: #2F6E48; padding-inline: 0; cursor: default; }
.nv-fit__edit { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--nv-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.nv-fitdlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--nv-white); color: var(--nv-ink); box-shadow: 0 30px 80px rgba(0,0,0,.18); }
.nv-fitdlg::backdrop { background: rgba(17,17,17,.45); }
.nv-fitdlg__form { position: relative; padding: 36px 36px 28px; }
.nv-fitdlg h2 { margin: 0 0 8px; font-family: var(--nv-display); font-weight: 400; font-size: 30px; }
.nv-fitdlg__intro { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--nv-soft); }
.nv-fitdlg__close { position: absolute; top: 12px; inset-inline-end: 14px; width: 40px; height: 40px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--nv-ink); }
.nv-fitdlg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.nv-fitdlg__field > span:first-child { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.nv-fitdlg__field em { font-style: normal; font-weight: 400; color: var(--nv-muted); }
.nv-fitdlg__input { display: flex; align-items: center; border: 1px solid var(--nv-line); }
.nv-fitdlg__input:focus-within { border-color: var(--nv-ink); }
.nv-fitdlg__input input { flex: 1; min-width: 0; border: 0; padding: 11px 12px; font: inherit; font-size: 16px; background: none; outline: none; -moz-appearance: textfield; }
.nv-fitdlg__input input::-webkit-inner-spin-button, .nv-fitdlg__input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.nv-fitdlg__input i { font-style: normal; font-size: 13px; color: var(--nv-muted); padding-inline: 10px; }
.nv-fitdlg__field small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--nv-muted); }
.nv-fitdlg__q { border: 0; border-top: 1px solid var(--nv-hair); margin: 0; padding: 16px 0 14px; }
.nv-fitdlg__q legend { float: inline-start; width: 100%; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.nv-fitdlg__opt { display: inline-flex; margin: 0 0 6px; margin-inline-end: 8px; cursor: pointer; }
.nv-fitdlg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.nv-fitdlg__opt span { padding: 8px 14px; border: 1px solid var(--nv-line); font-size: 14px; transition: border-color .15s, background .15s; }
.nv-fitdlg__opt input:checked + span { border-color: var(--nv-ink); background: var(--nv-ink); color: var(--nv-white); }
.nv-fitdlg__opt input:focus-visible + span { outline: 2px solid var(--nv-wine); outline-offset: 2px; }
.nv-fitdlg__err { margin: 6px 0 0; color: var(--nv-wine); font-size: 14px; }
.nv-fitdlg__save { width: 100%; margin-top: 16px; }
.nv-fitdlg__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--nv-muted); }
@media (max-width: 600px) {
	.nv-fitdlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
	.nv-fitdlg__form { padding: 28px 16px 24px; }
	.nv-fitdlg__grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
}

/* Size chart link and dialog (inc/fit.php) */
.nv-chartlink { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--nv-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.nv-chartlink svg { width: 18px; height: 18px; }
.nv-chartdlg { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: var(--nv-white); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.nv-chartdlg::backdrop { background: rgba(17,17,17,.5); }
.nv-chartdlg img { display: block; width: 100%; height: auto; min-height: 240px; background: var(--nv-paper); }
.nv-chartdlg .nv-fitdlg__close { background: rgba(255,255,255,.85); }

/* Girls' sizes (fit): daughters in the dialog, a tab per daughter on the product page */
.nv-fitdlg__kids { border: 0; border-top: 1px solid var(--nv-hair); margin: 0; padding: 16px 0 6px; }
.nv-fitdlg__kids legend { float: inline-start; width: 100%; padding: 0; font-size: 15px; font-weight: 600; }
.nv-fitdlg__kidsp { clear: both; margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--nv-soft); }
.nv-fitdlg__kid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px; margin-bottom: 10px; background: var(--nv-paper); border: 1px solid var(--nv-hair); }
.nv-fitdlg__kid .nv-fitdlg__field > span:first-child { font-size: 13px; }
.nv-fitdlg__kidname { grid-column: 1 / -1; }
.nv-fitdlg__kidx { grid-column: 1 / -1; justify-self: end; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--nv-muted); text-decoration: underline; cursor: pointer; }
.nv-fitdlg__kidadd { background: none; border: 1px dashed var(--nv-line); width: 100%; padding: 10px; font: inherit; font-size: 14px; cursor: pointer; }
.nv-fitdlg__kidadd:hover { border-color: var(--nv-ink); }
.nv-fit__kids { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nv-fit__kid { padding: 6px 12px; border: 1px solid var(--nv-line); background: var(--nv-white); font: inherit; font-size: 13.5px; cursor: pointer; }
.nv-fit__kid.is-on { background: var(--nv-ink); border-color: var(--nv-ink); color: var(--nv-white); }

/* Written size chart under "What's my size?" (owner, 16.11.2026) */
.nv-sizetbl { --nv-ink: #111111; --nv-line: #D9D4CE; --nv-hair: #ECE8E3; --nv-sand: #F1EEEA; --nv-wine: #B0124F; --nv-muted: #6B6B6B;
	display: block; width: 100%; clear: both; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--nv-hair); border-bottom: 1px solid var(--nv-hair); color: var(--nv-ink); }
.nv-sizetbl summary { cursor: pointer; list-style: none; display: flex !important; width: 100%; margin: 0; gap: 12px; line-height: 1.4; align-items: center; justify-content: space-between; padding: 12px 2px; font-size: 15px; font-weight: 600; }
.nv-sizetbl summary::-webkit-details-marker { display: none; }
.nv-sizetbl summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; color: var(--nv-muted); }
.nv-sizetbl[open] summary::after { content: '−'; }
.nv-sizetbl__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nv-sizetbl table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; text-align: center; border: 0; }
.nv-sizetbl th, .nv-sizetbl td { padding: 8px 6px; border: 0; border-bottom: 1px solid var(--nv-hair); white-space: nowrap; text-align: center; background: none; color: var(--nv-ink); }
.nv-sizetbl thead th { font-weight: 600; font-size: 12.5px; color: var(--nv-muted); border-bottom-color: var(--nv-line); }
.nv-sizetbl tbody th { font-weight: 600; }
.nv-sizetbl tr.is-yours th, .nv-sizetbl tr.is-yours td { background: var(--nv-sand); }
.nv-sizetbl tr.is-yours th { color: var(--nv-wine); }
.nv-sizetbl tr.is-yours th::after { content: attr(data-yours); display: block; font-size: 11px; font-weight: 400; color: var(--nv-wine); }
.nv-sizetbl__note { margin: 8px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--nv-muted); }

/* Length buttons with a drawing (fit.js), after Click-In's sketch: two wide buttons side by side, the drawing at the
   start, the name and the length in cm next to it. The new theme's .nv-swatch and XStore's swatch both. */
.nv-lenrow { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; width: 100%; margin: 0 0 6px !important; padding: 0 !important; list-style: none !important; }
.nv-lenrow > .nv-lenli, .nv-lenrow > .nv-lenbtn { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.nv-lenbtn { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start !important; gap: 12px; box-sizing: border-box; width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 64px !important; padding: 8px 14px !important; line-height: 1.25 !important; text-align: start !important; border: 1px solid #D9D4CE !important; background: #fff !important; color: #111 !important; }
.nv-lenrow > .nv-lenbtn { padding: 8px 14px !important; border: 1px solid #D9D4CE !important; }
.nv-lenbtn.is-on, .nv-lenbtn.selected, .selected > .nv-lenbtn, .nv-lenbtn[aria-pressed="true"] { border-color: #111 !important; box-shadow: inset 0 0 0 1px #111; }
.nv-lenpic { flex: none; width: 30px; height: 50px; display: block; }
.nv-lenpic__d { fill: #EFE8E3; stroke: #1F1A19; stroke-width: 1.4; stroke-linejoin: round; }
.nv-lenpic__m { fill: none; stroke: #B0124F; stroke-width: 1.2; stroke-dasharray: 2 2.5; }
.nv-lenbtn__txt { display: flex !important; flex: 0 1 auto !important; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; margin: 0 !important; padding: 0 !important; width: auto !important; text-align: start; }
.nv-lenbtn__t { font-size: 15px; font-weight: 600; }
.nv-lenbtn__cm { font-size: 13px; font-weight: 400; color: #6B6B6B; white-space: nowrap; }

/* Old theme (XStore) gives buttons a fixed height and no wrapping: let the "What's my size?" card grow with its text */
.nv-fit { clear: both; width: 100%; }
.nv-fit .nv-fit__cta, .nv-fit .nv-fit__pick, .nv-fit .nv-fit__edit { height: auto !important; line-height: 1.4 !important; white-space: normal !important; }
.nv-fit .nv-fit__cta { padding: 16px 18px !important; }
