.gs-filters{margin:20px 0;border:1px solid #dce5ee;border-radius:14px;background:#fff;overflow:hidden}
.gs-filters>details>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:16px 18px;min-height:52px;font-size:14px;font-weight:650;color:#173d65}
.gs-filters>details>summary::-webkit-details-marker{display:none}
.gs-filters>details>summary>span{flex:1}.gs-filters>details>summary>small{padding:2px 8px;border-radius:20px;background:#eaf3ff;color:#165ecc}
.gs-filters>details>summary>i:last-child{font-size:11px}.gs-filters>details[open]>summary>i:last-child{transform:rotate(180deg)}
.gs-filter-form{padding:0 18px 18px;display:grid;grid-template-columns:minmax(0,1fr);gap:18px 28px}
.gs-filter-form fieldset{min-width:0;margin:0}.gs-filter-form legend{font-size:13px;font-weight:650;margin:0 0 10px;padding:0;border:0;color:#274d70}
.gs-filter-brand-grid{display:flex;gap:8px;flex-wrap:wrap}
.gs-filter-brand{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 10px;border:1px solid #dce5ee;border-radius:8px;font-size:12px;line-height:1.4;cursor:pointer;color:#264864}
.gs-filter-brand input{accent-color:#1767d9;width:16px;height:16px;flex-shrink:0}.gs-filter-brand small{color:#6c8092}
.gs-filter-brand.is-selected,.gs-filter-brand:has(input:checked){border-color:#1c71dd;background:#edf5ff}.gs-filter-brand:has(input:disabled){opacity:.55;cursor:default}
.gs-filter-price-fields{display:flex;gap:9px;align-items:end}.gs-filter-price-fields>label{flex:1;min-width:0;font-size:11px;color:#5b7083}
.gs-filter-price-fields>span{margin-bottom:12px;color:#8394a3}
.gs-filter-price-fields input{display:block;width:100%;min-width:0;height:44px;margin-top:5px;border:1px solid #cedbe8;border-radius:8px;padding:9px;font-size:14px;color:#173d65}
.gs-filter-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.gs-filter-actions .btn{min-height:44px;padding:11px 19px}
.gs-filter-error{grid-column:1/-1;margin:0;color:#9e2c29;background:#fff3f1;padding:12px;border-radius:8px;font-size:13px}
.gs-filter-chips{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 16px}
.gs-filter-chips a{display:flex;gap:10px;align-items:center;min-height:44px;border:1px solid #c6dbf4;border-radius:24px;padding:8px 12px;font-size:12px;color:#174f98;background:#f4f8ff}
.gs-filter-chips a i{font-size:10px}
.gs-filter-price-fields input:focus-visible,.gs-filter-brand:focus-within{outline:3px solid #b3d1fb;outline-offset:2px;border-color:#317ddc}
@media(max-width:767px){.gs-filter-form{grid-template-columns:minmax(0,1fr);padding:0 14px 16px;gap:18px}.gs-filter-chips{padding:0 14px 14px}.gs-filter-price-fields{max-width:100%}.gs-filters>details>summary{padding:14px}}

.gs-filter-drawer:not([open]) {
  display: none;
}
@media(max-width:767px) {
  html:has(.gs-filter-drawer[open]) {
    overflow: hidden;
  }
  .gs-filter-drawer {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: min(86dvh, 45rem);
    margin: 0;
    padding: 0;
    border: 1px solid #dce5ee;
    border-radius: 18px 18px 0 0;
    background: #fff;
    color: #173d65;
    overscroll-behavior: contain;
  }
  .gs-filter-drawer::backdrop {
    background: #102d53a6;
  }
  .gs-filter-drawer-header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    padding: 8px 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e1ecf7;
    background: #fff;
  }
  .gs-filter-drawer-header h2 {
    margin: 0;
    font-size: 1.1rem;
  }
  .gs-filter-drawer-selection {
    margin-inline-start: auto;
    font-size: .85rem;
  }
  .gs-filter-drawer-header .btn-close {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
  }

}

/* Keep the catalog and search result controls close to the first product row. */
body.goods-store #product-search .olmax-search-options {
  margin: 8px 0 12px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
}
body.goods-store #product-search .olmax-search-options > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: inherit;
  color: #173d65;
  font-size: 14px;
  font-weight: 680;
  list-style: none;
  cursor: pointer;
}
body.goods-store #product-search .olmax-search-options > summary::-webkit-details-marker {display: none}
body.goods-store #product-search .olmax-search-options > summary > i:last-child {
  margin-inline-start: auto;
  font-size: 11px;
}
body.goods-store #product-search .olmax-search-options[open] > summary > i:last-child {transform: rotate(180deg)}
body.goods-store #product-search .olmax-search-options__active {
  color: #1b5e9c;
  font-size: 12px;
  font-weight: 600;
}
body.goods-store #product-search .olmax-search-options .gs-search-panel {
  margin: 0;
  padding: 4px 12px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.goods-store #product-search .olmax-search-options .gs-search-extra-content {padding: 10px 0 0}
body.goods-store .olmax-discovery-controls .gs-filters {margin: 0 0 8px}
body.goods-store .olmax-discovery-controls .gs-discovery-toolbar {margin: 0 0 12px}
body.goods-store :is(.olmax-search-options, .olmax-discovery-controls) summary:focus-visible {
  outline: 2px solid #1765b4;
  outline-offset: -3px;
}
@media (max-width: 767px) {
  body.goods-store :is(#product-search, #product-category) #content > h1 {margin-bottom: 8px}
  body.goods-store .olmax-discovery-controls .gs-filters > details > summary {
    min-height: 44px;
    padding: 6px 10px;
  }
  body.goods-store .olmax-discovery-controls .gs-discovery-toolbar {
    gap: 5px;
    padding: 8px;
  }
  body.goods-store .olmax-discovery-controls .gs-discovery-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(62px, .34fr);
    gap: 6px;
  }
  body.goods-store .olmax-discovery-controls .gs-discovery-fields > div {
    min-width: 0;
    width: auto;
  }
  body.goods-store .olmax-discovery-controls .gs-discovery-fields select {
    min-height: 44px;
    padding-inline-start: 8px;
    font-size: 13px;
  }
  body.goods-store .olmax-discovery-controls .gs-discovery-fields label {
    margin-bottom: 2px;
    font-size: 11px;
  }
  body.goods-store #product-category .gs-subcategories {
    flex-wrap: nowrap;
    margin: 0 0 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  body.goods-store #product-category .gs-subcategories > li {flex: 0 0 auto}
  body.goods-store #product-category .gs-subcategories a {min-height: 44px}
}

/* Price fields take priority in both the dialog and native details fallback. */
body.goods-store .gs-filters .gs-filter-form > .gs-filter-price {
  min-width: 0;
  padding: 10px 12px 12px;
  border: 1px solid #d5e3f3;
  border-radius: 12px;
  background: #f6faff;
}
body.goods-store .gs-filters .gs-filter-price legend {
  float: none;
  width: auto;
  margin: 0 0 6px;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 750;
}
body.goods-store .gs-filters .gs-filter-price-fields > label {
  color: #294d70;
  font-size: 13px;
  font-weight: 650;
}
body.goods-store .gs-filters .gs-filter-price-fields input {
  min-height: 46px;
  padding: 6px 9px;
  border-color: #aebfd3;
  background: #fff;
  font-size: 16px;
}
body.goods-store .gs-filters .gs-filter-price-fields input::placeholder {
  color: #536b83;
  opacity: 1;
}
@media (min-width: 768px) {
  body.goods-store .gs-filters .gs-filter-form:has(> .gs-filter-price):has(> .gs-filter-brands) {
    grid-template-columns: minmax(160px, .55fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 767px) {
  body.goods-store .gs-filters .gs-filter-form {gap: 14px}
  body.goods-store .gs-filters .gs-filter-form > .gs-filter-actions {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin: 0;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #e6edf6;
  }
  body.goods-store .gs-filters .gs-filter-form > .gs-filter-actions .btn {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 7px 10px;
    white-space: normal;
  }
  body.goods-store .gs-filters .gs-filter-drawer {
    scroll-padding-block: 65px 12px;
  }
  body.goods-store .gs-filters .gs-filter-price-fields input {scroll-margin-block: 10px}
}

body.goods-store .gs-filters .gs-filter-specs legend {
  float: none;
  width: auto;
  margin-bottom: 7px;
  color: #173d65;
  font-size: 15px;
  font-weight: 750;
}
body.goods-store .gs-filters .gs-filter-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 9px;
}
body.goods-store .gs-filters .gs-filter-spec-grid label {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  color: #294d70;
  font-size: 13px;
  font-weight: 650;
}
body.goods-store .gs-filters .gs-filter-spec-grid select {
  min-width: 0;
  min-height: 44px;
  font-size: 14px;
}
@media (min-width: 768px) {
  body.goods-store .gs-filters .gs-filter-form:has(> .gs-filter-price):has(> .gs-filter-specs) {
    grid-template-columns: minmax(150px, .48fr) minmax(0, 1fr);
  }
  body.goods-store .gs-filters .gs-filter-form:has(> .gs-filter-specs) > .gs-filter-brands {grid-column: 1/-1}
}
@media (max-width: 767px) {
  body.goods-store .gs-filters .gs-filter-spec-grid select {font-size: 16px}
}
body.goods-store #product-category :is(.olmax-selection-links,.olmax-selection-intro) {
  margin: 8px 0 12px;
}
body.goods-store #product-category .olmax-selection-links {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
}
body.goods-store #product-category .olmax-selection-intro p {
  color: #37536e;
  max-width: 65ch;
  margin-bottom: 3px;
}
body.goods-store #product-category :is(.olmax-selection-links,.olmax-selection-intro) a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #19558f;
  font-size: 14px;
  font-weight: 650;
}
body.goods-store #product-category .olmax-selection-links a {
  padding: 7px 10px;
  border: 1px solid #d3e2f4;
  border-radius: 10px;
  background: #f4f9ff;
}
body.goods-store #product-category :is(.olmax-selection-links,.olmax-selection-intro) a:focus-visible {
  outline: 2px solid #1765b4;
  outline-offset: -2px;
}
