:root {
	color-scheme: var(--rt-color-scheme, dark);
}

html {
	background: var(--ivm-black);
	min-height: 100%;
}

body.ivt-body {
	background: var(--ivm-black);
	color: var(--ivm-white);
	font-family: var(--ivm-font-main);
	margin: 0;
	min-height: 100%;
}

.ivt-site {
	background: var(--ivm-black);
	min-height: 100dvh;
}

.ivt-site-header {
	left: -9999px;
	position: absolute;
	top: auto;
}

.ivt-skip-nav {
	display: flex;
	gap: 10px;
}

.ivt-skip-nav a {
	color: var(--ivm-white);
}

.ivt-main {
	margin: 0 auto;
	min-height: 100dvh;
	width: 100%;
}

.ivt-content {
	margin: 0;
}

.ivt-content > * {
	margin-block-start: 0;
}

.ivt-product-single {
	background: var(--ivm-black);
	color: var(--ivm-white);
	margin: 0 auto;
	max-width: 430px;
	min-height: 100dvh;
	padding: 24px 18px;
}

.ivt-product-single h1 {
	color: var(--ivm-gold);
	font-size: 32px;
	line-height: 1;
	margin: 20px 0;
}

.ivt-product-single img {
	border-radius: 8px;
	display: block;
	height: auto;
	max-width: 100%;
}

.ivt-back {
	color: var(--rt-color-text-muted, var(--ivm-white));
	text-decoration: none;
}

.ivt-legal-page {
	box-sizing: border-box;
	color: var(--rt-color-text, var(--ivm-white));
	line-height: 1.6;
	margin: 0 auto;
	max-width: 760px;
	min-height: 100dvh;
	padding: 32px 20px 56px;
}

.ivt-legal-page * {
	box-sizing: border-box;
}

.ivt-legal-page a {
	color: var(--ivm-gold);
	text-underline-offset: 3px;
}

.ivt-legal-page h1,
.ivt-legal-page h2 {
	color: var(--ivm-gold);
	line-height: 1.12;
	margin: 0 0 16px;
}

.ivt-legal-page h1 {
	font-size: 34px;
}

.ivt-legal-page h2 {
	font-size: 22px;
	margin-top: 34px;
}

.ivt-legal-page p,
.ivt-legal-page li {
	font-size: 16px;
}

.ivt-legal-page ul {
	padding-left: 22px;
}

.ivt-legal-page .ivt-legal-updated {
	color: rgba(246, 239, 230, 0.72);
	font-size: 14px;
	margin: 0 0 28px;
}

.ivt-legal-page .ivt-legal-back {
	display: inline-block;
	margin-bottom: 28px;
}

/* Canonical product variants. */
.ivt-variant-picker {
	border: 0;
	display: grid;
	gap: 8px;
	margin: 12px 0;
	min-width: 0;
	padding: 0;
	width: 100%;
}

.ivt-variant-picker legend {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.78));
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.ivt-variant-picker label {
	align-items: center;
	background: rgba(var(--ivm-white-rgb, 255, 255, 255), 0.045);
	border: 1px solid var(--ivm-border, rgba(255, 255, 255, 0.14));
	border-radius: 10px;
	cursor: pointer;
	display: grid;
	gap: 9px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 42px;
	padding: 8px 11px;
}

.ivt-variant-picker label:has(input:checked) {
	background: rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.13);
	border-color: var(--ivm-gold, #daac53);
}

.ivt-variant-picker input {
	accent-color: var(--ivm-gold, #daac53);
	height: 18px;
	margin: 0;
	width: 18px;
}

.ivt-variant-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.ivt-variant-price {
	color: var(--ivm-gold, #daac53);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	white-space: nowrap;
}

/* Summary pricing and canonical variant identity. */
.ivm-summary-item-variant {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.72));
	display: block;
	font-size: 0.88em;
	font-weight: 500;
	margin-top: 4px;
}

.ivt-summary-line-pricing {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.74));
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	line-height: 1.35;
	margin: 5px 0 0;
}

.ivt-summary-line-pricing.is-stale,
.ivt-summary-totals .is-stale {
	color: #ffb7b7;
}

.ivt-summary-totals {
	border-top: 1px solid rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.44);
	margin-top: 12px;
	padding-top: 12px;
}

.ivt-summary-totals[hidden] {
	display: none;
}

.ivt-summary-totals p {
	align-items: baseline;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0;
}

.ivt-summary-totals strong {
	color: var(--ivm-gold, #daac53);
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ivt-summary-totals small {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.72));
	display: block;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 7px;
}

/* Customer request composer. */
[data-ivt-request-composer-mount]:empty {
	display: none;
}

