:root {
	/*
	 * =============================================
	 * ТЕМА САЙТА — меняйте эти поля под каждый сайт
	 * =============================================
	 */

	/* Кнопка (обычная) */
	--cc-btn-border: #c9c0b5;
	--cc-btn-bg: #ffffff;
	--cc-btn-text: #1c1917;

	/* Кнопка активная / выбранная */
	--cc-btn-active-border: #7a5a3c;
	--cc-btn-active-bg: #f3e6d4;
	--cc-btn-active-text: #3d2e20;

	/* Базовое скругление (кнопки и почти все элементы от него) */
	--cc-radius: 8px;

	/* Шрифт калькулятора (чтобы тема WordPress не подменяла) */
	--cc-font: Arial, Helvetica, sans-serif;

	/* Отступ сверху при встраивании в WordPress (между шапкой сайта и калькулятором) */
	--cc-embed-offset-top: 34px;

	/* Запас под липкую шапку при скролле к калькулятору (0 = подобрать автоматически) */
	--cc-scroll-offset: 0px;

	/*
	 * =============================================
	 * Служебные (пока не трогаем без нужды)
	 * =============================================
	 */
	--cc-radius-sm: calc(var(--cc-radius) * 0.67);
	--cc-radius-md: calc(var(--cc-radius) * 1.5);
	--cc-radius-lg: calc(var(--cc-radius) * 2.5);
	--cc-radius-xl: calc(var(--cc-radius) * 4.5);
	--cc-radius-pill: 999px;

	--cc-text: #000000;
	--cc-muted: #555555;
	--cc-border: #c8c8c8;
	--cc-link: #000000;
	--cc-card: #ffffff;
	--cc-card-soft: #f5f5f5;
	--cc-bg: #f4f4f4;
	--cc-danger: #d64545;
	--cc-block-shadow: 0 6px 10px rgba(0, 0, 0, 0.24);
	--cc-shadow: var(--cc-block-shadow);

	/* Совместимость со старыми именами */
	--cc-green: var(--cc-btn-active-border);
	--cc-green-dark: var(--cc-btn-active-text);
	--cc-green-soft: var(--cc-btn-active-bg);
}

* {
	box-sizing: border-box;
}

html.client-calc-page body {
	margin: 0;
	background: var(--cc-bg);
	color: var(--cc-text);
	font-family: var(--cc-font);
	font-size: 12px;
}

html.client-calc-page button,
html.client-calc-page input,
html.client-calc-page select {
	font: inherit;
}

html.client-calc-page button,
.client-calc button,
.price-bar button,
.type-guide-modal button,
.layout-modal button,
.cart-modal button {
	cursor: pointer;
}

html body .client-calc,
html body .client-calc *,
html body .type-guide-modal,
html body .type-guide-modal *,
html body .layout-modal,
html body .layout-modal *,
html body .cart-modal,
html body .cart-modal *,
html body .price-bar,
html body .price-bar * {
	font-family: var(--cc-font) !important;
}

.client-calc {
	width: min(1080px, calc(100% - 32px));
	margin: 0 auto;
	padding: 34px 0 52px;
}

