/*
 * Standard Size – Rubberkiss méretválasztó
 * Betűtípus, szövegszín, címsorok, gombok és beviteli mezők a WordPress-témából jönnek.
 * Itt az elrendezés, a térközök és a finom, a téma színeihez igazodó részletek vannak.
 * A színárnyalatok a téma szövegszínéből (currentColor) keverednek, így világos és sötét témán is jók.
 */

/* ---------- Alap ---------- */
.stsz {
	--stsz-hl: #d35400;
	--stsz-err: #c62828;
	--stsz-ok: #2e7d32;
	--stsz-line: rgba(127, 127, 127, .28);
	--stsz-line-strong: rgba(127, 127, 127, .5);
	--stsz-tint: rgba(127, 127, 127, .07);
	--stsz-tint-strong: rgba(127, 127, 127, .14);
	--stsz-hl-tint: rgba(211, 84, 0, .08);
	--stsz-r: 14px;
	--stsz-r-sm: 9px;
	max-width: 760px;
	margin-top: 2em;
	margin-bottom: 2em;
	line-height: 1.5;
}
@supports (color: color-mix(in srgb, red 50%, transparent)) {
	.stsz {
		--stsz-line: color-mix(in srgb, currentColor 16%, transparent);
		--stsz-line-strong: color-mix(in srgb, currentColor 34%, transparent);
		--stsz-tint: color-mix(in srgb, currentColor 5%, transparent);
		--stsz-tint-strong: color-mix(in srgb, currentColor 10%, transparent);
		--stsz-hl-tint: color-mix(in srgb, var(--stsz-hl) 8%, transparent);
	}
}
.stsz, .stsz *, .stsz *::before, .stsz *::after { box-sizing: border-box; }
.stsz [hidden] { display: none !important; }
.stsz p { margin: 0; }

/* ---------- Fejléc ---------- */
.stsz .stsz__title { margin: 0 0 .4em; padding: 0; }
.stsz .stsz__intro { margin: 0 0 1.75em; opacity: .8; max-width: 38em; }

/* ---------- Űrlap ---------- */
.stsz .stsz__form { margin: 0; padding: 0; border: 0; }

.stsz .stsz__gender { margin: 0 0 1.75em; }
.stsz .stsz__legend { display: block; margin: 0 0 .55em; font-weight: 600; font-size: .95em; }
.stsz .stsz__seg {
	display: inline-flex; gap: 4px; margin: 0; padding: 4px;
	border: 1px solid var(--stsz-line); border-radius: 999px; background: var(--stsz-tint);
}
.stsz .stsz__segin { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.stsz .stsz__segbtn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 6.5em; min-height: 2.6em; margin: 0; padding: .35em 1.35em;
	border-radius: 999px; font-weight: 500; line-height: 1.2; cursor: pointer; user-select: none;
	transition: background-color .18s ease, box-shadow .18s ease;
}
.stsz .stsz__segbtn:hover { background: var(--stsz-tint-strong); }
.stsz .stsz__segin:checked + .stsz__segbtn {
	background: var(--stsz-tint-strong); font-weight: 700;
	box-shadow: inset 0 0 0 1.5px currentColor;
}
.stsz .stsz__segin:focus-visible + .stsz__segbtn { outline: 2px solid currentColor; outline-offset: 2px; }
.stsz .stsz__seg--small .stsz__segbtn { min-width: 5em; min-height: 2.25em; padding: .25em 1em; font-size: .92em; }

