/* Trüfflimaja shop flow — checkout without a cart page + order received.
   Structure from Autokultuur (checkout) and Ektoni (thank-you), dressed in
   the site's own look: dark truffle backdrop, cream headings in Merienda,
   white rounded cards, gold pill buttons. See shop-flow.php. */

.tm-flow {
	--tm-ink: #211d19;
	--tm-cream: #e9d8c4;
	--tm-sand: #ece4cf;
	--tm-gold: #db9d31;
	--tm-gold-ink: #8a5a12;
	--tm-paper: #faf6f0;
	--tm-line: #e6ddd1;
	--tm-mute: #6f655a;
	--tm-ok: #4f6b2f;
	--tm-err: #a3261b;
	--tm-radius: 8px;
	--tm-head: "Merienda", Georgia, serif;
	--tm-body: "Nunito", system-ui, sans-serif;

	position: relative;
	z-index: 0;
	padding: 170px 0 100px;
	font-family: var(--tm-body);
	color: var(--tm-cream);
}
.tm-flow *,
.tm-flow *::before,
.tm-flow *::after { box-sizing: border-box; }

.tm-flow__bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background-color: var(--tm-ink);
	background-position: center;
	background-size: cover;
}
.tm-flow__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 19, 7, 0.93) 0%, rgba(59, 45, 23, 0.89) 100%);
}
.tm-flow__inner { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* breadcrumbs */
.tm-crumbs { margin-bottom: 40px; font-size: 14px; color: var(--tm-cream); }
.tm-crumbs a { color: var(--tm-cream); text-decoration: none; opacity: 0.8; }
.tm-crumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.tm-crumbs__sep { margin: 0 8px; opacity: 0.6; }

/* page head: "Kassa ———— 3 sammu · umbes minut" */
.tm-head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.tm-head__title { margin: 0; font-family: var(--tm-head); font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.05rem); line-height: 1.1; color: var(--tm-cream); }
.tm-head__line { flex: 1; height: 1px; margin-bottom: 14px; background: rgba(233, 216, 196, 0.3); }
.tm-head__note { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tm-gold); white-space: nowrap; }

/* cards */
.tm-card { position: relative; padding: 32px; background: #fff; border-radius: var(--tm-radius); color: var(--tm-ink); }
.tm-card a:not(.tm-btn) { color: var(--tm-gold-ink); }

/* buttons */
.tm-flow .tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid var(--tm-gold);
	border-radius: 50px;
	background: var(--tm-gold);
	color: var(--tm-ink);
	font-family: var(--tm-body);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tm-flow .tm-btn:hover { background: #c98b22; border-color: #c98b22; }
.tm-flow .tm-btn:focus-visible { outline: 2px solid var(--tm-ink); outline-offset: 3px; }
.tm-flow .tm-btn--outline { background: transparent; color: var(--tm-ink); border-color: var(--tm-ink); }
.tm-flow .tm-btn--outline:hover { background: var(--tm-paper); border-color: var(--tm-ink); }
.tm-flow .tm-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 13px; }

/* rule heading: "01 · Kontakt ———— note" */
.tm-rule { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.tm-rule__eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tm-gold-ink); white-space: nowrap; }
.tm-rule__line { flex: 1; height: 1px; background: var(--tm-line); }
.tm-rule__note { font-size: 13px; color: var(--tm-mute); white-space: nowrap; }