.client-calc__hero {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding: 30px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-xl);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.client-calc__eyebrow,
.section-title p {
	margin: 0 0 8px;
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.client-calc h1,
.client-calc h2,
.client-calc h3 {
	margin: 0;
}

.client-calc h1 {
	max-width: 700px;
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.02;
}

.client-calc__lead {
	max-width: 690px;
	margin: 16px 0 0;
	color: var(--cc-muted);
	font-size: 18px;
	line-height: 1.5;
}

.client-calc__status {
	display: flex;
	min-width: 190px;
	flex-direction: column;
	justify-content: center;
	align-self: center;
	gap: 8px;
	padding: 18px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: var(--cc-card-soft);
	text-align: center;
}

.client-calc__status span {
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.client-calc__status strong {
	font-size: 18px;
}

.product-catalog,
.calculator-workspace,
.calculator-empty {
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-xl);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.calculator-empty {
	margin-bottom: 22px;
	padding: 24px;
}

.calculator-empty__text {
	margin: 0 0 18px;
	color: var(--cc-muted);
	font-size: 16px;
	line-height: 1.5;
}

.client-calc__back-wrap {
	margin: 18px 0 0;
}

.client-calc__back {
	color: var(--cc-link);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}

.client-calc__back:hover {
	text-decoration: underline;
}

.client-calc--catalog .product-catalog {
	margin-bottom: 0;
}

.product-catalog {
	margin-bottom: 22px;
	padding: 24px;
}

.calculator-workspace {
	padding: 24px;
	overflow: hidden;
}

body.is-layout-file-drag::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1195;
	background: rgba(18, 24, 12, 0.45);
	pointer-events: none;
}

.calculator-workspace.is-file-drag {
	position: relative;
	z-index: 1196;
	outline: 2px dashed var(--cc-green);
	outline-offset: 4px;
}

.calculator-workspace.is-file-drag::before,
.calculator-workspace.is-file-drag::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.calculator-workspace.is-file-drag::before {
	z-index: 5;
	background: rgba(255, 255, 255, 0.28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.calculator-workspace.is-file-drag::after {
	content: "Бросьте макет сюда";
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: var(--cc-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.section-title {
	margin-bottom: 18px;
}

.calculator-workspace > .section-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	background: none;
}

.section-title__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 10px;
}

.section-title h2 {
	font-size: 25px;
}

.section-title .workspace-description,
.calculator-workspace .workspace-description {
	margin: 0;
	max-width: 52rem;
	color: var(--cc-muted);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.45;
	text-transform: none;
}

.examples-link-wrap {
	display: inline;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.examples-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #c2410c;
	font: inherit;
	cursor: pointer;
	text-decoration: underline dashed;
	text-underline-offset: 3px;
	vertical-align: -2px;
}

.examples-link__icon {
	display: block;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
	transition: transform 0.16s ease;
}

.examples-link:hover,
.examples-link:focus-visible {
	border: 0;
	background: none;
	outline: none;
	color: #9a3412;
	text-decoration: underline dashed;
}

.examples-link:hover .examples-link__icon,
.examples-link:focus-visible .examples-link__icon {
	transform: scale(1.12) rotate(-8deg);
}

.examples-gallery .type-guide-item__images {
	margin-top: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.examples-gallery .type-guide-item__figure {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: none;
}

.examples-gallery .type-guide-item__figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	max-height: min(320px, 42vh);
	object-fit: cover;
	object-position: center;
	background: #ebe7e0;
}

.examples-gallery .type-guide-item__figure figcaption {
	margin-top: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.examples-gallery .type-guide-item__caption {
	display: block;
}

.examples-gallery .type-guide-item__note {
	display: block;
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.type-guide-modal__dialog:has(.examples-gallery) {
	width: min(640px, 100%);
}

.type-guide-modal__dialog:has(.examples-carousel) {
	width: min(520px, 100%);
}

.examples-carousel {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.examples-carousel__stage {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 40px;
	align-items: center;
	gap: 8px;
}

.examples-carousel__viewport {
	min-width: 0;
}

.examples-carousel__slide {
	width: 100%;
}

.examples-carousel__slide[hidden] {
	display: none !important;
}

.examples-carousel .type-guide-item__figure {
	width: 100%;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

.examples-carousel .type-guide-item__figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	max-height: min(420px, 52vh);
	object-fit: cover;
	object-position: center;
	background: #ebe7e0;
}

.type-guide-item__figure.is-fit-contain {
	max-width: min(100%, 480px);
}

.type-guide-item__figure.is-fit-contain img,
.examples-gallery .type-guide-item__figure.is-fit-contain img,
.examples-carousel .type-guide-item__figure.is-fit-contain img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(68vh, 620px);
	aspect-ratio: auto;
	object-fit: contain;
	object-position: center;
	margin-left: auto;
	margin-right: auto;
	background: #f3f1ec;
}

.examples-carousel .type-guide-item__figure figcaption {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.examples-carousel .type-guide-item__note {
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 400;
}

.examples-carousel__nav {
	width: 40px;
	height: 40px;
	border: 1px solid var(--cc-border);
	border-radius: 50%;
	background: #ffffff;
	color: var(--cc-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.examples-carousel__nav:hover:not(:disabled) {
	border-color: var(--cc-btn-active-border);
	background: var(--cc-card-soft);
}

.examples-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.examples-carousel__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.examples-carousel__counter {
	color: var(--cc-muted);
	font-size: 13px;
}

.examples-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.examples-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfc8bc;
	cursor: pointer;
}

.examples-carousel__dot.is-active {
	background: var(--cc-btn-active-border, #7a5a3c);
}

@media (max-width: 640px) {
	.examples-gallery .type-guide-item__images {
		grid-template-columns: 1fr;
	}

	.examples-gallery .type-guide-item__figure img {
		max-height: min(360px, 42vh);
	}

	.examples-carousel__stage {
		grid-template-columns: 36px minmax(0, 1fr) 36px;
		gap: 4px;
	}

	.examples-carousel .type-guide-item__figure img {
		max-height: min(360px, 48vh);
	}
}

.product-catalog__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.product-card {
	position: relative;
	display: block;
	width: 100%;
	min-height: 148px;
	padding: 18px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius-md);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	text-align: left;
	text-decoration: none;
	transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover:not(.is-disabled) {
	border-color: var(--cc-btn-active-border);
}

.product-card.is-active {
	border-color: var(--cc-btn-active-border);
	background: var(--cc-btn-active-bg);
	color: var(--cc-btn-active-text);
	box-shadow: none;
}

.product-card.is-disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.product-card h3 {
	font-size: 16px;
	color: inherit;
}

.product-card p {
	margin: 8px 0 0;
	color: var(--cc-text);
	font-size: 13px;
	line-height: 1.4;
}



.product-card__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 4px 8px;
	border-radius: var(--cc-radius-pill);
	background: var(--cc-card-soft);
	color: var(--cc-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.calc-grid {
	display: block;
}

.calc-grid__columns,
.postprint-panel {
	width: 100%;
	max-width: calc(280px * 3 + 28px * 2);
	margin-left: auto;
	margin-right: auto;
}

.calc-grid__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.calc-column {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.calc-column h3 {
	margin-bottom: 14px;
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.option-list {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
}

.type-guide-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 8px 2px 0;
	border: 0;
	border-top: 0;
	background: none;
	color: #c2410c;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	text-decoration: underline dashed;
	text-underline-offset: 3px;
}

.type-guide-link:hover {
	color: #9a3412;
	text-decoration: underline dashed;
}

.type-guide-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
	transition: transform 0.16s ease;
}

.type-guide-link:hover .type-guide-link__icon,
.type-guide-link:focus-visible .type-guide-link__icon {
	transform: scale(1.12) rotate(-6deg);
}

.type-guide-modal[hidden] {
	display: none !important;
}

body.type-guide-modal-open {
	overflow: hidden;
}

body.type-guide-modal-open .price-bar.is-docked {
	visibility: hidden;
}

.type-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.type-guide-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 12, 0.55);
}

.type-guide-modal__dialog {
	position: relative;
	width: min(720px, 100%);
	max-height: min(calc(100dvh - 48px), 900px);
	overflow: auto;
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(18, 24, 12, 0.18);
}

.type-guide-modal__dialog:has(.type-guide-modal__body--types) {
	width: min(860px, 100%);
}

.type-guide-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--cc-card-soft);
	color: var(--cc-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.type-guide-modal__close:hover {
	color: var(--cc-text);
}

.type-guide-modal__title {
	margin: 0 36px 8px 0;
	color: var(--cc-text);
	font-size: 22px;
}

.type-guide-modal__intro {
	margin: 0 0 18px;
	color: var(--cc-muted);
	line-height: 1.5;
}

.type-guide-modal__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.type-guide-modal__body--types {
	gap: 14px;
}

.type-guide-item {
	padding: 0;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #fff;
	overflow: hidden;
}

.type-guide-item__layout {
	display: grid;
	grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	min-height: 180px;
}

.type-guide-item__layout--text-only {
	grid-template-columns: 1fr;
}

.type-guide-item__media {
	background: #f3f1ec;
	padding: 12px;
	border-right: 1px solid var(--cc-border);
}

.type-guide-item__media .type-guide-item__images {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.type-guide-item__media .type-guide-item__images:has(> :nth-child(2)) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.type-guide-item__media .type-guide-item__figure img {
	aspect-ratio: 3 / 4;
	max-height: 220px;
	border: 0;
	background: #ebe7e0;
}

.type-guide-item__media .type-guide-item__figure figcaption {
	display: none;
}

.type-guide-item__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 20px;
}

.type-guide-item__title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.type-guide-item__title-row h4 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
}

.type-guide-item__title-row .option-chip__badge {
	margin-left: 0;
}

.type-guide-item__summary {
	margin: 0;
	flex: 1 1 auto;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}

.type-guide-item__select {
	margin-top: auto;
	flex-shrink: 0;
	padding: 10px 16px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius-md);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.type-guide-item__select:hover {
	border-color: var(--cc-btn-active-border);
	background: var(--cc-btn-active-bg);
	color: var(--cc-btn-active-text);
}

.type-guide-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.type-guide-item__head h4 {
	margin: 0;
	font-size: 17px;
}

.type-guide-item__images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 12px;
}

.type-guide-item__figure {
	margin: 0;
}

.type-guide-item__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	max-height: 260px;
	object-fit: cover;
	object-position: center;
	border-radius: var(--cc-radius-md);
	border: 1px solid var(--cc-border);
	background: #ebe7e0;
}

.type-guide-item__figure figcaption {
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--cc-muted);
	font-size: 12px;
	line-height: 1.35;
}

.type-guide-item__caption {
	display: block;
}

.type-guide-item__note {
	display: block;
	font-size: 11px;
	font-weight: 400;
	opacity: 0.9;
}

@media (max-width: 720px) {
	.type-guide-item__layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.type-guide-item__media {
		border-right: 0;
		border-bottom: 1px solid var(--cc-border);
	}

	.type-guide-item__media .type-guide-item__images {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	}

	.type-guide-item__media .type-guide-item__figure img {
		max-height: 200px;
	}

	.type-guide-item__content {
		padding: 16px;
	}
}

.option-chip {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	font-weight: 700;
	text-align: left;
	transition: border-color 0.16s ease, background 0.16s ease;
}

.option-chip__label {
	display: block;
}

.option-chip__format,
.option-chip.is-active .option-chip__format {
	color: #c2410c;
}

.option-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	width: 22px;
	height: 22px;
	padding: 0;
	border-radius: 50%;
	background: linear-gradient(145deg, #f0d9a8 0%, #e2c07a 100%);
	color: #8a6230;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.option-chip__badge-icon {
	display: block;
	flex-shrink: 0;
}

.option-chip.is-active .option-chip__badge {
	background: rgba(255, 255, 255, 0.32);
	color: var(--cc-btn-active-text);
	box-shadow: none;
}

.option-chip__price {
	display: block;
	color: var(--cc-btn-text);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.option-chip.is-active .option-chip__price {
	color: var(--cc-btn-active-text);
}

.option-chip:hover:not(.is-disabled) {
	border-color: var(--cc-btn-active-border);
}

.option-chip.is-active {
	border-color: var(--cc-btn-active-border);
	background: var(--cc-btn-active-bg);
	color: var(--cc-btn-active-text);
	box-shadow: none;
}

.option-chip.is-disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.option-inline-custom {
	position: relative;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding: 8px 12px;
	border: 1px solid var(--cc-btn-active-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-active-bg);
	box-shadow: none;
}

.option-inline-custom__fields {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.option-inline-custom .option-chip__price {
	color: var(--cc-btn-active-text);
	margin-left: auto;
}

.option-inline-custom__control {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
}

.option-inline-custom__tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	z-index: 5;
	min-width: 160px;
	padding: 8px 10px;
	border-radius: var(--cc-radius-sm);
	background: #3d4a5c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
	transform: translateX(-50%);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

.option-inline-custom__tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	border: 6px solid transparent;
	border-top-color: #3d4a5c;
	transform: translateX(-50%);
}

.option-inline-custom__tooltip div + div {
	margin-top: 2px;
}

.option-inline-custom input {
	width: 78px;
	padding: 8px 10px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius-sm);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	outline: none;
}

.option-inline-custom input::placeholder {
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 500;
	opacity: 1;
}

.option-inline-custom input:focus {
	border-color: var(--cc-btn-active-border);
	box-shadow: none;
}

.option-inline-custom input.is-invalid {
	border-color: #d64545;
}

.option-inline-custom input.is-invalid:focus {
	border-color: #d64545;
	box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.18);
}

.option-inline-custom__sep,
.option-inline-custom__unit {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 700;
}

.price-bar-slot {
	margin: 0;
}

.order-footer {
	margin: 24px -24px -24px;
	border-top: 1px solid var(--cc-border);
	background: var(--cc-card);
}

.price-bar {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--cc-card);
	box-shadow: none;
}

.price-bar.is-docked {
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 1200;
	margin: 0;
	width: auto;
	max-width: none;
	border-radius: 0;
	border-top: 1px solid var(--cc-border);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.price-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 18px;
	width: 100%;
	max-width: calc(280px * 3 + 28px * 2);
	margin-left: auto;
	margin-right: auto;
	padding: 20px 24px;
}

.price-bar__summary {
	flex: 1 1 auto;
	min-width: 12rem;
	width: auto;
	max-width: none;
}

.price-bar__label {
	display: block;
	margin-bottom: 6px;
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.price-bar__value {
	flex: 0 0 auto;
	color: var(--cc-text);
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1;
	white-space: nowrap;
}

.price-bar__hint {
	margin: 0;
	width: auto;
	max-width: none;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-line;
}

.price-bar__aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.layout-cart {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	max-width: 16rem;
}

.layout-cart:not(:has(> :not([hidden]))) {
	display: none;
}

.layout-cart__confirm[hidden] {
	display: none !important;
}

.layout-cart__confirm {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.layout-cart__confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

a.layout-upload__button {
	display: inline-block;
	box-sizing: border-box;
	text-decoration: none;
	line-height: 1.25;
}

.price-bar__layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.price-bar__layout[hidden],
.price-bar__preview[hidden] {
	display: none !important;
}

.price-bar__preview {
	flex: 0 0 auto;
	margin: 0 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	overflow: visible;
	cursor: pointer;
}

.price-bar__preview-stack {
	position: relative;
	display: block;
	width: 96px;
	height: 124px;
	transition: transform 0.16s ease;
}

.price-bar__preview.is-stack-2 .price-bar__preview-stack::before,
.price-bar__preview.is-stack-3 .price-bar__preview-stack::before,
.price-bar__preview.is-stack-3 .price-bar__preview-stack::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 96px;
	height: 124px;
	border-radius: 6px;
	border: 1px solid rgba(18, 24, 12, 0.16);
	box-shadow: 0 1px 4px rgba(18, 24, 12, 0.16);
	pointer-events: none;
}

.price-bar__preview.is-stack-2 .price-bar__preview-stack::before {
	z-index: 0;
	background: #e8e4dc;
	transform: translate(3px, 4px);
}

.price-bar__preview.is-stack-3 .price-bar__preview-stack::before {
	z-index: 0;
	background: #ddd8ce;
	transform: translate(5px, 6px);
}

.price-bar__preview.is-stack-3 .price-bar__preview-stack::after {
	z-index: 1;
	background: #ece8e0;
	transform: translate(3px, 3px);
}

.price-bar__preview-frame {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 56px;
	overflow: hidden;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(18, 24, 12, 0.28);
	transition: box-shadow 0.16s ease;
}

.price-bar__preview-frame::after {
	content: "";
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.price-bar__preview img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	pointer-events: none;
}

.price-bar__preview img[hidden],
.price-bar__preview-fallback[hidden],
.price-bar__file[hidden] {
	display: none !important;
}

.price-bar__preview-fallback {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	box-sizing: border-box;
	width: 52px;
	height: 64px;
	padding: 0 4px 10px;
	border: 1.5px solid var(--cc-btn-active-border);
	border-radius: 4px 14px 4px 4px;
	background:
		linear-gradient(135deg, transparent 50%, var(--cc-card-soft) 50%) top right / 16px 16px no-repeat,
		#fff;
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.price-bar__file {
	max-width: 110px;
	margin: 0;
	overflow: hidden;
	color: var(--cc-text);
	font-size: 11px;
	font-weight: 650;
	line-height: 1.3;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.price-bar__preview:hover .price-bar__preview-stack,
.price-bar__preview:focus-visible .price-bar__preview-stack {
	transform: translateY(-1px);
}

.price-bar__preview:hover .price-bar__preview-frame,
.price-bar__preview:focus-visible .price-bar__preview-frame {
	box-shadow: 0 4px 14px rgba(18, 24, 12, 0.34);
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 2px;
}

.price-bar.has-layout-preview .price-bar__preview {
	width: 96px;
	height: 124px;
	flex: 0 0 96px;
	margin: 0;
}

.price-bar.has-layout-preview .price-bar__preview.is-stack-2 {
	width: 99px;
	height: 128px;
	flex: 0 0 99px;
}

.price-bar.has-layout-preview .price-bar__preview.is-stack-3 {
	width: 101px;
	height: 130px;
	flex: 0 0 101px;
}

.price-bar.has-layout-preview .price-bar__preview-frame {
	width: 96px;
	height: 124px;
	min-height: 124px;
}

.price-bar-slot.has-layout-upload {
	margin-bottom: 0;
}

.layout-upload[hidden] {
	display: none !important;
}

.layout-upload {
	position: relative;
	overflow: hidden;
	display: block;
	margin: 0;
	padding: 16px 24px 20px;
	border-top: 1px solid var(--cc-border);
	border-radius: 0 0 14px 14px;
	background: var(--cc-card);
	transition: background 0.16s ease;
}

.layout-upload::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--layout-progress, 0%);
	background: var(--cc-btn-active-bg);
	pointer-events: none;
	transition: width 0.16s ease;
	z-index: 0;
}

.layout-upload__dash {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	color: var(--cc-green);
	pointer-events: none;
}

.layout-upload__dash path {
	fill: none;
	stroke: currentColor;
	stroke-width: 5px;
	stroke-dasharray: 18 18;
	stroke-linejoin: miter;
}

.layout-upload__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	min-height: 42px;
	width: 100%;
	max-width: calc(280px * 3 + 28px * 2);
	margin-left: auto;
	margin-right: auto;
	padding: 4px 0;
	border-radius: var(--cc-radius);
}

.layout-upload.is-uploading .layout-upload__inner {
	justify-content: flex-start;
}

.layout-upload__status[hidden],
.layout-upload__button[hidden],
.layout-upload__copy[hidden],
.layout-upload__bar[hidden] {
	display: none !important;
}

.layout-upload__bar {
	flex: 1 1 auto;
	min-width: 96px;
}

.layout-upload input[type="file"],
#layoutFileInput,
#cartLayoutFileInput {
	display: none !important;
}

