/* 2026-10-16 (LOCAL): new look of the plain "by the metre" fabric page (cat 1, izm лм, no sewing calculator).
   Every rule is scoped to body.lia-lm2 (class set in production.php only for those pages). Style only: markup, ids, onclick handlers and prices are untouched.
   NOT touched here: the colour list (separate task). */

/* ---- title, price line, description, "Виж цял текст" ---- */
.lia-lm2 #description h1#refscroll { margin: 6px 0 8px !important; font-size: 22px !important; font-weight: 700 !important; line-height: 1.25 !important; color: #1f1f1f; text-align: center; }
.lia-lm2 #description h1#refscroll .produkt_id_prod { font-size: inherit !important; font-weight: inherit !important; }
.lia-lm2 #description .produkt_id_prod { margin-bottom: 10px !important; font-size: 17px !important; font-weight: 400 !important; line-height: 1.35 !important; color: #555860; text-align: center; }
.lia-lm2 #description .product-text { text-align: center; }
.lia-lm2 #description .content-text { font-size: 15px; line-height: 1.5; color: #555860; text-align: center; }
.lia-lm2 #description .show-more { margin-top: 6px; font-size: 14px; color: #6f737b; text-decoration: underline; }
.lia-lm2 #description .show-more:hover { color: #2e3033; }

