/* Severni pol – obrazec za personalizacijo.
   Barve lahko tema spremeni s spremenljivkami --snp-*. */

.snp-form {
	--_green: var(--snp-pine, #173f2e);
	--_red: var(--snp-berry, #c4122f);
	--_gold: var(--snp-gold, #f2c15b);
	--_mint: var(--snp-mint, #e9f3ec);
	--_line: var(--snp-line, #dbe5dd);
	--_muted: var(--snp-muted, #5a6b62);
	margin: 0 0 20px;
	display: grid;
	gap: 18px;
}

.snp-form__intro { margin: 0; color: var(--_muted); font-size: .98rem; }

.snp-form .snp-step {
	border: 1px solid var(--_line);
	border-radius: 20px;
	background: #fff;
	padding: 20px 22px 6px;
	margin: 0;
	min-width: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.snp-form .snp-step:focus-within { border-color: var(--_green); box-shadow: 0 10px 30px -20px rgba(13, 31, 45, .5); }
.snp-form .snp-step.has-error { border-color: var(--_red); }

.snp-form .snp-step > legend {
	display: flex; align-items: center; gap: 10px;
	padding: 0 8px; margin-left: -8px;
	font-family: var(--snp-font-head, Georgia, serif);
	font-weight: 800; font-size: 1.2rem; color: var(--_green);
}
.snp-form .snp-step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--_red); color: #fff;
	font-family: var(--snp-font-body, sans-serif); font-size: .95rem;
}

.snp-field { margin: 0 0 16px; position: relative; }
.snp-field > label,
.snp-radios > legend {
	display: block; margin-bottom: 6px;
	font-weight: 800; font-size: .98rem; color: var(--_green);
}
.snp-field--textarea > label { padding-right: 120px; }
.snp-field abbr.required { color: var(--_red); text-decoration: none; border: 0; }

.snp-field input[type="text"],
.snp-field select,
.snp-field textarea {
	width: 100%;
	font: inherit; font-size: 1rem; color: #1d2b24;
	padding: 12px 14px;
	border: 1.5px solid #c9d6cc;
	border-radius: 12px;
	background: #fdfdfb;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.snp-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.snp-field input[type="text"]:focus,
.snp-field select:focus,
.snp-field textarea:focus {
	outline: none; background: #fff;
	border-color: var(--_green);
	box-shadow: 0 0 0 4px rgba(23, 63, 46, .12);
}
.snp-field ::placeholder { color: #98a69d; }

.snp-field--starost { max-width: 220px; }

.snp-help { margin: 6px 0 0; font-size: .88rem; color: var(--_muted); line-height: 1.45; }

.snp-counter {
	position: absolute; right: 0; top: 2px;
	font-size: .8rem; font-weight: 700; color: var(--_muted);
}
.snp-counter.is-low { color: var(--_red); }

/* Izbirni gumbi (deklica/deček) */
.snp-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.snp-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.snp-radios > legend { width: 100%; float: left; }
.snp-radio { position: relative; flex: 1 1 180px; }
.snp-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.snp-radio span {
	display: block; text-align: center;
	padding: 12px 14px; border-radius: 12px;
	border: 1.5px solid #c9d6cc; background: #fdfdfb;
	font-weight: 700; font-size: .95rem;
	cursor: pointer; transition: all .15s ease;
}
.snp-radio input:checked + span { border-color: var(--_green); background: var(--_mint); color: var(--_green); box-shadow: inset 0 0 0 1px var(--_green); }
.snp-radio input:focus-visible + span { outline: 3px solid var(--_gold); outline-offset: 2px; }

/* Število otrok */
.snp-count { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.snp-count__option { position: relative; }
.snp-count__option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.snp-count__option > span {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 14px 10px 12px; border-radius: 14px;
	border: 1.5px solid #c9d6cc; background: #fdfdfb;
	text-align: center; cursor: pointer; transition: all .15s ease;
}
.snp-count__option strong { font-size: 1.02rem; color: inherit; }
.snp-count__option small { font-size: .84rem; color: var(--_muted); font-weight: 600; }
.snp-count__option small .woocommerce-Price-amount { color: inherit; }
.snp-count__option input:checked + span { border-color: var(--_green); background: var(--_mint); color: var(--_green); box-shadow: inset 0 0 0 1px var(--_green); }
.snp-count__option input:checked + span small { color: var(--_red); }
.snp-count__option input:focus-visible + span { outline: 3px solid var(--_gold); outline-offset: 2px; }
.snp-step--stevilo .snp-help { margin-top: 12px; }

/* Bloki otrok */
.snp-child { display: grid; gap: 16px; }
.snp-child[hidden] { display: none; }
.snp-child__title { display: none; margin: 0; }
.snp-form.is-multi .snp-child__title { display: flex; align-items: center; gap: 12px; }
.snp-form.is-multi .snp-child__title::after { content: ""; flex: 1; height: 1px; background: var(--_line); }
.snp-child__title span {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: var(--_red); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.snp-form.is-multi .snp-child + .snp-child:not([hidden]) { margin-top: 10px; padding-top: 6px; }

/* Oblika videa */
.snp-field--oblika .snp-radio span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 16px; }
.snp-field--oblika .snp-radio span::before {
	content: ""; display: block; border: 2.5px solid currentColor; border-radius: 5px; opacity: .8;
}
.snp-field--oblika .snp-radio input[value="pokoncen"] + span::before { width: 20px; height: 34px; }
.snp-field--oblika .snp-radio input[value="lezec"] + span::before { width: 40px; height: 24px; margin: 5px 0; }

/* Rok dostave */
.snp-delivery { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--_mint); color: var(--_green); font-size: .95rem; }
.snp-delivery--xmas { background: #fdecef; color: var(--_red); font-weight: 700; }

/* Potrditvena polja */
.snp-check,
.snp-field > label.snp-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 700; font-size: .98rem; line-height: 1.45; }
.snp-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--_green); flex: none; }
.snp-price-tag {
	display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 999px;
	background: rgba(196, 18, 47, .1); color: var(--_red); font-weight: 800; white-space: nowrap;
}
.snp-price-tag .woocommerce-Price-amount { color: inherit; }

/* Predlogi želja */
.snp-suggestions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.snp-suggestions__label { font-size: .85rem; font-weight: 700; color: var(--_muted); margin-right: 2px; }
.snp-form .snp-chip {
	font: inherit; font-size: .85rem; font-weight: 700;
	padding: 6px 12px; margin: 0;
	border-radius: 999px; border: 1.5px dashed #b9c9bd;
	background: #fff; color: var(--_green); cursor: pointer;
	transition: all .15s ease;
}
.snp-form .snp-chip:hover { border-style: solid; border-color: var(--_green); background: var(--_mint); }
.snp-form .snp-chip.is-used { opacity: .45; }
.snp-form .snp-chip--starter { border-style: solid; border-color: #d8e3db; background: var(--_mint); }
.snp-form .snp-chip--starter:hover { background: #fff; }

/* Primeri sporočil */
.snp-examples { margin-top: 12px; border-radius: 14px; background: #fbf8f1; border: 1px solid #efe6d2; }
.snp-examples summary {
	cursor: pointer; padding: 11px 16px; font-weight: 800; font-size: .92rem; color: var(--_green);
	list-style: none; display: flex; align-items: center; gap: 8px;
}
.snp-examples summary::-webkit-details-marker { display: none; }
.snp-examples summary::before { content: "★"; color: #e0a92e; }
.snp-examples summary::after { content: "▾"; margin-left: auto; transition: transform .15s ease; }
.snp-examples[open] summary::after { transform: rotate(180deg); }
.snp-examples ul { list-style: none; margin: 0; padding: 0 16px; }
.snp-examples li { margin: 0 0 10px; padding: 10px 14px; background: #fff; border-radius: 10px; font-size: .92rem; line-height: 1.5; }
.snp-examples li strong { display: block; margin-bottom: 2px; color: var(--_green); font-size: .85rem; }
.snp-examples p { margin: 0; padding: 0 16px 14px; font-size: .85rem; color: var(--_muted); }

/* Skupaj */
.snp-total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	margin: 0; padding: 14px 18px;
	border-radius: 14px; background: var(--_mint);
	font-weight: 800; color: var(--_green);
}
.snp-total strong { font-family: var(--snp-font-head, Georgia, serif); font-size: 1.5rem; color: var(--_red); }

/* Predogled pisma */
.snp-preview {
	position: relative;
	background: var(--snp-paper, #fffdf8);
	border: 2px solid var(--snp-pine, #173f2e);
	border-radius: 22px;
	padding: 24px 26px 18px;
	box-shadow: 10px 10px 0 0 var(--snp-mint, #e9f3ec);
}
.snp-preview__title {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px; font-weight: 800; font-size: .82rem;
	letter-spacing: .1em; text-transform: uppercase; color: var(--snp-berry, #c4122f);
}
.snp-preview__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--snp-berry, #c4122f); box-shadow: 0 0 0 4px rgba(196, 18, 47, .18); animation: snp-pulse 1.6s ease-in-out infinite; }
@keyframes snp-pulse { 50% { box-shadow: 0 0 0 8px rgba(196, 18, 47, 0); } }

.snp-preview__row { padding: 10px 0; border-bottom: 1px solid var(--snp-line, #dbe5dd); }
.snp-preview__row:last-of-type { border-bottom: 0; }
.snp-preview__label { display: block; font-size: .78rem; font-weight: 800; color: var(--snp-pine, #173f2e); opacity: .75; margin-bottom: 2px; }
.snp-preview__row p { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.45; color: var(--snp-pine, #173f2e); overflow-wrap: anywhere; }
.snp-preview u { text-decoration: none; background: linear-gradient(var(--snp-berry, #c4122f), var(--snp-berry, #c4122f)) 0 100% / 100% 3px no-repeat; }
.snp-preview .is-empty { color: #9aa9a0; font-weight: 700; font-style: italic; }
.snp-preview u.is-empty { background-image: linear-gradient(#c9d6cc, #c9d6cc); }
.snp-preview__note { margin: 10px 0 0; font-size: .82rem; color: var(--snp-muted, #5a6b62); }

/* Zahvala */
.snp-thankyou {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 18px 22px; margin: 0 0 28px;
	border-radius: 18px; background: var(--snp-mint, #e9f3ec); color: var(--snp-pine, #173f2e); font-weight: 700;
}
.snp-thankyou span { color: var(--snp-gold, #f2c15b); font-size: 1.6rem; line-height: 1; }
.snp-thankyou p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.snp-preview__dot { animation: none; }
}
