/* CODEX compact product filter 2026-10-22 */
.filter > [id^="comp_"] > h2 {
  margin-bottom: 18px;
}

.filter #smartFilterForm {
  align-items: center;
  gap: 12px;
}

.filter #smartFilterForm .paramsBox {
  margin-right: 0;
  margin-bottom: 0 !important;
}

/* Keep the filter action buttons in the same compact row on every catalog type.
   The legacy template stretches the second column to 100% on capacitor pages. */
.filter #smartFilterForm > .paramsBox.filter-form-column {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
}

.filter #smartFilter .dropdown {
  min-width: 180px;
}

.filter #smartFilter > .xw-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.filter #smartFilter > .xw-alert > div {
  margin-right: 0 !important;
}

.filter #smartFilter > .xw-alert .button {
  flex: 0 0 auto;
  min-width: 166px;
  margin: 0 !important;
}

.filter + .prod-items {
  margin-top: 18px;
}

.filter + .prod-items .prod-items-top {
  padding-top: 18px;
  padding-bottom: 18px;
}

@media screen and (max-width: 700px) {
  .filter > [id^="comp_"] > h2 {
    margin-bottom: 14px;
  }

  .filter #smartFilterForm {
    gap: 10px;
  }

  .filter #smartFilter .dropdown {
    min-width: 0;
  }

  .filter #smartFilter > .xw-alert {
    display: block;
    min-height: 0;
    padding-top: 6px;
    font-size: 13px;
  }

  .filter #smartFilter > .xw-alert .button {
    display: inline-flex;
    min-width: 150px;
    margin-top: 8px !important;
  }

  .filter + .prod-items {
    margin-top: 14px;
  }

  .filter + .prod-items .prod-items-top {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* Compact, clearly clickable product tabs and questionnaire actions. */
@media screen and (min-width: 1101px) {
  main.content .characteristics-btns {
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid #d7d7d7;
    background-color: #f1f1f1;
  }

  main.content .in-characteristics-btns {
    min-height: 56px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: stretch;
  }

  main.content .characteristics-btn {
    min-height: 56px;
    margin-right: 0;
    padding: 0 30px;
    justify-content: center;
    border: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-radius: 0 !important;
    background: transparent;
    color: #222;
    font-weight: 500;
    line-height: 1.25;
    box-sizing: border-box;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
  }

  main.content .characteristics-btn + .characteristics-btn {
    border-left-color: #d7d7d7;
  }

  main.content .characteristics-btn:before,
  main.content .characteristics-btn:after {
    display: none !important;
  }

  main.content .characteristics-btn:hover {
    background-color: #fff;
    color: #cc0038;
    box-shadow: inset 0 -3px 0 rgba(204, 0, 56, .45);
  }

  main.content .characteristics-btn.active {
    background-color: #fff;
    color: #111;
    font-weight: 700;
    box-shadow: inset 0 -4px 0 #cc0038;
  }

  main.content .characteristics-btn:focus-visible {
    outline: 2px solid #cc0038;
    outline-offset: -3px;
  }
}

main.content > .in:has(> .lebel3-top) {
  padding-top: 24px;
  padding-bottom: 24px;
}

main.content .lebel3-top {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

main.content .lebel3-top > .lebel3-top-item {
  gap: 16px;
  flex-wrap: wrap;
}

main.content .lebel3-top > .lebel3-top-item > a {
  display: inline-flex;
  min-height: 48px;
  padding: 8px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cc0038;
  border-radius: 0;
  background: #fff;
  color: #171717;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

main.content .lebel3-top > .lebel3-top-item > a:first-child {
  margin-right: 0 !important;
  background-color: #cc0038;
  color: #fff;
}

main.content .lebel3-top > .lebel3-top-item > a:first-child img {
  filter: brightness(0) invert(1);
}

main.content .lebel3-top > .lebel3-top-item > a:hover,
main.content .lebel3-top > .lebel3-top-item > a:focus-visible {
  background-color: #f8e9ed;
  color: #a9002f;
  text-decoration: none;
}

main.content .lebel3-top > .lebel3-top-item > a:first-child:hover,
main.content .lebel3-top > .lebel3-top-item > a:first-child:focus-visible {
  border-color: #a9002f;
  background-color: #a9002f;
  color: #fff;
}

main.content .lebel3-top > .lebel3-top-item > a:focus-visible {
  outline: 2px solid #cc0038;
  outline-offset: 2px;
}

main.content .lebel3-top > .lebel3-top-item > a img {
  width: auto;
  max-width: 34px;
  height: auto;
  max-height: 32px;
  margin: 0 12px 0 0;
  object-fit: contain;
}

main.content .lebel3-top > .lebel3-top-item > a div,
main.content .lebel3-top > .lebel3-top-item > a span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

@media screen and (max-width: 700px) {
  main.content > .in:has(> .lebel3-top) {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .lebel3-top {
    display: flex !important;
  }

  main.content .lebel3-top > .lebel3-top-item {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  #ts-block {
    box-sizing: border-box;
    max-width: 100%;
  }

  .filter #smartFilterForm > .paramsBox.filter-form-column {
    width: 100%;
    max-width: 100%;
  }

  main.content .lebel3-top > .lebel3-top-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 0;
  }

  main.content .lebel3-top > .lebel3-top-item > a {
    width: 100%;
    margin: 0 !important;
  }
}