/* ── checkout layout ──────────────────────────────────────────────────── */
.tm-flow form.tm-checkout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 32px; align-items: start; margin: 0; }
.tm-flow form.tm-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.tm-checkout__main { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.tm-checkout__aside { position: sticky; top: 110px; min-width: 0; }

/* notices */
.tm-flow .woocommerce-error,
.tm-flow .woocommerce-message,
.tm-flow .woocommerce-info { margin: 0 0 16px; padding: 14px 18px; list-style: none; border: 0; border-radius: var(--tm-radius); background: #fff; color: var(--tm-ink); font-size: 15px; }
.tm-flow .woocommerce-error { border-left: 4px solid var(--tm-err); }
.tm-flow .woocommerce-error li { margin: 0; }
.tm-flow .woocommerce-error::before,
.tm-flow .woocommerce-message::before,
.tm-flow .woocommerce-info::before { display: none; }

/* fields */
.tm-checkout .woocommerce-billing-fields > h3 { display: none; }
.tm-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.tm-checkout .woocommerce-billing-fields__field-wrapper > .form-row { grid-column: 1 / -1; width: auto; float: none; margin: 0 0 16px; padding: 0; }
.tm-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
.tm-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }
.tm-checkout .form-row label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--tm-ink); }
.tm-checkout .form-row label .required { color: var(--tm-err); text-decoration: none; border: 0; }
.tm-checkout .form-row .optional { display: none; }
.tm-checkout .input-text,
.tm-checkout select,
.tm-checkout textarea,
.tm-checkout .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #cfc4b6;
	border-radius: var(--tm-radius);
	background: #fff;
	color: var(--tm-ink);
	font-family: var(--tm-body);
	font-size: 16px;
	line-height: 1.4;
}
.tm-checkout .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 6px; }
.tm-checkout .select2-container .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
.tm-checkout textarea { min-height: 96px; resize: vertical; }
.tm-checkout .input-text:focus,
.tm-checkout select:focus,
.tm-checkout textarea:focus { outline: none; border-color: var(--tm-ink); box-shadow: 0 0 0 3px rgba(219, 157, 49, 0.35); }
.tm-checkout .woocommerce-invalid .input-text,
.tm-checkout .woocommerce-invalid select { border-color: var(--tm-err); }

.tm-checkout:not(.tm-is-company) .tm-company-field { display: none !important; }
.tm-checkout .tm-company-required > label::after { content: " *"; color: var(--tm-err); }

.tm-checkout__extras { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 2px; }
.tm-checkout__extra { position: relative; cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tm-gold-ink); }
.tm-checkout__extra:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-checkout__extra input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tm-checkout__extra input:focus-visible ~ span { outline: 2px solid var(--tm-ink); outline-offset: 3px; }
.tm-checkout__extra input:checked ~ .tm-checkout__extra-off,
.tm-checkout__extra input:not(:checked) ~ .tm-checkout__extra-on { display: none; }
.tm-checkout:not(.tm-has-note) .tm-checkout__note { display: none; }
.tm-checkout__note { margin-top: 14px; }
.tm-checkout__note .form-row { margin: 0; padding: 0; }

/* ── 02 · Tarne ───────────────────────────────────────────────────────── */
.tm-delivery__table,
.tm-delivery__table tbody { display: block; width: 100%; margin: 0; border: 0; background: none; }
.tm-delivery__table tr { display: block; background: none !important; }
.tm-delivery__table th { display: none; }
.tm-delivery__table td { display: block; padding: 0 !important; border: 0; background: none !important; }
.tm-delivery ul#shipping_method { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tm-delivery ul#shipping_method > li {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	row-gap: 6px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: #fff;
	text-indent: 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tm-delivery ul#shipping_method > li:hover { border-color: #cfc4b6; }
