/* 2026-10-15 (LOCAL ONLY) - new look of the sewing calculator (production.php?...&uzh=1080).
   Every rule is scoped to .lia-calc2 (class on form#form1n, set in production.php only for the sewing calculator of normal fabrics),
   so other calculator variants (fabric by metre, cotton 180/280, last pieces, ...) keep their old look.
   Pure restyle: the inputs, names, ids and handlers are the old ones. Reference: screenshots/какнадо.PNG and "текст блок.PNG". */

.lia-calc2 {
	max-width: 460px;
	margin: 0 auto;
	padding: 0 14px 6px;
	box-sizing: border-box;
	text-align: left;
	font-family: 'Roboto', sans-serif;
	color: #222;
	overflow-x: hidden;
}
.lia-calc2 * { box-sizing: border-box; }
.lia-calc2 hr,
.lia-calc2 #hblock > hr,
.lia-calc2 #wblock > hr { display: none; }
.lia-calc2 #hblock a[data-target="#ushivane1"] { display: none; } /* was white text on a white page = invisible */

/* ---- intro text blocks ---- */
.lia-calc2 .lia-intro { margin: 8px 0 16px; text-align: left; }
.lia-calc2 .lia-intro-h { margin: 0 0 8px; font-size: 16px; line-height: 1.3; font-weight: 700; color: #2e3033; text-align: center !important; }
.lia-calc2 .lia-intro-p { margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: #555860; text-align: justify !important; }
.lia-calc2 .lia-intro-feat { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lia-calc2 .lia-intro-feat li { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.25; color: #3b3b3b; text-align: center; }
.lia-calc2 .lia-intro-feat img { display: block; width: 54px; height: 54px; border-radius: 50%; }
.lia-calc2 .lia-intro-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #f7f4f0; border: 1px solid #ece5df; border-radius: 12px; }
.lia-calc2 .lia-intro-note img { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; }
/* "Необходимо количество плат" result box: centred, light frame + very light fill like .lia-intro-note (display is toggled by inline JS, so not set here) */
.lia-calc2 #text_s_nabor { max-width: 420px; margin: 12px auto !important; padding: 12px 16px; background: #f7f4f0; border: 1px solid #ece5df; border-radius: 12px; text-align: center !important; line-height: 1.5; color: #555860 !important; }
.lia-calc2 #text_s_nabor span { padding: 0 6px !important; font-weight: 700; line-height: 1.3; color: #2e3033 !important; }
.lia-calc2 .lia-intro-note p { margin: 0; font-size: 12px; line-height: 1.45; color: #555860; text-align: justify !important; }

/* ---- width / height fields ("см" inside the field, on the right) ---- */
.lia-calc2 .number,
.lia-calc2 .number1 { display: block; position: relative; width: 100% !important; margin: 0; } /* no !important on display: the hidden helper field (#kolvo_s_nabor) has an inline display:none */
.lia-calc2 .number input,
.lia-calc2 .number1 input {
	display: block;
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 64px 0 16px !important;
	border: 1px solid #8e9199 !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #222;
	font-size: 16px !important;
	line-height: 1.2;
	text-align: left !important;
	-moz-appearance: textfield;
}
.lia-calc2 .number input::-webkit-outer-spin-button,
.lia-calc2 .number input::-webkit-inner-spin-button,
.lia-calc2 .number1 input::-webkit-outer-spin-button,
.lia-calc2 .number1 input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lia-calc2 .number input::placeholder,
.lia-calc2 .number1 input::placeholder { color: #6f737b; opacity: 1; }
.lia-calc2 .number input:focus,
.lia-calc2 .number1 input:focus { outline: 0; border-color: #55575c !important; box-shadow: 0 0 0 2px rgba(85, 87, 92, .18); }
.lia-calc2 .smm {
	position: absolute !important;
	top: 0; right: 0; bottom: 0;
	width: 58px;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px !important;
	color: #333 !important;
	pointer-events: none;
	z-index: 2;
}
.lia-calc2 .smm:before { content: ""; position: absolute; left: 0; top: 26%; height: 48%; border-left: 1px solid #d3d5da; }
.lia-calc2 #w_warning { margin: 6px 0 0; text-align: left; }

/* ---- illustration ---- */
.lia-calc2 #s_uhivane br { display: none; }
.lia-calc2 #eskiz { margin: 10px 0 12px !important; padding: 0 !important; background: transparent !important; }
.lia-calc2 #eskiz_1 img { display: block; width: 100% !important; max-width: 100%; height: auto; margin: 0 auto; }
.lia-calc2 .price_on_esk { display: none !important; }
.lia-calc2 #wblock p { margin: 0; }

/* ---- headings "Изберете набор / части  Виж тук >  (i)" ---- */
.lia-calc2 #nabor_block { margin: 0 !important; }
.lia-calc2 #nabor_bez_info br { display: none; }
.lia-calc2 p.lia-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 20px 0 10px; color: #222; text-align: left; }
.lia-calc2 .lia-h-t { font-size: 18px; line-height: 1.15; font-weight: 700; color: #1f1f1f; }
.lia-calc2 .lia-h-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: #55575c; text-decoration: underline; }
.lia-calc2 .lia-h-link:hover { color: #2e3033; }
.lia-calc2 .lia-h-chev { font-size: 22px; line-height: 1; text-decoration: none; display: inline-block; }
.lia-calc2 .lia-h-i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #ececf0; color: #1a1a1a !important; font: italic 700 13px/1 Georgia, 'Times New Roman', serif; text-decoration: none !important; }

/* ---- choice cards: sets 50 / 70 / 100 and parts 1 / 2 ---- */
.lia-calc2 .lia-cards { display: grid; gap: 8px; margin: 0 0 6px; }
.lia-calc2 .lia-cards-set { grid-template-columns: repeat(3, 1fr); }
.lia-calc2 .lia-cards-parts { grid-template-columns: 1fr 1fr; }
.lia-calc2 .lia-cards .radio_class2 { display: block; position: relative; min-width: 0; margin: 0 !important; padding: 0 !important; font-size: 16px !important; color: #222 !important; cursor: pointer; }
.lia-calc2 .lia-cards .radio_class2 input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lia-calc2 .lia-card-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	height: 100%;
	min-height: 124px;
	padding: 12px 6px 9px;
	background: #fff;
	border: 1px solid #dcdfe5;
	border-radius: 6px;
	transition: background-color .15s, border-color .15s;
}
.lia-calc2 .lia-card-body img { display: block; max-width: 100%; width: auto; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.lia-calc2 .lia-card-txt { font-size: 16px; line-height: 1.2; color: #222; }
.lia-calc2 .lia-card-body:after { /* radio ring, top right */
	content: "";
	position: absolute;
	top: 8px; right: 8px;
	width: 20px; height: 20px;
	border: 1.5px solid #8a8d94;
	border-radius: 50%;
	background: #fff;
}
.lia-calc2 .radio_class2:hover .lia-card-body { border-color: #9a9ca2; }
.lia-calc2 .radio_class2 input:checked + .lia-card-body { background: #fff; border-color: #55575c; box-shadow: inset 0 0 0 1px #55575c; } /* selected card: frame only, no tinted fill */
.lia-calc2 .radio_class2 input:checked + .lia-card-body:after { border: 2px solid #55575c; background: radial-gradient(circle, #55575c 0, #55575c 4.5px, #fff 5px); }
.lia-calc2 .radio_class2 input:focus-visible + .lia-card-body { outline: 2px solid #55575c; outline-offset: 2px; }
.lia-calc2 .lia-cards-parts .lia-card-body { flex-direction: row; justify-content: center; gap: 12px; min-height: 82px; padding: 10px 8px; }
.lia-calc2 .lia-cards-parts .lia-card-body img { height: 64px; max-width: 54%; }
.lia-calc2 .lia-cards-parts .lia-card-txt { white-space: nowrap; }

/* ---- price ---- */
.lia-calc2 .Hchg { margin: 4px 0 0; }
.lia-calc2 .end_price {
	width: 100% !important;
	height: auto !important;
	margin: 14px 0 12px !important;
	padding: 12px 0 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-top: 1px solid #e0e1e8 !important;
	border-radius: 0 !important;
	justify-content: center;
}
.lia-calc2 .end_price .prise-text { margin: 0; font-size: 18px !important; font-weight: 400; color: #2b2b2b !important; text-align: center; }
.lia-calc2 .prise-text-fin { font-size: 26px !important; font-weight: 700; color: #111; }
.lia-calc2 .lia-eur { font-size: 26px; font-weight: 700; color: #111; }

/* ---- add to cart button ---- */
.lia-calc2 .lia-addcart {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100% !important;
	height: 52px !important;
	margin: 0 auto 8px !important;
	padding: 0 16px !important;
	background: #757575 !important;
	border: 0 !important;
	border-radius: 26px !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 19px !important;
	font-weight: 400;
	line-height: 1.1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.lia-calc2 .lia-addcart:hover { background: #666 !important; }
.lia-calc2 .lia-addcart:active { transform: translateY(1px); }
.lia-calc2 .lia-cart-ic { flex: 0 0 auto; color: #fff; }
.lia-calc2 .lia-addcart-t { display: inline-block; }

/* ---- narrow phones ---- */
@media (max-width: 360px) {
	.lia-calc2 { padding: 0 10px 6px; }
	.lia-calc2 .lia-intro-h { font-size: 16px; }
	.lia-calc2 .lia-h-t { font-size: 18px; }
	.lia-calc2 .lia-card-body { min-height: 100px; padding: 10px 4px 8px; }
	.lia-calc2 .lia-card-body img { height: 50px; }
	.lia-calc2 .lia-cards-parts .lia-card-body { gap: 8px; padding: 10px 6px; }
	.lia-calc2 .lia-cards-parts .lia-card-body img { height: 46px; }
	.lia-calc2 .lia-cards-parts .lia-card-txt { font-size: 15px; }
	.lia-calc2 .lia-addcart { font-size: 17px !important; }
}