.layout-upload__copy {
	flex: 1 1 auto;
	min-width: 0;
	cursor: pointer;
}

.layout-upload__title {
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
}

.layout-upload__limits {
	margin: 4px 0 0;
	color: var(--cc-muted);
	font-size: 12px;
	line-height: 1.4;
}

.layout-upload__status {
	flex: 0 0 auto;
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.layout-upload__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.layout-upload__button {
	flex: 0 0 auto;
	min-width: 0;
	padding: 10px 18px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

html.client-calc-page .layout-upload__skip {
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
}

.layout-upload__button:hover:not(:disabled) {
	border-color: var(--cc-btn-active-border);
}

#layoutCartOpen {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

#layoutCartOpen:hover:not(:disabled) {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

.layout-cart__add {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.layout-cart__add:hover:not(:disabled) {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

.layout-upload__button:disabled {
	cursor: default;
}

.layout-modal__actions {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 8px 0 0;
}

.layout-modal__actions-start {
	display: flex;
	flex-wrap: wrap;
	justify-self: start;
	gap: 8px;
}

.layout-modal__delete {
	justify-self: start;
	padding: 6px 10px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-bg);
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.layout-modal__delete:hover {
	border-color: var(--cc-danger);
	color: var(--cc-danger);
}

.price-bar__remove {
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.2;
}

.layout-modal__accept {
	justify-self: center;
	padding: 10px 18px;
	border: 1px solid var(--cc-text);
	border-radius: var(--cc-radius);
	background: var(--cc-text);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.layout-modal__accept:hover {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

.layout-modal__actions-spacer {
	display: block;
	min-width: 0;
}

body.layout-modal-open {
	overflow: hidden;
}

body.layout-modal-open .price-bar.is-docked {
	visibility: hidden;
}

.layout-modal[hidden] {
	display: none !important;
}

.layout-modal {
	position: fixed;
	inset: 0;
	z-index: 100010;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.layout-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 12, 0.55);
}

.layout-modal__dialog {
	position: relative;
	width: min(860px, 100%);
	max-height: min(calc(100dvh - 48px), 920px);
	overflow: auto;
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(18, 24, 12, 0.18);
}

.layout-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--cc-card-soft);
	color: var(--cc-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.layout-modal__close:hover {
	color: var(--cc-text);
}

.layout-modal__title {
	margin: 0 36px 16px 0;
	color: var(--cc-text);
	font-size: 22px;
}

.layout-modal__title[hidden] {
	display: none;
}

.layout-modal__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.layout-modal__status,
.layout-modal__percent {
	margin: 0;
	color: var(--cc-muted);
	font-size: 14px;
}

.layout-modal__cancel {
	align-self: flex-start;
	width: auto;
}

.layout-file {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.layout-file__ext {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 42px;
	padding: 0 3px 6px;
	border: 1.5px solid var(--cc-btn-active-border);
	border-radius: 3px 9px 3px 3px;
	background:
		linear-gradient(135deg, transparent 50%, var(--cc-card-soft) 50%) top right / 12px 12px no-repeat,
		#fff;
	color: var(--cc-text);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
}

.layout-file__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.layout-file__label {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.layout-file__name {
	min-width: 0;
	overflow: hidden;
	color: var(--cc-text);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.layout-modal__bar {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--cc-card-soft);
}

.layout-modal__bar-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--cc-btn-active-border);
	transition: width 0.16s ease;
}

.layout-modal__bar.is-indeterminate .layout-modal__bar-fill {
	width: 36%;
	animation: layout-bar 1.1s ease-in-out infinite;
}

@keyframes layout-bar {
	0% { transform: translateX(-120%); }
	100% { transform: translateX(320%); }
}

.layout-modal__previews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.layout-modal__preview {
	margin: 0;
	padding: 8px;
	overflow: hidden;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card-soft);
}

.layout-modal__preview-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 12px;
	border-radius: 6px;
	background-color: #ffffff;
	background-image: repeating-conic-gradient(#c8c8c8 0% 25%, #ffffff 0% 50%);
	background-size: 16px 16px;
}

.layout-modal__preview img {
	display: block;
	max-width: 100%;
	max-height: 360px;
	width: auto;
	height: auto;
	object-fit: contain;
	background: transparent;
}

.layout-modal__preview-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 180px;
	border-radius: 8px;
	background: var(--cc-card-soft);
}

.layout-modal__preview-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--cc-border);
	border-top-color: var(--cc-btn-active-border);
	border-radius: 50%;
	animation: layout-preview-spin 0.8s linear infinite;
}

.layout-modal__preview-wait {
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.3;
}

@keyframes layout-preview-spin {
	to { transform: rotate(360deg); }
}

.layout-modal__preview-error {
	margin: 0;
	box-sizing: border-box;
	min-height: 180px;
	max-height: 180px;
	overflow: hidden;
	padding: 16px 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	word-break: break-word;
}

.layout-modal__preview figcaption {
	margin-top: 8px;
	color: var(--cc-muted);
	font-size: 12px;
	text-align: center;
}

.layout-modal__page-total {
	margin: 0;
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.layout-modal__json {
	margin: 0;
	max-height: 420px;
	overflow: auto;
	padding: 12px 14px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: #f7f7f5;
	color: var(--cc-text);
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.layout-modal__error {
	margin: 0;
	color: var(--cc-danger);
	font-size: 15px;
	line-height: 1.45;
}

.layout-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.layout-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.4;
}

.layout-check__mark {
	flex: 0 0 auto;
	width: 1.15em;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

.layout-check__text {
	min-width: 0;
}

.layout-check--pass .layout-check__mark {
	color: #2f9e44;
}

.layout-check--fail .layout-check__mark {
	color: var(--cc-danger);
}

.layout-check--unknown .layout-check__mark {
	color: var(--cc-muted);
}

.layout-checks-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
}

.layout-checks-note__icon {
	flex: 0 0 auto;
	width: 1.15em;
	margin-top: 1px;
	color: var(--cc-muted);
	line-height: 1;
	text-align: center;
}

.layout-checks-note__icon svg {
	display: block;
	margin: 0 auto;
}

.layout-checks-note__text {
	min-width: 0;
	font-weight: 400;
}

.postprint-panel {
	margin-top: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.postprint-panel__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 300px));
	gap: 14px;
	justify-content: start;
}