.tm-delivery ul#shipping_method > li:has(input:checked) { border-color: var(--tm-ink); box-shadow: inset 0 0 0 1px var(--tm-ink); background: var(--tm-paper); }
.tm-delivery ul#shipping_method > li input.shipping_method { flex: none; width: 16px !important; min-width: 16px; height: 16px !important; margin: 0; padding: 0 !important; appearance: none; border: 1px solid var(--tm-ink); border-radius: 50%; background: #fff; cursor: pointer; }
.tm-delivery ul#shipping_method > li input.shipping_method:checked { border: 5px solid var(--tm-ink); }
.tm-delivery ul#shipping_method > li label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; cursor: pointer; font-weight: 400; }
.tm-delivery ul#shipping_method > li label img { order: -1; max-height: 22px; width: auto; margin: 0; }
.tm-ship__name { font-weight: 800; font-size: 16px; color: var(--tm-ink); }
.tm-ship__price { margin-left: auto; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tm-ink); }
.tm-ship__price .tax_label,
.tm-delivery .tax_label { display: none; }
.tm-ship__note { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--tm-mute); }
.tm-delivery ul#shipping_method > li:has(> input.shipping_method[type="hidden"]) { grid-template-columns: minmax(0, 1fr); }
.tm-delivery ul#shipping_method > li:has(> input.shipping_method[type="hidden"]) .tm-ship__note { grid-column: 1; }
/* the parcel machine pickers each plugin adds under its rate */
.tm-delivery ul#shipping_method > li > :not(input):not(label):not(.tm-ship__note) { grid-column: 1 / -1; }
.tm-delivery ul#shipping_method > li:not(:has(input:checked)) .itella-shipping-container,
.tm-delivery ul#shipping_method > li:not(:has(input:checked)) .omnivalt_terminal_container,
.tm-delivery ul#shipping_method > li:not(:has(input:checked)) .terminal-container { display: none; }
.tm-delivery select,
.tm-delivery .select2-container { width: 100% !important; }
.tm-delivery select { min-height: 44px; padding: 8px 12px; border: 1px solid #cfc4b6; border-radius: var(--tm-radius); background: #fff; font-size: 15px; }

/* ── 03 · Makse ───────────────────────────────────────────────────────── */
.tm-checkout #payment { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
.tm-checkout #payment ul.wc_payment_methods { margin: 0; padding: 0; border: 1px solid var(--tm-line); border-radius: var(--tm-radius); list-style: none; overflow: hidden; }
.tm-checkout #payment li.wc_payment_method { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--tm-line); }
.tm-checkout #payment li.wc_payment_method:has(> input:checked) { background: var(--tm-paper); }
.tm-checkout #payment li.wc_payment_method::before,
.tm-checkout #payment li.wc_payment_method::after { display: none !important; }
.tm-checkout #payment li.wc_payment_method:last-child { border-bottom: 0; }
.tm-checkout #payment li.wc_payment_method > input { width: 16px !important; height: 16px !important; margin: 0; padding: 0 !important; accent-color: var(--tm-ink); }
.tm-checkout #payment li.wc_payment_method > label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; cursor: pointer; font-weight: 800; font-size: 16px; color: var(--tm-ink); }
.tm-checkout #payment li.wc_payment_method > label img { max-height: 22px; width: auto; margin: 0; }
.tm-checkout #payment li.wc_payment_method > .payment_box { grid-column: 1 / -1; }
.tm-checkout #payment div.payment_box { margin: 12px 0 0; padding: 0; background: transparent; color: var(--tm-mute); border-radius: 0; font-size: 14px; line-height: 1.5; }
.tm-checkout #payment div.payment_box::before { display: none; }
.tm-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }

