/* Stempelkort. The theme's fonts and headings; the shop's colours from the settings page (--stk-*). Every part fits
   320 px and doubled text: grids wrap by width, nothing has a fixed width. */
.stk {
	--stk-r: 12px;
	color: var(--stk-ink, #1b1d20);
}
.stk *, .stk *::before, .stk *::after { box-sizing: border-box; }
.stk img { display: block; max-width: 100%; height: auto; }
.stk-lead { max-width: 62ch; margin: 0 0 1.25rem; font-size: 1.1rem; line-height: 1.55; }
.stk-small, .stk-note { max-width: 70ch; margin: 1rem 0 0; font-size: 0.88rem; line-height: 1.5; opacity: 0.78; }
.stk-note { margin-top: 1.5rem; }
.stk-part + .stk-part { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.stk-part > h2 { margin-top: 0; }

/* Actions */
.stk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.stk-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4em;
	border-radius: 10px; background: var(--stk-ink, #1b1d20); color: var(--stk-paper, #fff); font-weight: 700; text-decoration: none;
}
.stk-link { font-weight: 700; color: var(--stk-ink, #1b1d20); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.stk-btn:focus-visible, .stk-link:focus-visible, .stk select:focus-visible, .stk input:focus-visible + span {
	outline: 3px solid var(--stk-accent, #2e5779); outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) { .stk-btn:hover { background: var(--stk-accent, #2e5779); } }

/* The homepage part: the idea, then the gifts in a row */
.stk-teaser { display: grid; gap: 1.5rem; }
.stk-shelf {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 14px;
	margin: 0; padding: 0; list-style: none;
}
.stk-shelf__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stk-shelf__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--stk-r); background: var(--stk-tint, #eee); margin-bottom: 6px; }
.stk-shelf__name { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.stk-shelf__need { font-size: 0.9rem; opacity: 0.8; }

/* The gifts on the card's page */
.stk-gifts {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 18px;
	margin: 0; padding: 0; list-style: none;
}
.stk-gift { display: flex; flex-direction: column; min-width: 0; border-radius: var(--stk-r); background: var(--stk-tint, #eee); overflow: hidden; }
.stk-gift__pics { display: grid; }
.stk-gift__pics.is-two { grid-template-columns: 1fr 1fr; }
.stk-gift__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stk-gift__pics.is-two .stk-gift__img { aspect-ratio: 1 / 2; }
.stk-gift__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.stk-gift__name { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.stk-gift__sub { margin: 0; font-weight: 700; }
.stk-gift__desc { margin: 0; line-height: 1.5; }
.stk-gift__need { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--stk-line, #ccc); }

/* The calculator */
.stk-calc__form { display: grid; gap: 18px; max-width: 46rem; }
.stk-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.stk-field > span, .stk-field legend { font-weight: 700; padding: 0; }
.stk select {
	width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--stk-line, #ccc); border-radius: 10px;
	background: var(--stk-paper, #fff); color: inherit; font: inherit; font-size: max(16px, 1rem);
}
.stk-often { display: flex; flex-wrap: wrap; gap: 10px; }
.stk-often legend { width: 100%; margin-bottom: 8px; }
.stk-often label, .stk-check { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.stk-often input, .stk-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.stk-often span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--stk-line, #ccc); background: var(--stk-paper, #fff); font-weight: 700;
}
.stk-often input:checked + span { background: var(--stk-ink, #1b1d20); color: var(--stk-paper, #fff); box-shadow: none; }
.stk-check span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.stk-check span::before {
	content: ""; flex: none; width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--stk-ink, #1b1d20); background: var(--stk-paper, #fff);
}
.stk-check input:checked + span::before {
	background: var(--stk-ink, #1b1d20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.stk-calc__out { max-width: 46rem; margin-top: 1.5rem; }
.stk-calc__sum { margin: 0 0 10px; font-weight: 700; }
.stk-plan { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--stk-line, #ccc); }
.stk-plan li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--stk-line, #ccc); }
.stk-plan__name { font-weight: 700; }
.stk-plan__when { font-variant-numeric: tabular-nums; }
.stk-calc__xmas { margin: 14px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--stk-tint, #eee); line-height: 1.5; }

/* The Christmas gift */
.stk-xmas__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 18px; }
.stk-xmas__gift { min-width: 0; }
.stk-xmas__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--stk-r); background: var(--stk-tint, #eee); }
.stk-xmas__when { margin: 12px 0 2px; font-size: 0.9rem; font-weight: 700; color: var(--stk-accent, #2e5779); }
.stk-xmas__gift h3 { margin: 12px 0 4px; font-size: 1.2rem; }
.stk-xmas__gift p:last-child { margin: 0; line-height: 1.5; }

/* How it works */
.stk-terms ul { max-width: 68ch; margin: 0; padding-left: 1.2em; }
.stk-terms li { margin-bottom: 0.5rem; line-height: 1.55; }

/* The company gift */
.stk-company { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .stk-company:has(.stk-company__pic) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.stk-company__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--stk-r); background: var(--stk-tint, #eee); }
.stk-company .stk-note { grid-column: 1 / -1; margin-top: 0; }
.stk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 14px 22px; margin: 0 0 1rem; padding: 0; list-style: none; }
.stk-facts li { line-height: 1.4; }
.stk-facts b { display: block; font-size: 1.35rem; line-height: 1.2; }

/* Round 72c: the gifts not shown yet, as one quiet tile. */
.stk-mystery {
	display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 18px;
	border-radius: var(--stk-r); background: var(--stk-paper, #fff); box-shadow: inset 0 0 0 1.5px var(--stk-line, #ccc);
}
.stk-shelf .stk-mystery { aspect-ratio: auto; }
.stk-mystery__mark {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--stk-ink, #1b1d20); color: var(--stk-paper, #fff); font-size: 1.6rem; font-weight: 800; line-height: 1;
}
.stk-mystery__name { font-weight: 700; line-height: 1.3; }
.stk-mystery__text { font-size: 0.92rem; line-height: 1.45; opacity: 0.8; }
.stk-plan__surprise .stk-plan__name { font-style: italic; }


/* Stage 2: the customer's card in the account. */
.stk-account h3 { margin: 2rem 0 0.75rem; }
.stk-mine { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; }
.stk-mine__card { padding: 20px; border-radius: var(--stk-r); background: var(--stk-ink, #1b1d20); color: var(--stk-paper, #fff); }
.stk-mine__card p { margin: 0 0 8px; }
.stk-mine__card .stk-small { opacity: 0.85; }
.stk-mine__count { font-size: 1.1rem; }
.stk-mine__count b { font-size: 2.6rem; line-height: 1; margin-right: 4px; }
.stk-dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; list-style: none; }
.stk-dots li { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--stk-paper, #fff); opacity: 0.6; }
.stk-dots li.is-on { background: var(--stk-paper, #fff); opacity: 1; }
.stk-mine__next { padding: 16px; border-radius: var(--stk-r); background: var(--stk-tint, #eee); }
.stk-mine__img { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.stk-mine__label { margin: 10px 0 0; font-size: 0.9rem; opacity: 0.8; }
.stk-mine__name { margin: 0; font-size: 1.2rem; font-weight: 700; }
.stk-mygifts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stk-mygift { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: var(--stk-r); background: var(--stk-tint, #eee); }
.stk-mygift__img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.stk-mygift p { margin: 0 0 4px; }
.stk-mygift__name { font-weight: 700; }
.stk-mygift__acts { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.stk-mygift__act { display: flex; gap: 8px; align-items: center; margin: 0; }
.stk-mygift__act button.stk-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.stk-mygift__act select { min-height: 44px; width: auto; }
.stk-history { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stk-history th, .stk-history td { padding: 8px 6px; border-bottom: 1px solid var(--stk-line, #ccc); text-align: left; }
.stk-history td:last-child, .stk-history th:last-child { text-align: right; }
.stk-xmas-mine { max-width: 62ch; margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--stk-tint, #eee); line-height: 1.5; }
.stk-co { display: grid; gap: 8px; max-width: 46rem; margin: 0 0 8px; padding: 14px 16px; list-style: none; border-radius: 10px; background: var(--stk-tint, #eee); }
.stk-co b { margin-right: 4px; }