.ivt-request-composer {
	background:
		linear-gradient(145deg, rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.09), transparent 54%),
		rgba(var(--ivm-white-rgb, 255, 255, 255), 0.035);
	border: 1px solid var(--ivm-border, rgba(255, 255, 255, 0.14));
	border-radius: 14px;
	box-sizing: border-box;
	margin: 24px 0;
	padding: 20px;
}

.ivt-request-composer h2 {
	color: var(--ivm-gold, #daac53);
	font-size: clamp(21px, 5vw, 28px);
	line-height: 1.1;
	margin: 0 0 8px;
}

.ivt-request-intro,
.ivt-request-disclaimer,
.ivt-request-local-notice {
	line-height: 1.45;
	margin: 0;
}

.ivt-request-intro {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.8));
	font-size: 14px;
}

.ivt-request-id {
	align-items: baseline;
	border-bottom: 1px solid var(--ivm-border, rgba(255, 255, 255, 0.14));
	display: flex;
	font-size: 12px;
	gap: 10px;
	justify-content: space-between;
	margin: 16px 0;
	padding-bottom: 12px;
}

.ivt-request-id strong {
	color: var(--ivm-gold, #daac53);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 12px;
	overflow-wrap: anywhere;
}

.ivt-request-fields {
	display: grid;
	gap: 14px;
}

.ivt-request-field {
	display: grid;
	gap: 6px;
}

.ivt-request-field > span {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.ivt-request-field input,
.ivt-request-field select,
.ivt-request-field textarea {
	background: var(--rt-color-surface, #171717);
	border: 1px solid var(--ivm-border, rgba(255, 255, 255, 0.18));
	border-radius: 9px;
	box-sizing: border-box;
	color: var(--rt-color-text, #f6efe6);
	font: inherit;
	font-size: 16px;
	line-height: 1.35;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.ivt-request-field textarea {
	min-height: 104px;
	resize: vertical;
}

.ivt-request-field select {
	color-scheme: var(--rt-color-scheme, dark);
}

.ivm-allergen-notice {
	background: rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.1);
	border-left: 3px solid var(--ivm-gold, #daac53);
	box-sizing: border-box;
	color: var(--rt-color-text, #f6efe6);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
	margin: 14px 0 20px;
	padding: 11px 13px;
}

.ivt-request-privacy {
	align-items: flex-start;
	display: flex;
	font-size: 13px;
	gap: 9px;
	line-height: 1.4;
}

.ivt-request-privacy input {
	accent-color: var(--ivm-gold, #daac53);
	flex: 0 0 auto;
	height: 18px;
	margin: 1px 0 0;
	width: 18px;
}

.ivt-request-privacy a,
.ivt-language-suggestion a {
	color: var(--ivm-gold, #daac53);
}

.ivt-request-disclaimer {
	background: rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.1);
	border-left: 3px solid var(--ivm-gold, #daac53);
	font-size: 13px;
	font-weight: 700;
	margin-top: 18px;
	padding: 10px 12px;
}

.ivt-request-local-notice {
	color: var(--rt-color-text-muted, rgba(246, 239, 230, 0.68));
	font-size: 12px;
	margin-top: 9px;
}

.ivt-request-channels {
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 18px;
}

.ivt-request-channel,
.ivt-print-toolbar,
.ivt-system-banner button,
.ivt-system-banner a {
	align-items: center;
	background: var(--ivm-gold, #daac53);
	border: 1px solid var(--ivm-gold-strong, var(--ivm-gold, #daac53));
	border-radius: 999px;
	box-sizing: border-box;
	color: var(--rt-color-on-accent, #111);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 13px;
	font-weight: 850;
	justify-content: center;
	line-height: 1.15;
	min-height: 44px;
	padding: 10px 15px;
	text-align: center;
	text-decoration: none;
}

.ivt-request-channel--telegram,
.ivt-request-channel--copy,
.ivt-request-channel--print {
	background: transparent;
	color: var(--ivm-gold, #daac53);
}

.ivt-request-channel:disabled {
	cursor: not-allowed;
	opacity: 0.42;
}

.ivt-request-preview {
	border-top: 1px solid var(--ivm-border, rgba(255, 255, 255, 0.14));
	margin-top: 18px;
	padding-top: 12px;
}

.ivt-request-preview summary {
	color: var(--ivm-gold, #daac53);
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
}

.ivt-request-preview pre {
	background: rgba(0, 0, 0, 0.24);
	border-radius: 8px;
	color: var(--rt-color-text, #f6efe6);
	font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
	margin: 12px 0 0;
	max-height: 360px;
	overflow: auto;
	padding: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}

.ivt-print-toolbar {
	background: rgba(0, 0, 0, 0.46);
	border-color: rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.72);
	color: var(--ivm-gold, #daac53);
	margin: 12px auto 0;
}

/* System feedback and non-blocking update notices. */
.ivt-system-banners {
	bottom: max(16px, env(safe-area-inset-bottom));
	display: grid;
	gap: 9px;
	left: 50%;
	max-width: min(92vw, 620px);
	pointer-events: none;
	position: fixed;
	transform: translateX(-50%);
	width: max-content;
	z-index: 100001;
}

.ivt-system-banner {
	align-items: center;
	background: #171717;
	border: 1px solid rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.64);
	border-radius: 13px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	max-width: min(92vw, 620px);
	padding: 11px;
	pointer-events: auto;
}

.ivt-system-banner p {
	flex: 1 1 220px;
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
}

.ivt-system-banner button,
.ivt-system-banner a {
	font-size: 12px;
	min-height: 36px;
	padding: 8px 12px;
}

.ivt-system-banner button:last-child {
	background: transparent;
	color: var(--ivm-gold, #daac53);
}

.ivt-toast {
	background: #171717;
	border: 1px solid rgba(var(--ivm-gold-rgb, 218, 172, 83), 0.6);
	border-radius: 999px;
	bottom: max(16px, env(safe-area-inset-bottom));
	box-shadow: 0 14px 42px rgba(0, 0, 0, 0.46);
	box-sizing: border-box;
	color: var(--rt-color-text, #f6efe6);
	font-size: 13px;
	left: 50%;
	max-width: min(90vw, 520px);
	opacity: 0;
	padding: 10px 16px;
	pointer-events: none;
	position: fixed;
	text-align: center;
	transform: translate(-50%, 18px);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 100002;
}

.ivt-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ivt-variant-picker input:focus-visible,
.ivt-request-field input:focus-visible,
.ivt-request-field select:focus-visible,
.ivt-request-field textarea:focus-visible,
.ivt-request-privacy input:focus-visible,
.ivt-request-channel:focus-visible,
.ivt-print-toolbar:focus-visible,
.ivt-system-banner a:focus-visible,
.ivt-system-banner button:focus-visible {
	outline: 3px solid var(--ivm-white, #fff);
	outline-offset: 3px;
}

@media (max-width: 440px) {
	.ivt-request-composer {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		margin-left: -18px;
		margin-right: -18px;
		padding: 20px 18px;
	}

	.ivt-request-channels {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ivt-toast {
		transition: none;
	}
}

@media print {
	@page {
		margin: 12mm;
		size: auto;
	}

	:root {
		color-scheme: light;
	}

	html,
	body.ivt-body,
	.ivt-site,
	.ivt-main,
	.ivm-screen,
	.ivm-summary-page,
	.ivm-menu-app {
		background: #fff !important;
		color: #111 !important;
		min-height: 0 !important;
	}

	body.ivt-body {
		font-family: Arial, Helvetica, sans-serif;
	}

	.ivm-summary-toggle,
	.ivm-summary-backdrop,
	.ivm-summary-panel,
	.ivm-add-to-summary,
	.ivm-product-read-more,
	.ivm-summary-clear,
	.ivm-summary-qty-button,
	.ivt-request-channels,
	.ivt-print-toolbar,
	.ivt-system-banners,
	.ivt-toast,
	.ivm-app-footer,
	.ivm-service-message {
		display: none !important;
	}

	.ivm-summary-hero,
	.ivm-category-hero,
	.ivm-menu-header {
		background: #fff !important;
		color: #111 !important;
		min-height: 0 !important;
		padding-bottom: 8mm !important;
	}

	.ivm-summary-hero h1,
	.ivm-category-hero h1,
	.ivm-menu-header h1,
	.ivm-product-title,
	.ivm-product-price,
	.ivt-summary-totals strong,
	.ivt-request-composer h2 {
		color: #111 !important;
	}

	.ivm-product-card,
	.ivm-summary-item,
	.ivt-request-composer {
		background: #fff !important;
		border-color: #bbb !important;
		box-shadow: none !important;
		break-inside: avoid;
		color: #111 !important;
	}

	.ivt-variant-picker {
		display: none !important;
	}

	.ivm-summary-item-variant,
	.ivt-summary-line-pricing,
	.ivt-summary-totals small,
	.ivt-request-intro,
	.ivt-request-local-notice {
		color: #444 !important;
	}

	.ivt-summary-totals,
	.ivt-request-id {
		border-color: #888 !important;
	}

	.ivt-request-composer {
		margin-top: 8mm;
		page-break-inside: avoid;
	}

	.ivt-request-fields {
		display: none !important;
	}

	.ivt-request-disclaimer {
		background: #f2f2f2 !important;
		border-color: #444 !important;
		color: #111 !important;
	}

	.ivm-allergen-notice {
		background: #f2f2f2 !important;
		border-color: #444 !important;
		color: #111 !important;
	}

	a {
		color: #111 !important;
		text-decoration: none !important;
	}
}
