/* Stable catalogue geometry is present in the initial document. */
.lst-first-paint-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
@media (max-width:1100px) {
  .lst-first-paint-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:880px) {
  .lst-first-paint-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:520px) {
  .lst-first-paint-grid {grid-template-columns:minmax(0,1fr);}
}
.lst-first-paint-grid > .product-miniature.lst-first-paint-tile {
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  width:auto !important;
  margin:0 !important;
}
.lst-first-paint-tile .lst-roof-media-link {
  display:block;
  height:128px;
  background:#f5f7fb;
}
.lst-first-paint-tile .lst-roof-media-link img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.lst-first-paint-tile .lst-roof-open {margin-top:auto;}
.lst-first-paint-tile .lst-v5-commerce > div {
  display:flex;
  justify-content:space-between;
  gap:6px;
}
.lst-first-paint-order {min-width:0;}
.lst-first-paint-order .lst-order-grid:has(> label > [name="length_mm"]):has(> label > [name="pieces"]) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px 8px;
}
.lst-first-paint-order :is(.lst-order-field,.lst-order-field > select,.lst-order-field > input) {
  min-width:0;
  max-width:100%;
}
.lst-first-paint-order .lst-order-actions > [data-lst-order-action="add"] {width:100%;}

/* Give the short calculation form its final geometry before JS attaches. */
.lst-first-paint-order .lst-roof-qty-row,
.lst-first-paint-tile:is(.lst-roof-card--accessories,.lst-roof-card--gutters) .lst-order-form:not(:has(.lst-roof-qty-row)) .lst-card-order {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:end;
  gap:5px 8px;
}
.lst-first-paint-order .lst-roof-qty-row > *,
.lst-first-paint-tile:is(.lst-roof-card--accessories,.lst-roof-card--gutters) .lst-card-order > * {min-width:0;}
.lst-first-paint-tile:is(.lst-roof-card--accessories,.lst-roof-card--gutters) .lst-card-order > :is(h2,p,dl,aside,.lst-source-info,.lst-card-volume-help,.lst-roof-qty-row) {grid-column:1/-1;}
.lst-first-paint-tile .lst-first-paint-order [data-lst-order-action="add"] {min-height:42px;}
.lst-first-paint-tile [data-lst-thickness-buttons] + [data-lst-first-paint-thickness] {
  position:absolute;
  inline-size:1px;
  block-size:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.lst-first-paint-tile [data-lst-thickness-buttons] + [data-lst-first-paint-thickness]:focus-within {
  position:static;
  inline-size:auto;
  block-size:auto;
  clip-path:none;
}
.lst-first-paint-tile .lst-roof-thickness__buttons {display:flex;flex-wrap:wrap;gap:4px;}
.lst-first-paint-tile .lst-roof-thickness__button {min-width:32px;min-height:32px;}
.lst-first-paint-tile .lst-roof-thickness__button[aria-pressed="true"] {
  color:#fff;background:#123b8f;border-color:#123b8f;
}
/* Native list body column sizes apply before the filter docking script. */
@supports selector(body:has(.lst-native-catalog)) {
  @media (min-width:992px) {
    body#category:has(.lst-native-catalog) #left-column {flex:0 0 220px;max-width:220px;width:220px;}
    body#category:has(.lst-native-catalog) #center-column {flex:1 1 0;max-width:calc(100% - 220px);width:calc(100% - 220px);min-width:0;}
  }
}
.lst-first-paint-tile .lst-first-paint-order [hidden] {display:none!important;}
.lst-first-paint-tile .lst-first-paint-order fieldset {min-width:0;border:0;margin:0;padding:0;}
.lst-first-paint-tile .lst-first-paint-order .lst-first-paint-options {grid-column:1/-1;font-size:11px;margin:5px 0;}
.lst-first-paint-tile :is(.lst-order-field > select,.lst-order-field > input) {
  box-sizing:border-box;
  width:100%;
  border:1px solid #dce3ee;
  border-radius:5px;
  background:#fff;
  color:#17233c;
  padding:6px 8px;
  min-height:40px;
}
.lst-first-paint-tile .lst-roof-open {text-align:center;}
