.lst-catalog-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.lst-catalog-dropdown summary {
  cursor: pointer;
  list-style: none;
}

.lst-catalog-dropdown summary::-webkit-details-marker {
  display: none;
}

.lst-catalog-dropdown summary::after {
  width: .45rem;
  height: .45rem;
  margin-inline-start: .25rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

#lst-catalog-dropdown-links {
  position: absolute;
  z-index: 1030;
  inset-block-start: 100%;
  inset-inline-start: 0;
  width: min(17rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 32rem);
  padding: .4rem;
  overflow: auto;
  border: 1px solid #dce3ee;
  border-radius: .55rem;
  background: #fff;
  box-shadow: 0 .5rem 1.5rem #071a4526;
}

#lst-catalog-dropdown-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: .45rem .65rem;
  border-radius: .3rem;
  color: #071a45;
  text-decoration: none;
}

#lst-catalog-dropdown-links a:is(:hover, :focus-visible) {
  background: #ebf0f9;
  color: #123b8f;
}

#lst-catalog-dropdown-links .lst-catalog-dropdown__all {
  color: #123b8f;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .header-bottom:has(.lst-catalog-dropdown) { position: relative; }
  .lst-catalog-dropdown { position: static; }
  .lst-catalog-dropdown > summary { min-height: 44px; padding-inline: .55rem; }
  #lst-catalog-dropdown-links { inset-inline-start: .75rem; }
}

.lst-top-ral .lst-top-ral__choice { min-height: 52px; }
.lst-top-ral .lst-top-ral__sample { width: 32px; height: 27px; }

dialog#lst-catalogue-ral-dialog .lst-ral-dialog__choice { min-height: 56px; }
dialog#lst-catalogue-ral-dialog .lst-ral-dialog__choice .lst-v5-ral-sample {
  width: 34px;
  height: 28px;
  flex-basis: 34px;
}

#lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .45rem .65rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: #071a45;
  font: inherit;
  text-align: start;
}

#lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: #ebf0f9;
  color: #123b8f;
}

#lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle::after {
  width: .45rem;
  height: .45rem;
  flex: none;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}

#lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.lst-catalog-dropdown__children {
  margin: .2rem .25rem .45rem .65rem;
  padding: .15rem .3rem;
  border-inline-start: 2px solid #dce3ee;
}

@media (min-width: 992px) and (min-height: 620px) {
  #lst-catalog-dropdown-links {
    overflow: visible;
  }

  #lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle::after,
  #lst-catalog-dropdown-links .lst-catalog-dropdown__branch-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }

  .lst-catalog-dropdown__children {
    position: absolute;
    z-index: 1;
    inset-block-start: -1px;
    inset-inline-start: calc(100% - 1px);
    width: 18rem;
    max-height: min(70vh, 32rem);
    margin: 0;
    padding: .4rem;
    overflow: auto;
    border: 1px solid #dce3ee;
    border-radius: .55rem;
    background: #fff;
    box-shadow: 0 .5rem 1.5rem #071a4526;
  }
}

body#category #js-product-list .lst-v5-controls[data-lst-controls] [data-lst-control-choice] dd {
  margin: 0;
}

body#category #js-product-list .lst-v5-controls[data-lst-controls] :is([data-lst-control-choice], .lst-v5-quantity, .lst-v5-coating, .lst-v5-specs) label.lst-order-field {
  gap: 4px !important;
  padding: 0;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 16px !important;
}

body#category #js-product-list .lst-v5-controls[data-lst-controls] :is([data-lst-control-choice], .lst-v5-quantity, .lst-v5-coating, .lst-v5-specs) label.lst-order-field > :is(span, select, input) {
  margin-block: 0 !important;
}

body#category #js-product-list .lst-v5-controls[data-lst-controls] :is([data-lst-control-choice], .lst-v5-quantity, .lst-v5-coating, .lst-v5-specs) label.lst-order-field > span {
  padding-block: 0;
  font-size: inherit !important;
  line-height: inherit !important;
}

body#category.category-id-33 #js-product-list .lst-v5-row[data-lst-inline] .lst-v5-controls[data-lst-controls] .lst-v5-quantity {
  column-gap: 12px !important;
}