.postprint-field {
	display: grid;
	gap: 8px;
}

.postprint-field__label-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.postprint-field__label-row > span:not(.examples-link-wrap) {
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 700;
}

.postprint-field__help {
	display: inline;
	flex-shrink: 0;
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--cc-link);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: underline dashed;
	text-underline-offset: 3px;
}

.postprint-field__help:hover,
.postprint-field__help:focus-visible {
	border: 0;
	color: var(--cc-link);
	background: none;
	outline: none;
	text-decoration: underline dashed;
}

.postprint-field select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	outline: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--cc-muted) 50%), linear-gradient(135deg, var(--cc-muted) 50%, transparent 50%);
	background-position: calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.postprint-field select:focus {
	border-color: var(--cc-btn-active-border);
	box-shadow: none;
}

.client-calc-engine {
	display: none;
}

@media (max-width: 1024px) {
	.product-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.calc-grid__columns {
		grid-template-columns: 1fr;
	}

	.calc-column .option-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.calc-column .option-list > .is-custom-solo {
		grid-column: 1 / -1;
		width: calc((100% - 8px) / 2);
		max-width: calc((100% - 8px) / 2);
		justify-self: start;
		min-width: 0;
	}

	.calc-column .option-list > .option-inline-custom.is-custom-solo {
		flex-wrap: wrap;
	}

	.calc-column .option-list > .option-inline-custom.is-custom-solo .option-inline-custom__fields {
		max-width: 100%;
		min-width: 0;
	}

	.calc-column .option-list > .type-guide-link {
		grid-column: 1 / -1;
		justify-self: start;
		width: auto;
	}

	.calc-column .option-chip {
		min-width: 0;
		align-items: center;
	}

	.calc-column .option-chip__label {
		flex: 1 1 auto;
		min-width: 0;
		line-height: 1.25;
		overflow-wrap: break-word;
	}

	.calc-column .option-chip__price,
	.calc-column .option-chip__badge {
		flex-shrink: 0;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 15px;
	}

	.client-calc {
		width: 100%;
		padding: 0 0 92px;
	}

	.client-calc__hero,
	.product-catalog,
	.calculator-workspace {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.client-calc__hero,
	.product-catalog,
	.calculator-workspace {
		padding: 18px;
	}

	.calc-column .option-inline-custom.is-custom-solo {
		padding: 6px;
		gap: 4px;
	}

	.calc-column .option-inline-custom.is-custom-solo .option-inline-custom__fields {
		gap: 4px;
	}

	.calc-column .option-inline-custom.is-custom-solo input {
		width: 52px;
		padding: 6px 4px;
	}

	.calculator-workspace > .section-title {
		margin: 0 0 16px;
		padding: 0;
	}

	.price-bar-slot {
		margin: 0;
	}

	.order-footer {
		margin: 18px -18px -18px;
	}

	.layout-upload {
		margin: 0;
		padding: 14px 18px 16px;
	}

	.layout-upload__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.layout-upload__copy {
		flex: 0 0 auto;
	}

	.layout-upload__actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.layout-upload__actions .layout-upload__button {
		flex: 1 1 8rem;
		padding-left: 10px;
		padding-right: 10px;
	}

	.price-bar__inner {
		padding: 18px;
	}

	.price-bar.is-docked {
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.client-calc__hero {
		flex-direction: column;
	}

	.product-catalog__grid,
	.postprint-panel__fields {
		grid-template-columns: 1fr;
	}
}

/* Встраивание в WordPress / стороннюю страницу */
.client-calc--embed {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: var(--cc-embed-offset-top) 0 24px;
}

.client-calc--embed .product-catalog,
.client-calc--embed .calculator-workspace {
	border-radius: var(--cc-radius-lg);
}

.client-calc--no-catalog .product-catalog {
	display: none;
}

/* Перебить типографику темы WordPress (h2/h3, размер и начертание) */
html body .client-calc h1,
html body .client-calc h2,
html body .client-calc h3,
html body .type-guide-modal h3,
html body .type-guide-modal h4,
html body .layout-modal h3,
html body .cart-modal h3 {
	font-family: var(--cc-font) !important;
	font-style: normal !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin-top: 0;
}

html body .client-calc .section-title h2 {
	font-size: 25px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

html body .client-calc .product-card h3 {
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
}

html body .client-calc .product-card p,
html body .client-calc .workspace-description {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

html body .client-calc .product-card p {
	font-size: 13px !important;
	line-height: 1.4 !important;
}

html body .client-calc .calc-column h3,
html body .client-calc .type-guide-link__label {
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

html body .client-calc .option-chip,
html body .client-calc .option-chip__label {
	font-family: var(--cc-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

html body .client-calc .option-chip__price {
	font-size: 12px !important;
	font-weight: 400 !important;
}

html body .client-calc .price-bar__label {
	font-size: 12px !important;
	font-weight: 700 !important;
}

html body .client-calc .price-bar__hint {
	font-size: 14px !important;
	font-weight: 400 !important;
}

html body .client-calc .price-bar__value {
	font-size: clamp(30px, 5vw, 42px) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

html body .price-bar.has-layout-preview .price-bar__preview-stack {
	display: block !important;
	width: 96px !important;
	height: 124px !important;
	max-width: 96px !important;
	max-height: 124px !important;
}

html body .price-bar.has-layout-preview .price-bar__preview-frame,
html body .price-bar.has-layout-preview .price-bar__preview img {
	width: 96px !important;
	height: 124px !important;
	max-width: 96px !important;
	max-height: 124px !important;
}

html body .price-bar.has-layout-preview .price-bar__preview {
	padding: 0 !important;
	flex: 0 0 96px !important;
	width: 96px !important;
	height: 124px !important;
	max-width: 96px !important;
	max-height: 124px !important;
	overflow: visible !important;
}

html body .price-bar.has-layout-preview .price-bar__preview.is-stack-2 {
	width: 99px !important;
	height: 128px !important;
	max-width: 99px !important;
	max-height: 128px !important;
	flex: 0 0 99px !important;
}

html body .price-bar.has-layout-preview .price-bar__preview.is-stack-3 {
	width: 101px !important;
	height: 130px !important;
	max-width: 101px !important;
	max-height: 130px !important;
	flex: 0 0 101px !important;
}

html body .price-bar.has-layout-preview .price-bar__preview img {
	object-fit: cover !important;
}

html body .price-bar .price-bar__label,
html body .price-bar .price-bar__hint,
html body .price-bar .price-bar__value,
html body .price-bar .layout-upload__button {
	font-family: var(--cc-font) !important;
}

html body .price-bar .price-bar__summary {
	flex: 1 1 auto !important;
	min-width: 12rem !important;
	width: auto !important;
	max-width: none !important;
}

html body .price-bar .price-bar__hint {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

html body .price-bar .layout-upload__button {
	width: auto !important;
	max-width: none !important;
}

html body .price-bar #layoutFileInput {
	display: none !important;
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
}

html body .price-bar .price-bar__value {
	font-size: clamp(30px, 5vw, 42px) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

@media (max-width: 520px) {
	html body .price-bar .price-bar__inner {
		align-items: flex-start;
		gap: 12px;
	}

	html body .price-bar .price-bar__summary {
		min-width: 0 !important;
		flex: 1 1 0 !important;
	}

	html body .price-bar .price-bar__value {
		font-size: 30px !important;
	}
}

html body .client-calc .product-card__badge {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: normal !important;
}

html body .client-calc .examples-link,
html body .client-calc .examples-link__text,
html body .client-calc .type-guide-link,
html body .client-calc .type-guide-link__label {
	color: #c2410c !important;
}

html body .client-calc .examples-link:hover,
html body .client-calc .examples-link:hover .examples-link__text,
html body .client-calc .examples-link:focus-visible,
html body .client-calc .type-guide-link:hover,
html body .client-calc .type-guide-link:hover .type-guide-link__label {
	color: #9a3412 !important;
}

html body .client-calc button,
html body .client-calc input,
html body .client-calc select,
html body .type-guide-modal button,
html body .layout-modal button,
html body .cart-modal button,
html body .cart-modal input,
html body .cart-modal textarea {
	font-family: var(--cc-font) !important;
}

.cart__status[hidden],
.cart__empty[hidden],
.cart__list[hidden],
.cart__footer[hidden],
.cart-item__error[hidden],
.cart-comment[hidden],
.cart-checkout__next[hidden],
#cartModalToOrders[hidden],
.cart-checkout__choices[hidden],
.cart-pay[hidden],
.cart-pay__status[hidden],
.cart-pay__invoice[hidden],
.cart-checkout__invoice[hidden] {
	display: none !important;
}

.cart__status,
.cart-item__error {
	margin: 0 0 16px;
	color: var(--cc-danger);
	font-size: 14px;
	line-height: 1.45;
}

.cart-item__error {
	margin: 8px 0 0;
}

.cart__disabled {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.45;
}

.cart__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.cart__empty-text {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
}

.cart__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cart-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.cart-item__main {
	min-width: 0;
	flex: 1 1 auto;
}

.cart-item__title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
}

.cart-item__summary {
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-line;
}

.cart-item__layout {
	margin: 8px 0 0;
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.4;
}

.cart-item__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 8px 0 0;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
}

.status-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.cart-item__drop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: var(--cc-radius);
	outline: 2px dashed var(--cc-green);
	outline-offset: -2px;
}

.cart-item__drop.is-dragover {
	background: var(--cc-btn-active-bg);
}

.cart-item__drop-hint {
	margin: 0;
	min-width: 0;
	color: var(--cc-muted);
	font-size: 13px;
	line-height: 1.35;
}

.cart-item__file[draggable="true"],
.cart-item__preview[draggable="true"] {
	cursor: grab;
}

.cart-item__file {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	min-width: 0;
}

.cart-item__ext {
	width: 28px;
	height: 34px;
	padding-bottom: 5px;
	font-size: 8px;
}

.cart-item__file-name {
	min-width: 0;
	overflow: hidden;
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cart-item__preview-link,
.cart-item__file.cart-item__preview-link[draggable="true"] {
	cursor: pointer;
}

.cart-item__preview-link:focus-visible {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 2px;
}

.cart-item__preview[hidden] {
	display: none !important;
}

.cart-item__preview {
	flex: 0 0 auto;
	align-self: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

span.cart-item__preview {
	cursor: default;
}

.cart-item__preview:hover .cart-item__preview-frame,
.cart-item__preview:focus-visible .cart-item__preview-frame {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 2px;
}

.cart-item__preview-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 124px;
	overflow: hidden;
	border: 1px solid var(--cc-border);
	border-radius: 6px;
	background: var(--cc-card-soft);
}

.cart-item__preview-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

.cart-item__aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.cart-item__price {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.cart-modal .cart-item__file-name {
	font-weight: 400;
}

.cart-modal .cart__total-label {
	font-weight: 600;
}

.cart-modal .cart__total-value {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
}

.cart-modal .cart-comment {
	margin-top: 0;
	padding-top: 14px;
	border-top: 1px solid var(--cc-border);
}

.cart-modal .cart-comment label {
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.cart-modal .cart-comment textarea {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.cart__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.cart-modal .cart__footer,
.cart-modal .cart-checkout__submit,
.cart-modal .cart-checkout__next {
	justify-content: flex-end;
	padding-right: calc(20px + 1px);
}

.cart-modal .cart-checkout__submit {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 0;
}

.cart-checkout__next {
	margin: 12px 0 0;
	max-width: 100%;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.cart-modal .cart-checkout__next {
	text-align: right;
}

.cart-modal #cartModalToOrders {
	display: flex;
	width: fit-content;
	margin: 12px calc(20px + 1px) 0 auto;
	cursor: pointer;
}

.cart-modal .cart-checkout__choices {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	width: fit-content;
	max-width: calc(100% - (20px + 1px));
	margin: 12px calc(20px + 1px) 0 auto;
}

.cart-checkout__who {
	margin: 0;
	min-width: 0;
	max-width: 100%;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: right;
	overflow-wrap: anywhere;
}

.cart-checkout__who::after {
	content: "\00a0\2014\00a0";
	white-space: pre;
}

.cart-checkout__who[hidden] {
	display: none !important;
}

.cart-modal .cart__total {
	align-items: flex-end;
	text-align: right;
}

.cart__total {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cart__total-label {
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cart__total-value {
	font-size: clamp(24px, 4vw, 36px);
	line-height: 1.1;
	white-space: nowrap;
}

.cart__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 640px) {
	.cart-item {
		flex-direction: column;
	}

	.cart-item__preview {
		align-self: flex-start;
	}

	.cart-item__aside {
		align-items: flex-start;
		width: 100%;
	}

	.cart-modal .cart__footer,
	.cart-modal .cart-checkout__submit,
	.cart-modal .cart-checkout__next,
	.cart-modal .cart-pay {
		justify-content: flex-start;
		padding-right: 0;
		padding-left: calc(20px + 1px);
	}

	.cart-modal .cart__total {
		align-items: flex-start;
		text-align: left;
	}

	.cart-modal .cart-checkout__next {
		text-align: left;
	}

	.cart-modal #cartModalToOrders {
		margin-right: 0;
		margin-left: calc(20px + 1px);
	}

	.cart-modal .cart-checkout__choices {
		justify-content: flex-start;
		margin-right: 0;
		margin-left: calc(20px + 1px);
	}

	.cart-checkout__who {
		text-align: left;
	}
}

.checkout {
	margin-bottom: 22px;
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-xl);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.checkout-form[hidden],
.checkout-success[hidden] {
	display: none !important;
}

.checkout-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	max-width: 420px;
}

.checkout-field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.checkout-field[hidden] {
	display: none !important;
}

.checkout-field label {
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 700;
}

.checkout-field input {
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	color: var(--cc-text);
	font-size: 16px;
	line-height: 1.3;
}

.checkout-field input:focus {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 1px;
}

.checkout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.checkout-wait[hidden] {
	display: none !important;
}

.checkout-wait {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.checkout-wait__text {
	margin: 0;
	color: var(--cc-muted);
	font-size: 14px;
	line-height: 1.4;
}

.layout-upload__button.is-busy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.layout-upload__button__spinner {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: layout-preview-spin 0.8s linear infinite;
}

.checkout-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.checkout-success__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.checkout-success__number {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	line-height: 1.4;
}

.checkout-success__number strong {
	font-size: clamp(24px, 4vw, 36px);
	line-height: 1.1;
}

.checkout .layout-upload__button {
	display: inline-block;
	text-decoration: none;
}

.order {
	margin-bottom: 22px;
}

.order-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 0 0 20px;
}

.order-meta__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-meta__label {
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.order-meta__value {
	font-size: clamp(24px, 4vw, 36px);
	line-height: 1.1;
	font-weight: 700;
}

.order-meta__value--status {
	font-size: 20px;
	line-height: 1.2;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.order .layout-upload__button {
	display: inline-block;
	text-decoration: none;
}

.order-layout-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-top: 10px;
}

.order-layout-form .cart-item__drop {
	margin-top: 0;
}

.order-layout-form__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.order-layout-form__error {
	flex: 1 1 100%;
	margin: 0;
	color: #9f1239;
	font-size: 13px;
	line-height: 1.4;
}

.order-layout-form__error[hidden] {
	display: none !important;
}

.order-list__link {
	color: inherit;
	text-decoration: none;
}

.order-list__link:hover {
	text-decoration: underline;
}

#clientOrders .section-title,
#clientOrder .section-title {
	margin-bottom: 12px;
}

html body .client-calc #ordersTitle,
html body .client-calc #orderTitle {
	margin: 0;
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
}

.order-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.order-card {
	padding: 0;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	box-shadow: var(--cc-block-shadow);
}

.order-card:not(.is-open):not(.order-card--static) {
	cursor: pointer;
}

.order-card--static {
	cursor: default;
}

.order-card--static .order-card__head {
	cursor: default;
}

.order-card--static:not(.is-open) .order-card__head:hover {
	background: none;
}

.order-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--cc-border);
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	user-select: text;
}

.order-card:not(.is-open) .order-card__head:hover {
	background: var(--cc-card-soft);
}

.order-card__head-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.order-card__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.order-card__id {
	user-select: text;
	-webkit-user-select: text;
}

.order-card__date {
	font-weight: 400;
	color: var(--cc-muted);
}

.order-card__status {
	flex: 0 0 auto;
}

.order-card__ready {
	flex: 0 1 auto;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--cc-muted);
	white-space: nowrap;
}

.order-card__sum {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.order-card__chevron {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: -6px -8px -6px 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-muted);
	cursor: pointer;
}

.order-card__chevron:hover,
.order-card__chevron:focus-visible {
	color: var(--cc-text);
}

.order-card__chevron:focus-visible {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 1px;
}

.order-card__chevron::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.order-card.is-open .order-card__chevron::before {
	transform: translateY(2px) rotate(-135deg);
}

.order-card__collapsed {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 14px 20px 18px;
}

.order-card.is-open .order-card__collapsed {
	display: none;
}

.order-card:not(.is-open) .order-card__body {
	display: none;
}

.order-card__thumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.order-card__collapsed .cart-item__preview-frame {
	width: 48px;
	height: 62px;
}

.order-card__kinds {
	margin: 0;
	min-width: 0;
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

.order-card__body {
	padding: 0 20px 8px;
}

.order-items {
	gap: 0;
}

.order-items .cart-item {
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.order-items .cart-item + .cart-item {
	border-top: 1px solid var(--cc-border);
}

.order-items .cart-item__preview {
	order: 1;
	align-self: center;
}

.order-items .cart-item__main {
	order: 2;
}

.order-items .cart-item__aside {
	order: 3;
	align-self: center;
}

.order-items .cart-item__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.order-items .cart-item__summary {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 400;
	white-space: pre-line;
}

.order-items .cart-item__preview-frame {
	width: 64px;
	height: 80px;
}

.order-items .cart-item__price {
	font-size: 14px;
	font-weight: 600;
}

.order-card__body .cart__footer {
	margin-top: 12px;
}

.order-comment {
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--cc-border);
}

.order-comment__label {
	display: block;
	margin: 0 0 2px;
	color: var(--cc-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

.order-comment__text {
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	white-space: pre-wrap;
}

.order-delivery-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--cc-border);
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.35;
}

.order-delivery-line__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.order-delivery-line__address {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
}

.order-delivery-line__address[hidden] {
	display: none !important;
}

.order-delivery-line strong {
	font-weight: 600;
	white-space: nowrap;
}

.order-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 28px;
	margin: 0 -20px 0;
	padding: 16px 20px 0;
	border-top: 1px solid var(--cc-border);
}

.order-action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	max-width: 100%;
}

.order-action__note {
	margin: 0;
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
}

.order-action__note[hidden] {
	display: none !important;
}

.order-pay__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border: 1px solid var(--cc-text);
	border-radius: var(--cc-radius);
	background: var(--cc-text);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.order-pay__button:hover {
	border-color: var(--cc-text);
	background: #1c1917;
	color: #ffffff;
}

button.order-pay__button {
	appearance: none;
	-webkit-appearance: none;
}

.order-pay__button--fake {
	background: #ffffff;
	color: var(--cc-text);
	border-color: var(--cc-border);
	box-shadow: none;
	font-weight: 600;
}

.order-pay__button--fake:hover {
	background: var(--cc-card-soft);
	color: var(--cc-text);
	border-color: var(--cc-text);
}

.order-pay__button--fake.is-confirming {
	border-color: #b45309;
	background: #fef3c7;
	color: #92400e;
}

.order-pay__button.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.order-pay__paid,
.order-pay-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
}

.order-pay-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.order-card__head-main .order-pay-badge {
	flex: 0 0 auto;
}

.order-pay__notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-surface, transparent);
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.4;
}

.order-cancel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px 28px;
	margin-top: 16px;
}