/* ---- "Спецификации" card: doc icon left, chevron right ---- */
.lia-lm2 .specifications_block { margin-top: 24px; margin-bottom: 20px; }
.lia-lm2 .specifications_btn { max-width: calc(100% - 32px); min-height: 52px; padding: 0 16px; border: 1px solid #d9dce2; border-radius: 8px; background: #fff; box-shadow: none; }
.lia-lm2 .specifications_btn:hover { border-color: #c4c8cf; }
.lia-lm2 .specifications_btn .spec_text { position: relative; padding-left: 38px; font-size: 17px; color: #1f1f1f; }
.lia-lm2 .specifications_btn .spec_text::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F4650' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.lia-lm2 .specifications_btn .spec_arrow { width: 20px; height: 20px; font-size: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F4650' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }

/* ---- "Височина на плата" + pill stepper  (− 0 см +) ---- */
.lia-lm2 #hghth_txt { margin: 0 0 6px; font-size: 17px !important; color: #1f1f1f !important; text-align: center; }
.lia-lm2 #hblock > hr { display: none; }
.lia-lm2 #form1n #s_uhivane, .lia-lm2 #form1n #wblock { height: 0 !important; max-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; } /* empty on this page (sewing-only fields); kept in the DOM, the scripts may still set them */
.lia-lm2 #form1n > p:not(.lia-addcart) { margin: 0 !important; }
.lia-lm2 #form1n > hr { display: none; }
.lia-lm2 .tableinput { display: block; box-sizing: border-box; width: 100%; max-width: 270px; margin: 10px auto 6px !important; padding: 8px 10px; border: 1px solid #d3d5da; border-radius: 999px; background: #fff; }
.lia-lm2 .tableinput tbody { display: block; }
.lia-lm2 .tableinput tr { display: flex; align-items: center; justify-content: space-between; }
.lia-lm2 .tableinput td { display: block; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.lia-lm2 .tableinput td > div { width: auto; }
.lia-lm2 .tableinput td.cell-1 { flex: 1 1 auto; position: relative; }
.lia-lm2 .nc-minus, .lia-lm2 .nc-plus { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #ececf0 !important; cursor: pointer; }
.lia-lm2 .nc-minus img, .lia-lm2 .nc-plus img { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lia-lm2 .nc-minus::before, .lia-lm2 .nc-plus::before { content: ""; width: 16px; height: 2px; border-radius: 1px; background: #2e3033; }
.lia-lm2 .nc-plus::after { content: ""; position: absolute; width: 2px; height: 16px; border-radius: 1px; background: #2e3033; }
.lia-lm2 .cell-1-input { width: 100% !important; height: 44px; padding: 0 34px 0 0; border: 0 !important; background: transparent; font-size: 28px; font-weight: 400; color: #1f1f1f; text-align: center; box-shadow: none; outline: 0; -moz-appearance: textfield; }
.lia-lm2 .cell-1-input::-webkit-outer-spin-button, .lia-lm2 .cell-1-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lia-lm2 .unit-label { right: calc(50% - 36px); bottom: 9px; font-size: 17px; color: #6f737b; pointer-events: none; }

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

/* ---- add to cart button: same graphite pill as the calculator ---- */
.lia-lm2 .lia-addcart {
	display: flex !important; align-items: center; justify-content: center; gap: 12px;
	width: calc(100% - 32px) !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; letter-spacing: .02em; line-height: 1.1; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.lia-lm2 .lia-addcart:hover { background: #666 !important; }
.lia-lm2 .lia-addcart:active { transform: translateY(1px); }
.lia-lm2 .lia-cart-ic { flex: 0 0 auto; color: #fff; }

/* tighter vertical rhythm: the old page had empty spacers between the stepper and the price */
.lia-lm2 #form1n > br { display: none; }
.lia-lm2 .lia-addcart { margin-top: 4px !important; }

/* ---- 2026-10-20 (LOCAL): pieces/metre items (бр, л.м., 2бр, 50бр) of every category: same look. Their quantity stepper is the table .tableinput_1 inside #kolvoblock (old grey boxes with picture signs) ---- */
.lia-lm2 #kolvoblock > p.white-text { margin: 12px 0 6px; font-size: 17px; color: #1f1f1f !important; text-align: center; }
.lia-lm2 .tableinput_1 { display: block; box-sizing: border-box; width: 100%; max-width: 270px; margin: 10px auto 6px; padding: 8px 10px; border: 1px solid #d3d5da; border-radius: 999px; background: #fff; }
.lia-lm2 .tableinput_1 tbody { display: block; }
.lia-lm2 .tableinput_1 tr { display: flex; align-items: center; justify-content: space-between; }
.lia-lm2 .tableinput_1 td { display: block; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.lia-lm2 .tableinput_1 td.cell-1 { flex: 1 1 auto; position: relative; }
.lia-lm2 .tableinput_1 td.column-2 > div, .lia-lm2 .tableinput_1 td.column-3 > div { position: relative; width: 44px !important; height: 44px !important; border-radius: 50%; background: #ececf0; cursor: pointer; }
.lia-lm2 .tableinput_1 td.column-2 > div img, .lia-lm2 .tableinput_1 td.column-3 > div img { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lia-lm2 .tableinput_1 td.column-2 > div::before, .lia-lm2 .tableinput_1 td.column-3 > div::before { content: ""; width: 16px; height: 2px; border-radius: 1px; background: #2e3033; }
.lia-lm2 .tableinput_1 td.column-2 > div::after { content: ""; position: absolute; width: 2px; height: 16px; border-radius: 1px; background: #2e3033; }
.lia-lm2 .tableinput_1 .cell-1-input { width: 100% !important; height: 44px; padding: 0 34px 0 0; border: 0 !important; background: transparent; font-size: 28px; font-weight: 400; color: #1f1f1f; text-align: center; box-shadow: none; outline: 0; -moz-appearance: textfield; }
.lia-lm2 .tableinput_1 .cell-1-input::-webkit-outer-spin-button, .lia-lm2 .tableinput_1 .cell-1-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lia-lm2 .tableinput_1 td.cell-1 > div { left: auto !important; top: auto !important; right: calc(50% - 40px); bottom: 9px; transform: none !important; font-size: 17px; color: #6f737b; pointer-events: none; }
/* price block of the piece pages (under the title) */
.lia-lm2 #btnManual { margin-top: 14px !important; text-align: center; font-size: 22px; font-weight: 700; color: #1f1f1f; }
.lia-lm2 #btnManual > p { margin: 0 0 2px !important; font-size: 17px; font-weight: 400; color: #555860; }
.lia-lm2 #btnManual .old_price_txt { font-weight: 400; }
.lia-lm2 #btnManual .lia-per { font-size: 14px; font-weight: 400; color: #6f737b; }