@media (max-width: 767.98px) {
  .header-bottom .header-bottom__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
    align-items: center !important;
    gap: 0;
    width: 100%;
    min-width: 0;
    margin-inline: 0;
  }

  .header-bottom__row > .header-bottom__logo {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
  }

  .header-bottom__logo :is(.header-bottom__h1, .navbar-brand) {
    min-width: 0;
    max-width: 100%;
  }

  .header-bottom__logo .logo {
    display: block;
    width: min(100%, 170px);
    max-width: 100%;
    height: auto;
  }

  .header-bottom__row > :is(.ps-searchbar--mobile, #_mobile_ps_customersignin, #_mobile_ps_shoppingcart) {
    grid-row: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
  }

  .header-bottom__row > .ps-searchbar--mobile { grid-column: 2; }
  .header-bottom__row > #_mobile_ps_customersignin { grid-column: 3; }
  .header-bottom__row > #_mobile_ps_shoppingcart { grid-column: 4; }
  .header-bottom__row > :is(.lst-catalog-dropdown, .lst-header-catalog) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .header-bottom__row > .lst-catalogue-in-mobile-menu {
    display: none !important;
  }

  .header-bottom__row :is(.header-block__action-btn, #_mobile_ps_customersignin > a, #_mobile_ps_shoppingcart > a) {
    min-width: 40px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  #mobileMenu {
    --bs-offcanvas-width: min(92vw, 365px);
    max-width: 100%;
  }

  #mobileMenu #lst-catalog-dropdown-links {
    position: static;
    width: 100%;
    max-height: none;
    padding: .35rem .65rem .65rem;
    border: 0;
    border-bottom: 1px solid #dce3ee;
    border-radius: 0;
    box-shadow: none;
  }

  #searchCanvas .offcanvas-header {
    gap: .65rem;
    width: 100%;
  }

  #searchCanvas .offcanvas-header > :first-child,
  #searchCanvas :is(form, .input-group, input) {
    min-width: 0;
    max-width: 100%;
  }

  #lst-catalog-dropdown-links :is(a, button) {
    overflow-wrap: anywhere;
  }

  main#wrapper :is(.breadcrumb, .breadcrumb__list, .breadcrumb ol, .breadcrumb ul) {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap !important;
    gap: .2rem 0;
    white-space: normal !important;
  }

  main#wrapper :is(.breadcrumb li, .breadcrumb-item, .breadcrumb-link) {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body:is(#category, #search, #product) main#wrapper .center-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:is(#category, #search) main#wrapper #left-column {
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #left-column #offcanvas-faceted {
    --bs-offcanvas-width: min(92vw, 365px);
    max-width: 100vw;
  }

  body:is(#category, #search) #js-product-list :is(.lst-native-catalog, .lst-native-catalog__products) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:is(#category, #search) #js-product-list .lst-native-catalog[data-view="table"] {
    container: lst-catalog / inline-size;
  }

  body:is(#category, #search) #js-product-list .lst-native-catalog[data-view="table"] .lst-v5-head {
    display: none !important;
  }

  body:is(#category, #search) #js-product-list .lst-native-catalog[data-view="table"] .lst-v5-row {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body:is(#category, #search) #js-product-list .lst-v5-row > .lst-v5-controls[data-lst-controls] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body:is(#category, #search) #js-product-list .lst-v5-row :is(.lst-v5-name, .product-miniature__title, .lst-order-field, .lst-order-actions, label) {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body:is(#category, #search) #js-product-list .lst-v5-row :is(.lst-v5-form, .lst-v5-quantity, .lst-v5-specs, input, select, textarea, .btn) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body#category #js-product-list table:has(tbody) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body#category #js-product-list table:has(tbody) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  body#category #js-product-list table:has(tbody) :is(tbody, tr, td) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  body#category #js-product-list table:has(tbody) tbody > tr {
    margin-bottom: .65rem;
    padding: .5rem .7rem;
    border: 1px solid #dce3ee;
    border-radius: .45rem;
  }

  body#category #js-product-list table:has(tbody) tbody > tr[hidden] { display: none !important; }
  body#category #js-product-list table:has(tbody) td { padding-inline: 0; }
  body#category #js-product-list table:has(tbody) :is(button, input, select) { max-width: 100%; }

  main#wrapper :is(.products__sort, .products__list-header, .lst-roof-grid, .lst-picket-grid, .lst-picket-cards, .lst-first-paint-grid, .lst-subcategory__link) {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  main#wrapper .products__sort { flex-wrap: wrap; gap: .45rem; }
  main#wrapper .lst-subcategory__link img { max-width: 100%; }
}

@media (max-width: 480px) {
  main#wrapper :is(.lst-roof-grid, .lst-picket-cards, .lst-first-paint-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