.order-actions.order-cancel {
	align-items: flex-end;
	margin-top: 0;
}

.order-cancel[hidden] {
	display: none !important;
}

.order-cancel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: transparent;
	color: var(--cc-muted);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}

.order-cancel__button:hover:not(:disabled) {
	border-color: var(--cc-btn-active-border);
	color: var(--cc-btn-text);
}

.order-cancel__button:disabled {
	cursor: default;
}

.order-actions .order-cancel__button[data-order-cancel] {
	margin-left: auto;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
}

.order-cancel-notice {
	align-items: flex-start;
	padding: 12vh 16px 24px;
}

.order-cancel-notice .error-notice__backdrop {
	background: rgba(18, 24, 12, 0.35);
}

.order-cancel-notice .error-notice__dialog {
	width: min(320px, 100%);
	margin: 0 auto;
	padding: 16px 18px;
	box-shadow: 0 12px 32px rgba(18, 24, 12, 0.14);
}

.order-cancel-notice .error-notice__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.4;
}

.order-cancel-notice__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	gap: 8px;
}

.order-cancel-notice .order-cancel__button {
	order: 1;
	margin-left: auto;
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
}

@media (max-width: 640px) {
	.order-items .cart-item {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.order-items .cart-item__preview {
		align-self: center;
	}

	.order-items .cart-item__aside {
		align-items: flex-end;
		width: auto;
	}
}

.cart-fab[hidden],
.cart-modal[hidden],
.cart-modal__checkout[hidden],
.login-modal[hidden] {
	display: none !important;
}

.calc-corner {
	position: fixed;
	top: var(--cc-corner-top, calc(var(--cc-embed-offset-top, 34px) + 16px));
	right: max(16px, calc((100vw - min(1080px, calc(100vw - 32px))) / 2));
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 8px;
}

.calc-corner .layout-upload__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.login-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 16rem;
}