/* ── order panel ──────────────────────────────────────────────────────── */
.tm-rule--panel { margin-bottom: 4px; }
.tm-checkout #order_review { position: static; margin: 0; padding: 0; border: 0; background: none; }
.tm-flow .tm-order { margin: 0; border: 0; border-radius: 0; background: none; transition: opacity 0.15s ease; }
.tm-order.is-busy,
.tm-order.processing,
.tm-checkout #order_review.processing .tm-order { opacity: 0.55; pointer-events: none; }
.tm-order__lines { margin: 12px 0 0; padding: 0; list-style: none; }
.tm-order__line { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 0; }
.tm-order__line + .tm-order__line { border-top: 1px solid var(--tm-line); }
.tm-order__thumb { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 6px; background: var(--tm-paper); }
.tm-order__thumb img { display: block; width: 100%; height: 100% !important; object-fit: cover; margin: 0; }
.tm-order__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-order__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tm-order__meta { font-size: 13px; color: var(--tm-mute); }
.tm-order__qty { position: relative; flex: none; }
.tm-order__qty-chip { min-width: 44px; height: 30px; padding: 0 10px; border: 1px solid var(--tm-line); border-radius: 50px; background: #fff; color: var(--tm-ink); cursor: pointer; font-family: var(--tm-body); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.tm-order__qty-chip:hover,
.tm-order__qty-chip[aria-expanded="true"] { border-color: var(--tm-ink); background: var(--tm-paper); }
.tm-order__qty-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; display: flex; align-items: center; height: 38px; overflow: visible; border: 1px solid var(--tm-ink); border-radius: 50px; background: #fff; box-shadow: 0 6px 18px rgba(33, 29, 25, 0.15); }
.tm-order__qty-pop[hidden] { display: none; }
.tm-order__qty-pop button { width: 36px; height: 100%; padding: 0; border: 0; border-radius: 50px; background: transparent; color: var(--tm-ink); cursor: pointer; font-size: 18px; }
.tm-order__qty-pop button:hover { background: var(--tm-paper); }
.tm-order__qty-value { width: 26px; text-align: center; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-order__price { flex: none; min-width: 64px; text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-order__price .tax_label { display: none; }
.tm-order__remove { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--tm-mute); }
.tm-order__remove:hover { color: var(--tm-ink); background: var(--tm-paper); }
.tm-order__removed { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--tm-radius); background: var(--tm-paper); font-size: 14px; color: var(--tm-mute); }
.tm-order__link { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: var(--tm-body); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tm-gold-ink); text-decoration: none; }
.tm-order__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tm-order__back { margin-left: auto; color: var(--tm-ink) !important; }
.tm-order__rows { margin-top: 14px; border-top: 1px solid var(--tm-line); }
.tm-order__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-order__row:last-child { padding-bottom: 12px; }
.tm-order__row > span:first-child { color: var(--tm-mute); }
.tm-order__row--coupon > span { color: var(--tm-ok) !important; }
.tm-order__row .woocommerce-remove-coupon { margin-left: 6px; font-size: 12px; }
.tm-order__row .tax_label { display: none; }
.tm-order__coupon { margin-top: 4px; }
.tm-order__coupon-field { display: flex; gap: 8px; }
.tm-order__coupon-field[hidden] { display: none; }
.tm-order__coupon-field .input-text { flex: 1; min-height: 40px !important; padding: 8px 14px; border: 1px solid #cfc4b6; border-radius: 50px; text-transform: uppercase; font-size: 15px; }
.tm-order__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--tm-ink); }
.tm-order__total > span:first-child { font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.tm-order__total-value { font-family: var(--tm-head); font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.tm-order__total-value small { display: block; margin-top: 6px; font-family: var(--tm-body); font-weight: 400; font-size: 12px; color: var(--tm-mute); }

.tm-place { margin: 0 !important; padding: 0 !important; }
.tm-flow .tm-place__btn { width: 100%; height: 56px; margin-top: 22px; font-size: 16px; }
.tm-flow .tm-place__btn.is-incomplete { background: #ead6b1; border-color: #ead6b1; color: rgba(33, 29, 25, 0.7); }
.tm-place__missing { margin: 12px 0 0; font-size: 13px; line-height: 1.5; text-align: center; color: var(--tm-mute); }
.tm-place__legal { margin: 12px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: var(--tm-mute); }
.tm-checkout .woocommerce-terms-and-conditions-wrapper { margin-top: 14px; font-size: 13px; }
.tm-checkout:has(.tm-order__lines:empty) .tm-checkout__main { opacity: 0.4; pointer-events: none; }

/* empty state */
.tm-empty { max-width: 560px; }
.tm-empty__title { margin: 0 0 8px; font-family: var(--tm-head); font-weight: 800; font-size: 1.563rem; color: var(--tm-ink); }
.tm-empty p { margin: 0 0 24px; color: var(--tm-mute); }

/* ── order received (Ektoni structure) ───────────────────────────────── */
.tm-head--steps { flex-wrap: wrap; justify-content: space-between; align-items: center; }
.tm-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tm-steps__it { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px; background: rgba(233, 216, 196, 0.12); color: rgba(233, 216, 196, 0.75); font-size: 13px; font-weight: 700; }
.tm-steps__n { font-weight: 800; }
.tm-steps__it.is-on { background: var(--tm-gold); color: var(--tm-ink); }

.tm-done { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.tm-done__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.tm-done__top { display: flex; flex-direction: column; gap: 16px; }
.tm-done__row { display: flex; align-items: center; gap: 18px; }
.tm-done__tick { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tm-gold); color: var(--tm-ink); }
.tm-done__h { margin: 0; font-family: var(--tm-head); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.05rem); line-height: 1.1; color: var(--tm-ink); }
.tm-done__lead { margin: 0; font-size: 20px; font-weight: 700; }
.tm-done__txt { max-width: 560px; margin: 0; line-height: 1.6; color: var(--tm-mute); }
.tm-done__failed { margin: 0; padding: 14px 18px; border-left: 4px solid var(--tm-err); border-radius: var(--tm-radius); background: var(--tm-paper); }
.tm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-chip { display: flex; gap: 10px; padding: 10px 16px; border-radius: 50px; background: var(--tm-paper); font-size: 14px; }
.tm-chip span { color: var(--tm-mute); }
.tm-chip--dark { background: var(--tm-ink); color: #fff; }
.tm-chip--dark span { color: var(--tm-cream); }
.tm-done__nt { margin: 0 0 16px; font-family: var(--tm-head); font-weight: 800; font-size: 1.25rem; color: var(--tm-ink); }
.tm-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tm-next__card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: var(--tm-radius); background: var(--tm-paper); }
.tm-next__n { font-weight: 800; font-size: 14px; color: var(--tm-gold-ink); }
.tm-next__t { font-weight: 800; font-size: 17px; }
.tm-next__d { font-size: 14px; line-height: 1.55; color: var(--tm-mute); }
.tm-done__btns { display: flex; flex-wrap: wrap; gap: 12px; }

.tm-summary { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.tm-summary__h { margin: 0 0 4px; font-family: var(--tm-head); font-weight: 800; font-size: 1.25rem; color: var(--tm-ink); }
.tm-summary__lines { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--tm-line); }
.tm-summary__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tm-summary__line span:last-child { font-weight: 700; white-space: nowrap; }
.tm-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tm-summary__row span:last-child { text-align: right; color: var(--tm-mute); }
.tm-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 2px solid var(--tm-ink); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; }
.tm-summary__total span:last-child { font-family: var(--tm-head); font-size: 26px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; text-align: right; }
.tm-summary__total small,
.tm-summary .tax_label,
.tm-summary .includes_tax { display: block; font-family: var(--tm-body); font-size: 12px; font-weight: 400; color: var(--tm-mute); }
.tm-summary__info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.tm-summary__info span { font-size: 12px; color: var(--tm-mute); }
.tm-summary__gateway:empty { display: none; }
.tm-summary__gateway { font-size: 14px; }
.tm-summary__gateway h2 { margin: 8px 0; font-family: var(--tm-head); font-size: 1.1rem; color: var(--tm-ink); }
.tm-summary__gateway h3 { margin: 8px 0 4px; font-size: 14px; color: var(--tm-ink); }
.tm-summary__gateway ul { margin: 0; padding: 0; list-style: none; }
.tm-summary__gateway li { margin: 4px 0; font-size: 13px; color: var(--tm-mute); }
.tm-summary__gateway li strong { display: block; color: var(--tm-ink); }

/* ── toasts (add to cart) ─────────────────────────────────────────────── */
.tm-toast-host { position: fixed; right: 24px; bottom: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.tm-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0 !important;
	padding: 16px 44px 16px 18px !important;
	border: 0 !important;
	border-radius: 8px;
	background: #fff !important;
	color: #211d19 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-family: "Nunito", system-ui, sans-serif;
	font-size: 15px;
	animation: tm-toast-in 0.25s ease;
}
.tm-toast::before { display: none !important; }
.tm-toast .button { margin-left: auto; padding: 8px 18px !important; border-radius: 50px !important; background: #db9d31 !important; color: #211d19 !important; font-weight: 700; font-size: 13px; text-transform: uppercase; text-decoration: none; float: none !important; }
.tm-toast__close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6f655a; font-size: 20px; line-height: 1; cursor: pointer; }
.tm-toast__close:hover { background: #faf6f0; color: #211d19; }
.tm-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes tm-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
	.tm-flow { padding-top: 130px; }
}
@media (max-width: 1099px) {
	.tm-flow form.tm-checkout { grid-template-columns: minmax(0, 1fr); }
	.tm-checkout__aside { position: static; }
	.tm-summary { max-width: none; flex-basis: 100%; }
}
@media (max-width: 600px) {
	.tm-flow { padding-bottom: 64px; }
	.tm-flow__inner { width: calc(100% - 32px); }
	.tm-card { padding: 22px 18px; }
	.tm-head { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
	.tm-head__line { display: none; }
	.tm-head__note { margin: 0; }
	.tm-rule { flex-wrap: wrap; gap: 4px 12px; }
	.tm-rule__line { display: none; }
	.tm-rule__note { flex-basis: 100%; white-space: normal; }
	.tm-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.tm-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.tm-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 1; }
	.tm-order__total-value { font-size: 26px; }
	.tm-done__btns .tm-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tm-toast { animation: none; }
}

/* Itella puts its parcel locker picker inside the rate label */
.tm-delivery ul#shipping_method > li label .itella-shipping-container { flex-basis: 100%; order: 10; margin: 4px 0 0; }
.tm-delivery .itella-shipping-container .itella-select,
.tm-delivery .itella-shipping-container .dropdown { width: 100%; max-width: none; }
.tm-delivery ul#shipping_method > li:not(:has(input:checked)) label .itella-shipping-container { display: none; }

/* Itella parcel locker picker: search + list in the site's palette */
.tm-delivery .itella-shipping-container .dropdown { padding: 10px 32px 10px 12px; border: 1px solid #cfc4b6; border-radius: var(--tm-radius); background: #fff; color: var(--tm-ink); font-size: 14px; }
.tm-delivery .itella-shipping-container .dropdown-inner { margin-top: 4px; overflow: hidden; border: 1px solid #cfc4b6; border-radius: var(--tm-radius); background: #fff; box-shadow: 0 8px 24px rgba(33, 29, 25, 0.12); }
.tm-delivery .itella-shipping-container .search-bar { padding: 8px; border-bottom: 1px solid var(--tm-line); background: var(--tm-paper); }
.tm-delivery .itella-shipping-container .search-input { width: 100%; min-height: 38px; padding: 0 34px 0 12px; border: 1px solid #cfc4b6 !important; border-radius: 50px; background: #fff; color: var(--tm-ink); font-size: 14px; }
.tm-delivery .itella-shipping-container .search-input::placeholder { color: var(--tm-mute); opacity: 1; }
.tm-delivery .itella-shipping-container .search-input:focus { outline: none; border-color: var(--tm-ink) !important; box-shadow: 0 0 0 3px rgba(219, 157, 49, 0.35); }
.tm-delivery .itella-shipping-container .search-bar img { right: 18px; opacity: 0.6; }
.tm-delivery .itella-shipping-container .search-by { display: block; padding: 6px 12px; font-size: 12px; color: var(--tm-mute); }
.tm-delivery .itella-shipping-container ul { margin: 0; padding: 0; list-style: none; }
.tm-delivery .itella-shipping-container ul li { margin: 0; padding: 9px 12px; border: 0; border-radius: 0; background: #fff; color: var(--tm-ink); font-size: 14px; line-height: 1.35; cursor: pointer; }
.tm-delivery .itella-shipping-container ul li.city { padding-top: 12px; background: var(--tm-paper); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; color: var(--tm-gold-ink); cursor: default; }
.tm-delivery .itella-shipping-container ul li.itella-terminal-data:hover,
.tm-delivery .itella-shipping-container ul li.itella-terminal-data.selected { background: #f3e6cf; }

/* Omniva parcel machine picker: same treatment */
.tm-delivery .omniva-terminals-list { width: 100%; margin-top: 4px; border: 0; background: transparent; font-family: var(--tm-body); }
.tm-delivery .omniva-terminals-list .dropdown { padding: 10px 32px 10px 12px; border: 1px solid #cfc4b6; border-radius: var(--tm-radius); background: #fff; color: var(--tm-ink); font-size: 14px; }
.tm-delivery .omniva-terminals-list .inner-container { margin-top: 4px; overflow: hidden; border: 1px solid #cfc4b6; border-radius: var(--tm-radius); background: #fff; box-shadow: 0 8px 24px rgba(33, 29, 25, 0.12); }
.tm-delivery .omniva-terminals-list .search-input { display: block; width: calc(100% - 16px); min-height: 38px; margin: 8px; padding: 0 12px; border: 1px solid #cfc4b6 !important; border-radius: 50px; background: #fff !important; color: var(--tm-ink) !important; font-size: 14px; }
.tm-delivery .omniva-terminals-list .search-input::placeholder { color: var(--tm-mute) !important; opacity: 1; }
.tm-delivery .omniva-terminals-list .search-input:focus { outline: none; border-color: var(--tm-ink) !important; box-shadow: 0 0 0 3px rgba(219, 157, 49, 0.35); }
.tm-delivery .omniva-terminals-list ul { margin: 0; padding: 0; border-top: 1px solid var(--tm-line); list-style: none; }
.tm-delivery .omniva-terminals-list ul li { margin: 0; padding: 9px 12px; border: 0; border-radius: 0; background: #fff; color: var(--tm-ink); font-size: 14px; line-height: 1.35; cursor: pointer; }
.tm-delivery .omniva-terminals-list ul li:empty { display: none; }
.tm-delivery .omniva-terminals-list ul li.city { padding-top: 12px; background: var(--tm-paper); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tm-gold-ink); cursor: default; }
.tm-delivery .omniva-terminals-list ul li:not(.city):hover,
.tm-delivery .omniva-terminals-list ul li.selected,
.tm-delivery .omniva-terminals-list ul li.hover { background: #f3e6cf !important; color: var(--tm-ink) !important; }
.tm-delivery .itella-shipping-container ul li.itella-terminal-data:hover { color: var(--tm-ink) !important; }

/* one shipping option per row: logo + name left, price right */
.tm-delivery ul#shipping_method > li label { flex-wrap: nowrap; }
.tm-delivery ul#shipping_method > li label:has(.itella-shipping-container) { flex-wrap: wrap; }
.tm-delivery ul#shipping_method > li .omnivalt_terminal_container,
.tm-delivery ul#shipping_method > li .omniva-terminals-list { max-width: 420px; }
.tm-delivery ul#shipping_method > li label .itella-shipping-container { max-width: 420px; }

/* closed picker: the plugins fix it at ~24px; let it grow to fit */
.tm-delivery .omniva-terminals-list,
.tm-delivery .itella-shipping-container,
.tm-delivery .itella-shipping-container .itella-select { height: auto !important; }
.tm-delivery .omniva-terminals-list .dropdown,
.tm-delivery .itella-shipping-container .dropdown {
	position: relative;
	display: flex;
	align-items: center;
	height: auto !important;
	min-height: 44px;
	line-height: 1.3 !important;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.tm-delivery .omniva-terminals-list .inner-container,
.tm-delivery .itella-shipping-container .dropdown-inner { top: 100%; z-index: 20; }

/* EveryPay's widget needs room for its Pank / Kaart / PayPal tabs (it folds
   them behind "…" when narrow): let it use the full width of the step */
.tm-checkout #payment li.wc_payment_method > .payment_box.payment_method_everypay,
.tm-checkout #payment li.wc_payment_method > .payment_box.payment_method_everypay_sdk { margin: 12px -10px -6px; }
@media (max-width: 600px) {
	/* give EveryPay's widget every pixel so its tabs don't fold behind "…" */
	.tm-checkout__main.tm-card { padding-left: 14px; padding-right: 14px; }
	.tm-checkout #payment li.wc_payment_method { padding-left: 12px; padding-right: 12px; }
	.tm-checkout #payment li.wc_payment_method > .payment_box.payment_method_everypay,
	.tm-checkout #payment li.wc_payment_method > .payment_box.payment_method_everypay_sdk { margin: 12px -12px -10px; }
	.tm-checkout #payment .everypay-wrapper,
	.tm-checkout #payment fieldset#everypay_sdk-form { margin: 0; padding: 0; border: 0; }
}

/* quantity: an inline − 2 + stepper (no chip + popover) */
.tm-order__qty-chip { display: none !important; }
.tm-flow .tm-order__qty-pop,
.tm-flow .tm-order__qty-pop[hidden] {
	position: static;
	display: inline-flex;
	align-items: center;
	height: 32px;
	border: 1px solid var(--tm-line);
	border-radius: 50px;
	background: #fff;
	box-shadow: none;
}
.tm-flow .tm-order__qty-pop::before { display: none; }
.tm-flow .tm-order__qty-pop button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px !important;
	min-width: 0;
	height: 30px !important;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tm-ink);
	font-size: 16px;
	line-height: 1;
}
.tm-flow .tm-order__qty-pop button:hover { background: var(--tm-paper); }
.tm-flow .tm-order__qty-pop button:focus-visible { outline: 2px solid var(--tm-ink); outline-offset: 1px; }
.tm-flow .tm-order__qty-value { width: 22px; font-size: 14px; }
@media (max-width: 600px) {
	/* order line: name on top, stepper + price underneath */
	.tm-order__line {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr) auto auto;
		grid-template-areas: "thumb info info remove" "thumb qty price price";
		align-items: center;
		gap: 6px 10px;
	}
	.tm-order__thumb { grid-area: thumb; align-self: start; }
	.tm-order__info { grid-area: info; }
	.tm-order__qty { grid-area: qty; justify-self: start; }
	.tm-order__price { grid-area: price; }
	.tm-order__remove { grid-area: remove; align-self: start; }
}

/* ── thank-you: bank transfer panel ───────────────────────────────────── */
.tm-bank { padding: 24px; border: 1px solid #ead6b1; border-radius: var(--tm-radius); background: var(--tm-paper); }
.tm-bank__h { margin: 0 0 4px; font-family: var(--tm-head); font-weight: 800; font-size: 1.25rem; color: var(--tm-ink); }
.tm-bank__lead { margin: 0 0 16px; font-size: 14px; color: var(--tm-mute); }
.tm-bank__rows { display: flex; flex-direction: column; }
.tm-bank__rows + .tm-bank__rows { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tm-line); }
.tm-bank__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--tm-line); }
.tm-bank__row:last-child { border-bottom: 0; }
.tm-bank__k { font-size: 13px; color: var(--tm-mute); }
.tm-bank__v { font-size: 15px; font-weight: 700; color: var(--tm-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tm-bank__row--strong .tm-bank__v { font-size: 16px; }
.tm-flow .tm-bank__copy { padding: 6px 14px; border: 1px solid #cfc4b6; border-radius: 50px; background: #fff; color: var(--tm-ink); font-family: var(--tm-body); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.tm-flow .tm-bank__copy:hover { border-color: var(--tm-ink); }
.tm-flow .tm-bank__copy.is-done { border-color: var(--tm-ok); color: var(--tm-ok); }

/* ── thank-you: order summary (calmer) ───────────────────────────────── */
.tm-flow .tm-summary { gap: 0; }
.tm-flow .tm-summary__h { margin: 0 0 18px; }
.tm-flow .tm-summary__lines { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--tm-line); }
.tm-flow .tm-summary__line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; margin: 0; font-size: 14px; }
.tm-summary__qty { color: var(--tm-mute); font-variant-numeric: tabular-nums; }
.tm-summary__amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-flow .tm-summary__rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px 0; }
.tm-flow .tm-summary__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14px; }
.tm-flow .tm-summary__row dt { margin: 0; color: var(--tm-mute); font-weight: 400; }
.tm-flow .tm-summary__row dt small { display: block; margin-top: 2px; font-size: 12px; color: var(--tm-mute); opacity: 0.85; }
.tm-flow .tm-summary__row dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-summary__row--discount dd { color: var(--tm-ok); }
.tm-flow .tm-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 2px solid var(--tm-ink); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.tm-flow .tm-summary__total-v { font-family: var(--tm-head); font-size: 28px; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.tm-summary__vat { margin: 4px 0 0; text-align: right; font-size: 12px; color: var(--tm-mute); }
.tm-summary__vat .woocommerce-Price-amount { font-weight: 400; }
.tm-flow .tm-summary__info { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--tm-line); }
.tm-flow .tm-summary__info > div { display: flex; flex-direction: column; gap: 2px; }
.tm-flow .tm-summary__info dt { margin: 0; font-size: 12px; font-weight: 400; color: var(--tm-mute); }
.tm-flow .tm-summary__info dd { margin: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.tm-flow .tm-summary__gateway { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tm-line); }
@media (max-width: 600px) {
	.tm-bank { padding: 18px 16px; }
	.tm-bank__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k copy" "v copy"; row-gap: 2px; }
	.tm-bank__k { grid-area: k; }
	.tm-bank__v { grid-area: v; }
	.tm-bank__copy { grid-area: copy; }
}