.stsz .stsz__grid { display: grid; gap: 1.5em 1.5em; margin: 0; }
.stsz .stsz__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stsz .stsz__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stsz .stsz__field { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.stsz .stsz__label { display: block; margin: 0 0 .5em; padding: 0; font-weight: 600; line-height: 1.3; }

.stsz .stsz__inputwrap { position: relative; display: block; margin: 0; }
.stsz .stsz__inputwrap .stsz__input {
	display: block; width: 100%; max-width: none; margin: 0; float: none;
	min-height: 3em; padding-right: 2.9em; font-size: max(16px, 1em); /* 16px: iOS nem nagyít rá */
	font-variant-numeric: tabular-nums;
}
.stsz .stsz__unit {
	position: absolute; top: 50%; right: .95em; transform: translateY(-50%);
	pointer-events: none; opacity: .5; font-size: .95em; line-height: 1;
}
/* tartalék, ha a téma nem formázza a mezőket (0 specificitás – a téma felülírja) */
:where(.stsz .stsz__input) {
	font: inherit; color: inherit; background-color: transparent;
	padding: .7em .9em; border: 1px solid var(--stsz-line-strong); border-radius: var(--stsz-r-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}
:where(.stsz .stsz__input:focus) { outline: none; border-color: currentColor; box-shadow: 0 0 0 3px var(--stsz-tint-strong); }
.stsz .stsz__inputwrap .stsz__input[aria-invalid="true"] { border-color: var(--stsz-err); box-shadow: 0 0 0 3px rgba(198, 40, 40, .14); }

.stsz .stsz__hint { display: block; margin: .5em 0 0; font-size: .84em; line-height: 1.45; opacity: .68; }
.stsz .stsz__fielderror { display: block; margin: .45em 0 0; font-size: .85em; font-weight: 600; line-height: 1.4; color: var(--stsz-err); }

.stsz .stsz__note {
	display: flex; align-items: flex-start; gap: .75em;
	margin: 1.75em 0 0; padding: .95em 1.15em;
	border-radius: var(--stsz-r-sm); background: var(--stsz-tint);
	font-size: .9em; line-height: 1.55;
}
.stsz .stsz__noteicon { flex: none; display: inline-flex; margin-top: .1em; opacity: .7; }

.stsz .stsz__errors {
	display: flex; align-items: flex-start; gap: .65em;
	margin: 1.25em 0 0; padding: .8em 1em;
	border: 1px solid rgba(198, 40, 40, .35); border-radius: var(--stsz-r-sm);
	background: rgba(198, 40, 40, .06); font-size: .92em;
}
.stsz .stsz__errors p + p { margin-top: .25em; }
.stsz .stsz__erricon {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--stsz-err); color: #fff; font-size: .9em;
}

.stsz .stsz__actions { margin: 1.75em 0 0; }
.stsz .stsz__submit { margin: 0; min-height: 3em; cursor: pointer; }

/* ---------- Eredmény ---------- */
.stsz .stsz__view--result { outline: none; }
.stsz .stsz__view--result:not([hidden]) { animation: stsz-in .32s ease-out both; }

.stsz .stsz__card {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 2em 1.5em 1.85em; border-radius: var(--stsz-r);
	background: var(--stsz-tint); border: 1px solid var(--stsz-line);
}
.stsz .stsz__cardlabel { display: block; font-size: .78em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.stsz .stsz__size {
	display: block; margin: .12em 0 .1em; font-size: clamp(3.2em, 10vw, 4.6em); font-weight: 800;
	line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stsz .stsz__sub { display: block; font-size: .88em; opacity: .65; }
.stsz .stsz__one { margin: 1.1em auto 0; max-width: 32em; }

.stsz .stsz__split { margin: 2em 0 0; }
.stsz .stsz__h4 { margin: 0 0 .85em; padding: 0; }
.stsz .stsz__cats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75em;
	list-style: none; margin: 0; padding: 0;
}
.stsz .stsz__cat {
	display: flex; flex-direction: column; gap: .3em; margin: 0; padding: 1.05em 1.15em;
	list-style: none; border: 1px solid var(--stsz-line); border-radius: var(--stsz-r);
}
.stsz .stsz__cat::before, .stsz .stsz__cat::marker { content: none; }
.stsz .stsz__cat--onepiece { background: var(--stsz-tint); }
.stsz .stsz__cathead { display: flex; align-items: center; justify-content: space-between; gap: .75em; margin-bottom: .15em; }
.stsz .stsz__catname { font-weight: 700; line-height: 1.25; }
.stsz .stsz__catsize {
	flex: none; min-width: 2.3em; padding: .1em .45em; border-radius: var(--stsz-r-sm);
	background: var(--stsz-tint-strong); font-size: 1.5em; font-weight: 800; line-height: 1.25; text-align: center;
	font-variant-numeric: tabular-nums;
}
.stsz .stsz__catdesc { font-size: .88em; line-height: 1.45; opacity: .8; }
.stsz .stsz__basis { font-size: .78em; opacity: .6; }
.stsz .stsz__cat.is-custom { border-color: var(--stsz-hl); background: var(--stsz-hl-tint); }
.stsz .stsz__cattag {
	align-self: flex-start; margin-top: .35em; padding: .15em .6em; border-radius: 999px;
	background: var(--stsz-hl); color: #fff; font-size: .72em; font-weight: 700; line-height: 1.4; letter-spacing: .02em;
}

.stsz .stsz__hints {
	display: flex; align-items: flex-start; gap: .7em;
	margin: 1.5em 0 0; padding: .85em 1.1em; border-radius: var(--stsz-r-sm);
	background: var(--stsz-tint); font-size: .92em;
}

/* ---------- Egyedi méretvétel – szembetűnő ---------- */
.stsz .stsz__custom {
	position: relative; margin: 2em 0 0; padding: 1.5em 1.6em 1.6em;
	border: 1.5px solid var(--stsz-hl); border-radius: var(--stsz-r);
	background: var(--stsz-hl-tint);
}
.stsz .stsz__customhead { display: flex; align-items: center; gap: .75em; margin: 0 0 .9em; }
.stsz .stsz__badge {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 2em; height: 2em; border-radius: 50%;
	background: var(--stsz-hl); color: #fff; font-size: 1em;
	box-shadow: 0 0 0 5px var(--stsz-hl-tint);
}
.stsz .stsz__badge--small { width: 1.55em; height: 1.55em; font-size: .85em; box-shadow: none; }
.stsz .stsz__customtitle { margin: 0; padding: 0; font-size: 1.28em; line-height: 1.25; }
.stsz .stsz__customintro { margin: 0 0 1.1em; line-height: 1.6; }
.stsz .stsz__reasonstitle { margin: 0 0 .5em; font-weight: 700; }
.stsz .stsz__reasons { margin: 0 0 1.1em; padding: 0; list-style: none; }
.stsz .stsz__reasons li { position: relative; margin: .5em 0; padding: 0 0 0 1.3em; line-height: 1.5; list-style: none; }
.stsz .stsz__reasons li::before {
	content: ""; position: absolute; left: .2em; top: .55em;
	width: .5em; height: .5em; border-radius: 50%; background: var(--stsz-hl);
}
.stsz .stsz__fallback { font-size: .92em; opacity: .8; }
.stsz .stsz__customaction { margin: 1.25em 0 0; }

/* ---------- Vissza ---------- */
.stsz .stsz__backwrap { margin: 1.75em 0 0; }
.stsz .stsz__back { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; cursor: pointer; }
.stsz .stsz__back:hover, .stsz .stsz__back:focus { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Megjegyzés mindkét oldal alján ---------- */
.stsz .stsz__disclaimer { margin: 1.75em 0 0; padding-top: 1.1em; border-top: 1px solid var(--stsz-line); font-size: .8em; opacity: .65; }

/* ---------- Mini változat (termékoldalra) ---------- */
.stsz--mini {
	max-width: 640px; padding: 1.15em 1.25em 1.25em;
	border: 1px solid var(--stsz-line); border-radius: var(--stsz-r);
}
.stsz .stsz__minititle { margin: 0 0 .85em; font-weight: 700; }
.stsz--mini .stsz__gender { margin: 0 0 1em; }
.stsz .stsz__minirow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .85em; margin: 0; }
.stsz .stsz__minirow .stsz__field { flex: 1 1 8.5em; min-width: 7.5em; }
.stsz .stsz__minirow .stsz__label { margin-bottom: .4em; font-size: .88em; }
.stsz .stsz__minirow .stsz__actions { flex: 0 0 auto; margin: 0; }
.stsz--mini .stsz__errors { margin-top: .85em; }
.stsz .stsz__miniresult { margin: 1.1em 0 0; padding: 1em 0 0; border-top: 1px solid var(--stsz-line); }
.stsz .stsz__miniresult.is-in { animation: stsz-in .28s ease-out both; }
.stsz .stsz__miniline { font-size: 1.08em; }
.stsz .stsz__chip {
	display: inline-block; min-width: 2.2em; margin: 0 .1em; padding: .05em .5em;
	border-radius: var(--stsz-r-sm); background: var(--stsz-tint-strong);
	font-size: 1.3em; font-weight: 800; line-height: 1.3; text-align: center; vertical-align: middle;
	font-variant-numeric: tabular-nums;
}
.stsz .stsz__chip--small { min-width: 1.9em; font-size: 1.05em; }
.stsz .stsz__minicats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em;
	margin: .8em 0 0; padding: 0; list-style: none;
}
.stsz .stsz__minicat {
	display: flex; flex-direction: column; align-items: flex-start; gap: .35em;
	margin: 0; padding: .6em .75em; list-style: none;
	border: 1px solid var(--stsz-line); border-radius: var(--stsz-r-sm);
}
.stsz .stsz__minicat::before, .stsz .stsz__minicat::marker { content: none; }
.stsz .stsz__minicat.is-diff { border-color: var(--stsz-line-strong); background: var(--stsz-tint); }
.stsz .stsz__minicat.is-custom { border-color: var(--stsz-hl); background: var(--stsz-hl-tint); }
.stsz .stsz__minicatrow { display: flex; align-items: center; gap: .4em; margin-top: auto; }
.stsz .stsz__badge--tiny { width: 1.3em; height: 1.3em; font-size: .78em; box-shadow: none; }
.stsz .stsz__minicatname { font-size: .82em; line-height: 1.3; opacity: .75; }
.stsz .stsz__minicat .stsz__chip { margin: 0; }
.stsz .stsz__minicustom {
	display: flex; align-items: flex-start; gap: .6em;
	margin: .85em 0 0; padding: .7em .9em; font-size: .93em; line-height: 1.5;
	border: 1px solid var(--stsz-hl); border-radius: var(--stsz-r-sm); background: var(--stsz-hl-tint);
}
.stsz .stsz__minicustom a { font-weight: 700; white-space: nowrap; }

/* ---------- Mozgás ---------- */
@keyframes stsz-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.stsz *, .stsz *::before { animation: none !important; transition: none !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	.stsz .stsz__grid--3, .stsz .stsz__grid--2 { grid-template-columns: minmax(0, 1fr); gap: 1.35em; }
	.stsz .stsz__cats { grid-template-columns: minmax(0, 1fr); }
	.stsz .stsz__submit { width: 100%; }
	.stsz .stsz__seg { display: flex; }
	.stsz .stsz__seg .stsz__segbtn { flex: 1 1 0; }
	.stsz .stsz__custom { padding: 1.25em 1.15em 1.3em; }
	.stsz .stsz__customaction .stsz__cta { display: block; text-align: center; }
	.stsz--mini { padding: 1em; }
	.stsz .stsz__minirow .stsz__actions { flex: 1 1 100%; }
}