.cart-fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 22rem;
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.cart-fab:hover:not(:disabled) {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

.cart-fab__icon,
.login-fab__icon {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.cart-fab__label,
.login-fab__label {
	min-width: 0;
	color: inherit;
	line-height: 1.2;
}

.login-fab__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cart-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.cart-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 12, 0.55);
}

.cart-modal__dialog {
	position: relative;
	width: min(720px, 100%);
	max-height: min(calc(100dvh - 48px), 920px);
	overflow: auto;
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(18, 24, 12, 0.18);
}

.cart-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--cc-card-soft);
	color: var(--cc-muted);
	font-size: 24px;
	line-height: 1;
}

.cart-modal__close:hover {
	color: var(--cc-text);
}

.cart-modal__title {
	margin: 0 36px 16px 0;
	color: var(--cc-text);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.cart-modal__checkout {
	margin-top: 0;
}

.cart-comment {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin-top: 16px;
}

.cart-comment label {
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.cart-comment textarea {
	width: 100%;
	min-height: 76px;
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	resize: vertical;
}

.cart-comment textarea:focus {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 1px;
}


#cartModalPlaceWrap {
	margin-top: 16px;
	max-width: 100%;
	min-width: 0;
}

.cart-checkout__submit[hidden] {
	display: none !important;
}

.cart-checkout__button {
	flex: 0 0 auto;
	min-width: 0;
	text-decoration: none;
	padding: 10px 18px;
	border: 1px solid var(--cc-text);
	border-radius: var(--cc-radius);
	background: var(--cc-text);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.cart-checkout__button:hover:not(:disabled) {
	border-color: var(--cc-text);
	background: var(--cc-text);
	color: #ffffff;
}

.cart-checkout__button:disabled {
	cursor: default;
}

.cart-checkout__button.is-busy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.cart-checkout__button--secondary {
	background: transparent;
	border-color: var(--cc-border);
	color: var(--cc-muted);
	font-weight: 600;
}

.cart-checkout__button--secondary:hover:not(:disabled) {
	background: var(--cc-card-soft);
	border-color: var(--cc-text);
	color: var(--cc-text);
}

.cart-pay {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	margin-top: 24px;
	min-width: 0;
}

.cart-modal .cart-pay {
	padding-right: calc(20px + 1px);
}

.cart-modal .cart-pay .cart-checkout__submit {
	padding-right: 0;
	padding-left: 0;
}

.cart-pay__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.cart-pay__legend {
	padding: 0;
	margin: 0 0 8px;
	color: var(--cc-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cart-pay__option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.cart-pay__option:last-child {
	margin-bottom: 0;
}

.cart-pay__option input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.cart-pay__status {
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.4;
}

.cart-pay__status.is-error {
	color: var(--cc-danger);
}

.cart-pay__invoice {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.cart-pay__invoice[hidden] {
	display: none !important;
}

.cart-pay__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.cart-pay__field-label {
	color: var(--cc-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.cart-pay__input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	color: var(--cc-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
}

.cart-pay__input:focus {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 1px;
}

.cart-pay__input.is-invalid {
	border-color: var(--cc-danger);
}

.cart-pay__input.is-invalid:focus {
	outline-color: var(--cc-danger);
}

.cart-checkout__invoice {
	margin: 12px 0 0;
	color: var(--cc-text);
	font-size: 14px;
	line-height: 1.4;
}

.cart-checkout__invoice[hidden] {
	display: none !important;
}

.cart-checkout__invoice-link {
	color: var(--cc-text);
	font-weight: 700;
	text-decoration: underline;
}

.order-pay__pending {
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.login-form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	max-width: none;
	margin: 0;
}

.login-form[hidden],
.login-form__status[hidden],
.login-form__wait[hidden] {
	display: none !important;
}

.login-form__status {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	color: var(--cc-muted);
	font-size: 14px;
	line-height: 1.4;
}

.login-form__status-icon {
	display: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.login-form__status.is-error {
	color: var(--cc-danger);
}

.login-form__status.is-error .login-form__status-icon {
	display: block;
}

.login-form__contact {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	row-gap: 12px;
}

.login-form__label {
	justify-self: center;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.login-form input.login-form__input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	color: var(--cc-text);
	font-size: 16px;
	line-height: 1.3;
}

.login-form input.login-form__input:focus {
	outline: 2px solid var(--cc-btn-active-border);
	outline-offset: 1px;
}

.login-form input.login-form__input.is-invalid {
	border-color: var(--cc-danger);
}

.login-form input.login-form__input.is-invalid:focus {
	outline-color: var(--cc-danger);
}

.login-form__or {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	align-items: center;
	margin: 0;
	color: var(--cc-muted);
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.2;
}

.login-form__or-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.login-form__or-text {
	flex: 0 0 auto;
}

.login-form__or-line {
	height: 1px;
	background: var(--cc-border);
}

.login-form__or-cell .login-form__or-line {
	flex: 1 1 0;
	min-width: 0;
}

.login-form__or-line--field {
	width: calc(100% + 12px);
	margin-left: -12px;
}

.login-form__code {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
	align-items: center;
	row-gap: 14px;
	margin-top: 8px;
}

.login-form__code-line {
	grid-column: 1 / -1;
	height: 1px;
	background: var(--cc-border);
}

.login-form__code[hidden] {
	display: none !important;
}

.login-form__resend {
	grid-column: 1 / -1;
	justify-self: start;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-text);
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.login-form__resend:disabled {
	color: var(--cc-muted);
	text-decoration: none;
	cursor: default;
}

.login-form__resend[hidden] {
	display: none !important;
}

.login-form__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.login-form__wait {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.login-form__wait-text {
	margin: 0;
	color: var(--cc-muted);
	font-size: 14px;
	line-height: 1.4;
}

.cart-modal .login-form {
	margin-top: 16px;
}

body.cart-modal-open {
	overflow: hidden;
}

body.cart-modal-open .price-bar.is-docked,
body.login-modal-open .price-bar.is-docked {
	visibility: hidden;
}

.login-modal {
	position: fixed;
	inset: 0;
	z-index: 105000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 12, 0.55);
}

.login-modal__dialog {
	position: relative;
	width: min(420px, 100%);
	max-height: min(calc(100dvh - 48px), 920px);
	overflow: auto;
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(18, 24, 12, 0.18);
}

.login-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--cc-card-soft);
	color: var(--cc-muted);
	font-size: 24px;
	line-height: 1;
}

.login-modal__close:hover {
	color: var(--cc-text);
}

.login-modal .login-modal__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 36px 22px 0;
	color: var(--cc-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.login-modal__icon {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.account-modal__orders {
	margin-top: 22px;
}

.account-modal__orders:has(#accountModalOrders[hidden]) {
	display: none;
}

.account-modal__sep {
	height: 1px;
	margin: 0 0 22px;
	background: var(--cc-border);
}

body.login-modal-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.client-calc:has(#cartFab:not([hidden])),
	body:has(#cartFab:not([hidden])) .client-calc--embed {
		padding-bottom: 88px;
	}

	.cart-fab {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1190;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		border-radius: 0;
		border-color: var(--cc-text);
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		background: var(--cc-text);
		color: #ffffff;
		box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.22);
	}

	html.client-calc-page:has(#cartFab:not([hidden])) .price-bar.is-docked {
		bottom: 52px;
		padding-bottom: 0;
	}
}

.error-notice[hidden] {
	display: none !important;
}

.error-notice {
	position: fixed;
	inset: 0;
	z-index: 110000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}

.error-notice__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 12, 0.55);
}

.error-notice__dialog {
	position: relative;
	width: min(420px, 100%);
	padding: 24px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius-lg);
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(18, 24, 12, 0.18);
}

.error-notice__text {
	margin: 0 0 20px;
	color: var(--cc-text);
	font-size: 16px;
	line-height: 1.45;
}

.error-notice__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 10px 18px;
	border: 1px solid var(--cc-btn-border);
	border-radius: var(--cc-radius);
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

body.error-notice-open {
	overflow: hidden;
}

/* Pay modal — оболочка как у login/account-modal */
.pay-modal[hidden] {
	display: none !important;
}

.pay-modal .login-form__status,
.pay-modal__card-actions,
.pay-modal__invoice-fields,
.pay-modal__invoice-action {
	margin-top: 16px;
}

.pay-modal .login-form__status[hidden],
.pay-modal__card-actions[hidden],
.pay-modal__invoice-fields[hidden],
.pay-modal__invoice-action[hidden] {
	display: none !important;
}

.pay-modal__invoice-block {
	margin-top: 16px;
}

.pay-modal__invoice-block[hidden],
.pay-modal__legal-list[hidden],
.pay-modal__invoice-submit[hidden] {
	display: none !important;
}

.pay-modal__legal-legend {
	margin: 0 0 10px;
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.pay-modal__legal-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.pay-modal__legal-option {
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
	margin: 0;
}

.pay-modal__legal-option:has(input:checked) {
	border-color: var(--cc-text);
	box-shadow: inset 0 0 0 1px var(--cc-text);
}

.pay-modal__methods {
	margin: 0;
	padding: 0;
	border: 0;
}

.pay-modal__methods .cart-pay__legend {
	margin: 0 0 10px;
	padding: 0;
	color: var(--cc-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.pay-modal__methods .cart-pay__option {
	padding: 10px 12px;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	background: var(--cc-card);
}

.pay-modal__methods .cart-pay__option + .cart-pay__option {
	margin-top: 8px;
}

.pay-modal__methods .cart-pay__option:has(input:checked) {
	border-color: var(--cc-text);
	box-shadow: inset 0 0 0 1px var(--cc-text);
}

.pay-modal__invoice-fields .login-form__label {
	justify-self: end;
	text-align: right;
	white-space: nowrap;
}

.pay-modal__invoice-submit {
	margin-top: 12px;
}

.pay-modal__invoice-progress[hidden],
.pay-modal__invoice-submit .cart-checkout__button[hidden] {
	display: none !important;
}

.pay-modal__invoice-progress {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pay-modal__invoice-formed {
	margin: 0 0 12px;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.pay-modal__card-actions .cart-checkout__button,
.pay-modal__invoice-submit .cart-checkout__button,
.pay-modal__invoice-action .cart-checkout__button {
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 10px 18px;
	line-height: 18px;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.pay-modal .cart-checkout__button.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

body.pay-modal-open,
body.delivery-modal-open {
	overflow: hidden;
}

.delivery-modal__moscow[hidden] {
	display: none !important;
}

.delivery-modal__note {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	white-space: pre-line;
}

.delivery-modal__note[hidden] {
	display: none !important;
}

.delivery-modal__address {
	position: relative;
}

.delivery-modal .delivery-modal__address input.login-form__input {
	font-size: 13px;
}

.delivery-modal__suggest {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	box-shadow: 0 12px 28px rgba(18, 24, 12, 0.12);
	max-height: 240px;
	overflow: auto;
}

.delivery-modal__suggest[hidden] {
	display: none !important;
}

.delivery-modal__suggest-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	background: transparent;
	color: var(--cc-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.delivery-modal__suggest-item:hover {
	background: var(--cc-btn-active-bg);
}

.delivery-modal__price {
	margin: 0;
	color: var(--cc-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	white-space: pre-wrap;
}

.delivery-modal__price.is-place {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.45;
}

.delivery-modal__price[hidden] {
	display: none !important;
}

.delivery-modal .login-form__label {
	display: block;
	margin: 14px 0 0;
	justify-self: start;
	text-align: left;
}
