/* Lesmos responsive layout, catalogue and form fixes. */
html { scroll-behavior: smooth; }
body { font-size: 15px; line-height: 1.65; color: #30291e; }
input, select, textarea, button { font: inherit; }
input[type="submit"], button, .call-btn { min-height: 44px; cursor: pointer; }
.page-content img { max-width: 100%; height: auto; }
.tb-block { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb-block:focus-visible { outline: 2px solid #a73e21; }
#content table td, #content table th { padding: 8px; }
.wpcf7-form input:not([type="checkbox"]):not([type="radio"]), .wpcf7-form textarea { max-width: 100%; box-sizing: border-box; font-size: 16px; }
.wpcf7-form input[type="checkbox"], .wpcf7-form input[type="radio"] { width: auto !important; }
.wpcf7-form-control-wrap { display: block; }
span.wpcf7-not-valid-tip { position: static; width: auto; border: 0; background: transparent; font-size: 14px; padding: 4px 0; }
div.wpcf7-response-output { position: static; margin: 16px 0 !important; font-size: 14px; }
#contact_form_pop { display: block; box-sizing: border-box; width: 360px; max-width: 100%; padding: 22px; background: #fff; }
#contact_form_pop input:not([type="checkbox"]):not([type="radio"]) { width: 100%; max-width: 100%; }
#contact_form_pop .wpcf7-submit { color: #fff; background: #a63820; border: 0; border-radius: 6px; }
#contact_form_pop p { margin-bottom: 12px; }
#contact_form_pop .wpcf7-list-item { margin: 0; text-align: left; font-size: 13px; line-height: 1.45; }
#fancybox-wrap:has(#contact_form_pop) { height: auto !important; }
#fancybox-content:has(#contact_form_pop) { height: auto !important; overflow: auto !important; max-height: 80vh; }
#fancybox-content #contact_form_pop { width: 100% !important; max-width: 100% !important; padding: 22px !important; }
#contact_form_pop .frm_z { padding: 0; background: none; }
#contact_form_pop .btn_sends { width: 100% !important; margin-left: 0; }
.lesmos-menu-toggle { display: none; }
@media (max-width: 900px) {
  #wrapper, #wrapper-inner, #footer { width: 100% !important; max-width: 100%; box-sizing: border-box; }
  #wrapper-inner { padding: 0 16px; }
  #header { background-size: cover; }
  #content { min-width: 0; }
}

@media (max-width: 900px) {
  *, *::before, *::after { box-sizing: border-box; }
  body { font-size: 16px; line-height: 1.6; }
  #wrapper-inner { padding: 0 14px; }
  #header { height: auto !important; min-height: 0; padding: 20px 0; background: #fff; display: flex; flex-direction: column; gap: 16px; }
  #header .logo { float: none; width: 100%; padding: 0; text-align: center; }
  #header .logo a { display: block; margin: 0 auto 10px; }
  #header .logo p { display: block; position: static; width: auto; max-width: 380px; margin: 0 auto; font-size: 14px; line-height: 1.4; }
  #header-top, #header-contacts { position: static; float: none; width: 100%; height: auto; margin: 0; padding: 0; text-align: center; background: none; opacity: 1; }
  #header-contacts a { display: inline-block; padding: 4px; font-family: Arial, sans-serif; font-size: 20px; font-style: normal; line-height: 1.4; text-shadow: none; color: #704620; }
  .header-address { position: static !important; transform: none !important; width: 100% !important; margin: 0 !important; padding: 0; text-align: center; display: block !important; order: 3; }
  .header-address p { font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
  .header-address .call-btn-top { position: static; margin-top: 12px; }
  .header-address .call-btn-top a { padding: 10px 20px; border-radius: 6px; }
  #header-menu-wrapper { float: none; position: static; width: 100%; padding: 12px 0 0; }
  #header-menu-wrapper ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 10px; padding: 0; }
  #header-menu-wrapper ul li, #header-menu-wrapper ul li:first-child { float: none; width: auto; height: auto; margin: 0; padding: 0; background: none; }
  #header-menu-wrapper ul li a { display: inline-block; height: auto; padding: 8px 4px; font-size: 15px; line-height: 1.4; }
  #mob_bg, .header-fixed { display: none !important; }
  #middle { display: flex; flex-direction: column; margin-top: 0; width: 100%; padding: 0; }
  #sideLeft { order: -1; float: none; position: static !important; width: 100%; margin: 0 0 20px; background: transparent; }
  #sideLeft > .widget:not(.fill), #sideLeft > .widget-2 { display: none; }
  #sideLeft .widget.fill { margin: 0; padding: 0; background: transparent; border: 0; }
  #sideLeft .widget.fill h3, #menu-mob, .menu-close { display: none !important; }
  .lesmos-menu-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; border-radius: 8px; background: #704620; color: #fff; font-size: 16px; font-weight: 700; text-align: left; }
  .lesmos-menu-toggle::after { content: '+'; font-size: 23px; }
  .lesmos-menu-toggle[aria-expanded="true"]::after { content: '−'; }
  #sidebar-menu-wrapper { position: static; width: 100%; }
  #sidebar-menu-wrapper .menu-sidebar-menu-container { display: none; border: 1px solid #e5d6c4; border-radius: 0 0 8px 8px; background: #fff; }
  #sidebar-menu-wrapper .menu-sidebar-menu-container.is-open { display: block; }
  #sidebar-menu-wrapper ul { padding: 8px 12px; margin: 0; }
  #sidebar-menu-wrapper ul li { width: 100%; margin: 0; padding: 0; }
  #sidebar-menu-wrapper ul li a { display: block; min-height: 44px; padding: 9px 8px; font-size: 16px; line-height: 1.45; }
  #container { float: none; width: 100%; overflow: visible; }
  #content { width: 100%; padding: 0 !important; }
  #sideRight { display: none; }
  #content h1 { font-family: Arial, sans-serif; font-size: 27px; line-height: 1.2; text-align: left; margin-bottom: 20px; }
  #content h2 { font-family: Arial, sans-serif; font-size: 22px; line-height: 1.3; }
  .page-content p, .page-content li { line-height: 1.6; }
  .page-content p { text-align: left !important; }
  .page-content [style*="float:"] { float: none !important; }
  .page-content [style*="margin-left:"] { margin-left: 0 !important; }
  .page-content > div { max-width: 100%; }
  .features-block-item { flex: 1 1 100%; }
  .features-block-item p { width: auto; }
  .buttons-wrap { flex-wrap: wrap; gap: 14px; }
  .main_price, .main_price div { width: 100% !important; }
  #content .tabl_icon { min-width: 0 !important; }
  .home #content table.price { width: 100% !important; min-width: 0 !important; font-size: 14px; }
  .home #content table.price th, .home #content table.price td { padding: 7px 5px; white-space: normal; }
  #content .tabl_icon td { width: 100%; display: block; }
  .tabl_icon .wr-one, .tabl_icon .wr-two { width: 100%; }
  .all_price { max-width: 100%; margin: 16px auto; }
  #but_zak, .but_zak { margin-left: 0; }
  iframe, ymaps, .ymaps-map { max-width: 100% !important; }
  #footer { margin-top: 28px; }
  #footer-inner { padding: 20px 14px; height: auto; }
  #footer-menu-wrapper ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; gap: 5px 12px; }
  #footer-menu-wrapper ul li { float: none; margin: 0; }
  .tel_footer { width: 100% !important; margin: 16px 0; text-align: center; }
  .tel_f, .email_f { display: block; }
  #fancybox-wrap { max-width: calc(100vw - 24px) !important; left: 12px !important; padding: 0 !important; }
  #fancybox-content { max-width: calc(100vw - 40px) !important; }
  #contact_form_pop { width: calc(100vw - 60px) !important; max-width: calc(100vw - 60px) !important; }
  #fancybox-wrap:has(#contact_form_pop) { position: fixed !important; top: 10vh !important; left: 18px !important; width: calc(100vw - 36px) !important; margin: 0 !important; }
  #fancybox-content:has(#contact_form_pop) { width: 100% !important; max-width: 100% !important; }
  .reveal-modal { width: calc(100% - 28px); max-height: 85vh; height: auto; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Plywood prices: one size per row, readable column headers and order links. */
#content table.lesmos-plywood-prices { width:100%; min-width:0; border-collapse:collapse; table-layout:auto; margin:12px 0 20px; }
#content table.lesmos-plywood-prices caption { text-align:left; font-weight:700; padding:8px 0; }
#content table.lesmos-plywood-prices th { background:#f0e5ce; color:#49351f; line-height:1.35; white-space:normal; text-align:center; border:1px solid #d5cbb9; }
#content table.lesmos-plywood-prices td { text-align:center; border:1px solid #d5cbb9; vertical-align:middle; white-space:nowrap; }
#content table.lesmos-plywood-prices tbody tr:nth-child(even) { background:#faf7f0; }
#content .lesmos-price-order { display:inline-block; padding:6px 10px; border-radius:4px; background:#369812; color:#fff; font:600 14px/1.2 Arial,sans-serif; text-decoration:none; }
#content .lesmos-price-order:hover,#content .lesmos-price-order:focus-visible { background:#28760c; }
.page-id-244 #content span[id] { scroll-margin-top:96px; }
@media(max-width:600px) {
 #content table.lesmos-plywood-prices { font-size:13px; }
 #content table.lesmos-plywood-prices th,#content table.lesmos-plywood-prices td { padding:7px 4px; }
 #content .lesmos-price-order { font-size:12px; padding:6px 5px; }
 .page-id-244 #content .geg-button { width:100% !important; max-width:100%; min-width:0 !important; }
 .page-id-244 #content .geg-button tbody,.page-id-244 #content .geg-button tr { display:block; width:100%; }
 .page-id-244 #content .geg-button td { display:block; width:auto; padding:8px 0; }
}

/* Repaired catalog tables retain their columns on desktop and show one item per card on phones. */
#content table.lesmos-catalog-price { width:100%; min-width:0; border-collapse:collapse; margin:12px 0 20px; }
#content table.lesmos-catalog-price caption { text-align:left; font-weight:700; padding:10px 0; }
#content table.lesmos-catalog-price th { background:#f0e5ce; color:#49351f; border:1px solid #d5cbb9; white-space:normal; line-height:1.35; text-align:center; }
#content table.lesmos-catalog-price td { border:1px solid #d5cbb9; vertical-align:middle; }
#content table.lesmos-catalog-price tbody tr:nth-child(even) { background:#faf7f0; }
#content table.lesmos-catalog-price .lesmos-material-photo,#content table.lesmos-catalog-price .img-responsive { max-width:75px; max-height:75px; width:auto; height:auto; }
@media(max-width:600px) {
 #content table.lesmos-price-cards,#content table.lesmos-price-cards tbody { display:block; width:100%; min-width:0; }
 #content table.lesmos-price-cards thead { display:none; }
 #content table.lesmos-price-cards tbody tr { display:block; margin:0 0 14px; border:1px solid #d5cbb9; border-radius:6px; overflow:hidden; }
 #content table.lesmos-price-cards td { display:flex; align-items:center; gap:12px; width:auto; min-height:24px; padding:8px 10px; border:0; border-bottom:1px solid #e7dfd0; white-space:normal; text-align:left; overflow-wrap:anywhere; }
 #content table.lesmos-price-cards td:last-child { border-bottom:0; }
 #content table.lesmos-price-cards td::before { content:attr(data-label); flex:0 0 40%; color:#67533d; font-size:13px; font-weight:600; line-height:1.35; }
 #content .geg-button { width:100% !important; max-width:100%; min-width:0 !important; }
 #content .geg-button tbody,#content .geg-button tr { display:block; width:100%; }
 #content .geg-button td { display:block; width:auto; padding:8px 0; }
}

/* Shared visual style for catalogues, forms and actions. */
:root { --lesmos-ink:#342f29; --lesmos-muted:#766c60; --lesmos-line:#e7e0d6; --lesmos-accent:#a54128; --lesmos-green:#34704b; }
body, #wrapper, #footer, .header-fixed, #fancybox-wrap { font-family:"Segoe UI",Roboto,Arial,sans-serif; color:var(--lesmos-ink); }
#wrapper p,#wrapper li,#wrapper a,#wrapper th,#wrapper td,#footer a,#fancybox-wrap p,#fancybox-wrap label { font-family:inherit; }
#content h1,#content h2,#content h3,#contact_form_pop h2 { font-family:"Segoe UI",Roboto,Arial,sans-serif; font-weight:700; line-height:1.25; letter-spacing:-.4px; }
#content h1 { font-size:32px; margin-bottom:24px; }
#content h2 { font-size:25px; margin:26px 0 16px; }
#header .logo p,.header-fixed .logo p { font-family:"Segoe UI",Roboto,Arial,sans-serif; letter-spacing:0; }
#header-contacts a,.header-fixed .header-scroll-phone { font-family:"Segoe UI",Roboto,Arial,sans-serif; text-shadow:none; }
#header .call-btn,.header-fixed .header-scroll__right .call-btn,
#content .lesmos-order-button,#content .lesmos-price-order,#content .button-green,#content .button-blue,
.wpcf7-form input[type="submit"],#sideLeft .download-button {
 display:inline-flex; align-items:center; justify-content:center; gap:8px; box-sizing:border-box;
 min-height:44px; height:auto; padding:11px 18px; border:1px solid transparent; border-radius:10px;
 font:600 15px/1.3 "Segoe UI",Roboto,Arial,sans-serif; color:#fff; text-align:center; text-decoration:none;
 white-space:nowrap; text-shadow:none; cursor:pointer; transition:background-color .18s,box-shadow .18s;
 box-shadow:0 3px 8px #342f2914;
}
#header .call-btn,.header-fixed .header-scroll__right .call-btn,.wpcf7-form input[type="submit"] {
 background:linear-gradient(135deg,#bd5132,#963622); color:#fff;
}
#header .call-btn:hover,.header-fixed .header-scroll__right .call-btn:hover,.wpcf7-form input[type="submit"]:not(:disabled):hover { background:#893320; box-shadow:0 5px 12px #96362230; }
#content .lesmos-order-button,#content .lesmos-price-order,#content .button-green { background:linear-gradient(135deg,#43845b,#2d6544); margin-left:0; }
#content .lesmos-order-button:hover,#content .lesmos-price-order:hover,#content .button-green:hover { background:#28583c; box-shadow:0 5px 12px #34704b30; }
#content .button-blue,#sideLeft .download-button { background:#edf2f3; color:#365a64; border-color:#d5e1e4; }
#content .button-blue:hover,#sideLeft .download-button:hover { background:#e1ebee; }
#content .button-green,#content .button-blue { width:auto; max-width:100%; margin:0 auto; }
#content .button-green>span,#content .button-blue>span { position:static; height:auto; padding:0; background:none; color:inherit; text-shadow:none; font:inherit; text-align:center; }
#content a.lesmos-order-button img { display:none; }
#content #but_zak.lesmos-order-button { width:max-content; margin:24px auto; }
#sideLeft .download-button { width:100%; text-indent:0; padding:12px 8px; }
:is(.call-btn,.lesmos-order-button,.lesmos-price-order,.button-green,.button-blue,.download-button):focus-visible { outline:3px solid #c1844b; outline-offset:3px; }
.wpcf7-form input[type="submit"]:disabled { opacity:.65; cursor:not-allowed; }
@media(min-width:901px) {
 #header .header-address { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; width:380px; }
 #header .header-address p { grid-column:1; font-size:14px; line-height:1.4; }
 #header .header-address .call-btn-top { position:static; grid-column:2; grid-row:1/4; align-self:center; }
 #header .call-btn { padding:13px 15px; }
 #header-menu-wrapper ul { display:grid; grid-template-columns:1.65fr 1fr 1fr; gap:4px; padding:6px 0 0; }
 #header-menu-wrapper ul li,#header-menu-wrapper ul li:first-child { float:none; width:auto; height:auto; background:none; min-width:0; }
 #header-menu-wrapper ul li a { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; height:100%; padding:7px 5px; border:1px solid #d7c4a7; border-radius:7px; background:#f7efe2; font-size:13px; line-height:1.25; text-decoration:none; }
 #header-menu-wrapper ul li a:hover { background:#ebddc7; }
}
#header .header-address p { color:var(--lesmos-muted); }
@media(min-width:901px) and (max-width:960px) {
 #header .header-address { width:350px; }
}
#header .header-address p a { color:#755632; text-underline-offset:3px; }
/* Keep one close icon, instead of the two layered legacy image sprites. */
#fancybox-wrap #fancybox-close { right:12px !important; top:12px !important; display:flex !important; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:#f2ede6 !important; color:#625448; box-shadow:none; text-decoration:none; }
#fancybox-wrap #fancybox-close span { display:none !important; background:none !important; }
#fancybox-wrap #fancybox-close::before { content:'×'; font:400 28px/1 Arial,sans-serif; }
#fancybox-wrap #fancybox-close:hover { background:#e5d8c8 !important; }
#contact_form_pop { border-radius:16px; padding:30px 24px 22px; box-shadow:0 18px 50px #20140824; }
#contact_form_pop h2 { font-size:24px; margin:4px 20px 22px; }
.wpcf7-form label { font-size:14px; font-weight:600; line-height:1.5; }
.wpcf7-form input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form textarea,#content input[type="text"],#content input[type="tel"],#content input[type="email"],#content input[type="number"],#content select,#content textarea {
 box-sizing:border-box; min-height:46px; padding:12px 14px; border:1px solid #d9d0c4; border-radius:9px; background:#faf8f4;
 color:var(--lesmos-ink); font:400 16px/1.4 "Segoe UI",Roboto,Arial,sans-serif; box-shadow:inset 0 1px 2px #342f2905;
 transition:border-color .18s,box-shadow .18s; max-width:100%;
}
.wpcf7-form input:focus,.wpcf7-form textarea:focus,#content input:focus,#content select:focus,#content textarea:focus {
 outline:none; border-color:#a96f42; background:#fff; box-shadow:0 0 0 3px #a96f421a;
}
.wpcf7-form input::placeholder,.wpcf7-form textarea::placeholder { color:#9a9084; }
.wpcf7-form input[aria-invalid="true"] { border-color:#bc4b36; }
#contact_form_pop .wpcf7-list-item label { font-size:13px; font-weight:400; }
#contact_form_pop .wpcf7-submit { background:linear-gradient(135deg,#bd5132,#963622); border-radius:10px; min-height:46px; font-size:16px; }
/* A soft table surface, with hierarchy supplied by its header and row spacing. */
#content table.lesmos-data-table { border-collapse:separate; border-spacing:0; border:1px solid var(--lesmos-line); border-radius:12px; overflow:hidden; background:#fff; font-size:15px; box-shadow:0 4px 16px #342f2907; }
#content table.lesmos-data-table td,#content table.lesmos-data-table th { border:0; border-bottom:1px solid #eee9e1; padding:13px 12px; line-height:1.5; }
#content table.lesmos-data-table .lesmos-table-heading td,#content table.lesmos-data-table .lesmos-table-heading th { background:#eee6d8; color:#604c32; font-weight:700; font-size:14px; line-height:1.4; }
#content table.lesmos-data-table tbody tr:not(.lesmos-table-heading):nth-child(even) { background:#faf8f4; }
#content table.lesmos-data-table tbody tr:not(.lesmos-table-heading):hover { background:#f2f5ee; }
#content table.lesmos-data-table tr:last-child td { border-bottom:0; }
#content table.lesmos-data-table a:not(.lesmos-order-button):not(.lesmos-price-order) { color:#705438; text-underline-offset:3px; }
#content table.lesmos-data-table .lesmos-order-button,#content table.lesmos-data-table .lesmos-price-order { min-height:36px; padding:8px 14px; font-size:14px; }
/* Jump straight to the relevant plywood price list. */
.lesmos-material-picker { margin:24px 0 30px; }
.lesmos-price-anchor, .page-content [id="1"], .page-content [id="2"], .page-content [id="3"], .page-content [id="4"], .page-content [id="5"], .page-content [id="6"], .page-content [id="7"], .page-content [id="8"], .page-content [id="9"], .page-content [id="10"] { scroll-margin-top:96px; }
.lesmos-price-anchor { display:block; height:0; }
#content .lesmos-material-picker h2 { margin:0 0 16px; font-size:23px; }
.lesmos-material-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.lesmos-material-options > br { display:none; }
#content .lesmos-material-option { display:flex; position:relative; flex-direction:column; gap:7px; padding:18px 36px 18px 18px; border:1px solid #e3d8c8; border-radius:12px; background:#faf7f1; color:#493c2a; text-decoration:none; transition:border-color .18s,background-color .18s; }
.lesmos-material-option::after { content:'↗'; position:absolute; top:18px; right:16px; color:#96754c; font-size:21px; }
.lesmos-material-option strong { font-size:17px; font-weight:650; }
.lesmos-material-option span { font-size:14px; color:var(--lesmos-muted); }
#content .lesmos-material-option:hover,#content .lesmos-material-option:focus-visible { background:#f0e8da; border-color:#bd9a6a; outline:none; }
#sideRight a[href="/gosty"] img { width:100%; max-width:170px; height:auto; }
#sideRight .titlecalc,#content .titlecalc { background:#edf2f3; color:#365a64; height:auto; padding:12px 8px; border:1px solid #d5e1e4; border-radius:10px; font:600 16px/1.4 "Segoe UI",Roboto,Arial,sans-serif; }
#sideRight .titlecalc a { color:inherit; }
#fcalc p.plabel { background:none; color:#766c60; padding:8px 0 2px; font-size:13px; font-weight:600; }
.selectbox .select { box-sizing:border-box; width:182px; max-width:100%; height:42px; padding:9px 34px 9px 10px; border:1px solid #d9d0c4; border-radius:8px; background:#faf8f4; text-shadow:none; font:400 14px/22px "Segoe UI",Roboto,Arial,sans-serif; }
.selectbox .trigger { background:none; }
.selectbox .trigger .arrow { top:17px; width:7px; height:7px; border-right:2px solid #8a7c6b; border-bottom:2px solid #8a7c6b; transform:rotate(45deg); }
.selectbox .dropdown { box-sizing:border-box; background:#fff; border:1px solid #e7e0d6; border-radius:9px; top:45px; padding:5px; }
.selectbox li { box-sizing:border-box; width:auto; padding:8px; border-radius:5px; font-family:"Segoe UI",Roboto,Arial,sans-serif; }
.selectbox li.selected,.selectbox li:hover { background:#eee6d8; color:#493c2a; }
#fcalc #pkolvo,.calculator input.inputbox { box-sizing:border-box; min-height:42px; width:100%; max-width:182px; padding:9px 10px; border:1px solid #d9d0c4; border-radius:8px; background:#faf8f4; color:#342f29; font:400 15px/22px "Segoe UI",Roboto,Arial,sans-serif; text-shadow:none; }
#fcalc .btprcalc { box-sizing:border-box; width:182px; min-height:44px; background:#34704b; border-radius:9px; padding:10px; color:#fff; font:600 15px/1.4 "Segoe UI",Roboto,Arial,sans-serif; }
.wpcf7-form .checkbox { box-sizing:border-box; width:18px; height:18px; border-radius:5px; background:#faf8f4; border-color:#cbbda9; margin-right:5px; box-shadow:none; }
.wpcf7-form .checkbox.checked { background:#34704b; border-color:#34704b; }
.wpcf7-form .checkbox.checked span { width:5px; height:9px; margin:1px 0 0 5px; border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg); border-radius:0; background:none; box-shadow:none; }
@media(max-width:900px) {
 #content h1 { font-size:28px; }
 #content h2 { font-size:23px; }
 #header .call-btn { padding:13px 22px; }
 #header-menu-wrapper ul { gap:8px; }
 #header-menu-wrapper ul li a { background:#f7efe2; border:1px solid #e4d7c4; border-radius:8px; padding:10px 12px; text-decoration:none; }
 .lesmos-material-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 #content table.lesmos-plywood-prices td,#content table.lesmos-plywood-prices th { padding:10px 5px; font-size:12px; }
 #content table.lesmos-plywood-prices .lesmos-order-button,#content table.lesmos-plywood-prices .lesmos-price-order { padding:7px 6px; font-size:12px; }
 #content table.lesmos-price-cards { border:0; background:transparent; box-shadow:none; border-radius:0; }
 #content table.lesmos-price-cards tbody tr { border:1px solid var(--lesmos-line); border-radius:12px; background:#fff; box-shadow:0 4px 14px #342f2908; }
 #content table.lesmos-price-cards td { padding:11px 12px; border-bottom:1px solid #f0ece6; }
 #content table.lesmos-price-cards td::before { font-weight:600; color:#8a7c6b; }
 .lesmos-material-options { grid-template-columns:1fr; gap:10px; }
 #content .lesmos-material-option { padding:16px 38px 16px 16px; }
}


/* Compact calculator result, shared by the sidebar and page calculators. */
#myModal.reveal-modal { box-sizing:border-box; left:50%; right:auto; bottom:auto; margin:0; transform:translateX(-50%); top:72px; height:auto; width:560px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 104px); overflow:auto; overflow-x:hidden; padding:28px; border:1px solid #e8e2d8; border-radius:18px; background:#fff; box-shadow:0 24px 80px #0005; color:#342f29; text-align:left; }
#myModal .close-reveal-modal { position:absolute; top:15px; right:15px; float:none; margin:0; width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:0; border-radius:50%; background:#f4f1ec; color:#73675a; font:400 28px/1 Arial,sans-serif; text-decoration:none; cursor:pointer; }
#myModal .close-reveal-modal:hover { background:#e9e2d8; color:#342f29; }
#myModal .close-reveal-modal:focus-visible { outline:3px solid #a96f42; outline-offset:2px; }
#myModal .lesmos-calc-title { margin:0 42px 20px 0; padding:0; background:none; border:0; font:650 23px/1.3 "Segoe UI",Roboto,Arial,sans-serif; color:#342f29; }
#myModal .lesmos-calc-material { margin:0 0 16px; color:#34704b; font:650 19px/1.4 "Segoe UI",Roboto,Arial,sans-serif; }
#myModal .lesmos-calc-details { margin:0; padding:0; font:400 15px/1.5 "Segoe UI",Roboto,Arial,sans-serif; }
#myModal .lesmos-calc-details > div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:16px; padding:13px 0; border-bottom:1px solid #eee9e1; }
#myModal .lesmos-calc-details dt { color:#817669; margin:0; }
#myModal .lesmos-calc-details dd { color:#342f29; font-weight:600; margin:0; text-align:right; overflow-wrap:anywhere; }
#myModal .lesmos-calc-total { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:22px 0 14px; padding:20px; border-radius:12px; background:#edf4ee; color:#2f6040; font:600 16px/1.4 "Segoe UI",Roboto,Arial,sans-serif; }
#myModal .lesmos-calc-total strong { font-size:30px; font-weight:700; text-align:right; }
#myModal .lesmos-calc-note { margin:0; padding:0; color:#8a7c6b; font:400 13px/1.6 "Segoe UI",Roboto,Arial,sans-serif; }
@media(max-width:600px) {
 #myModal.reveal-modal { top:24px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 48px); padding:22px 18px; border-radius:14px; }
 #myModal .lesmos-calc-title { font-size:21px; }
 #myModal .lesmos-calc-details > div { grid-template-columns:100px minmax(0,1fr); gap:10px; }
 #myModal .lesmos-calc-total { padding:16px; }
 #myModal .lesmos-calc-total strong { font-size:25px; }
}

.lesmos-sidebar-price { display:flex; flex-direction:column; gap:12px; padding:20px 14px; border:1px solid #e4d7c4; border-radius:12px; background:#f7f1e7; color:#715634; font:500 14px/1.5 "Segoe UI",Roboto,Arial,sans-serif; text-align:center; }
.lesmos-sidebar-price strong { font-size:23px; color:#34704b; }
