/* SANSARA — public actions and catalogue filters */
#allrecords :is(.t-btn, .t-submit, [data-elem-type="button"] > .tn-atom, .sansara-stock-button, .js-store-filter-price-btn) {
  box-sizing: border-box !important;
  background: var(--sansara-action-fill, #fff) !important;
  color: #101010 !important;
  border: 1px solid #101010 !important;
  border-radius: 100px !important;
  box-shadow: none !important;
  font-family: Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important;
}
#allrecords :is(.t-btn[href="#order"], .t-submit, [data-elem-type="button"] > .tn-atom, .sansara-stock-button[aria-pressed="true"]) { --sansara-action-fill: #f8d006; }
#allrecords :is(.t-btn,.t-submit) .t-btnflex__text { color: inherit !important; }
#allrecords :is(.t-btn,.t-submit) .t-btn_wrap-effects { display: none; }
#allrecords :is(.t-btn,.t-submit,[data-elem-type="button"] > .tn-atom,.sansara-stock-button):focus-visible { outline: 2px solid #151515; outline-offset: 3px; }
#allrecords :is(.t-store__card__btn, a.t-store__prod-popup__btn, .t-store__prod__quantity) { box-sizing: border-box; height: 45px !important; border-radius: 100px !important; }
#allrecords :is(.t-store__card__btn, a.t-store__prod-popup__btn) { min-width: 0; font-size: 14px !important; }
#allrecords .t-store__card__btns-wrapper:not(:has(.t-store__prod__quantity)) { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
#allrecords .t-store__card__btns-wrapper:not(:has(.t-store__prod__quantity)) > .t-store__card__btn { width: 100%; margin: 0 !important; padding-inline: 5px !important; }
#allrecords .t-store__filter__chosen-bar { display: none !important; }
#allrecords .sansara-stock-button { min-height: 38px; padding: 6px 16px; font-size: 14px !important; }
#allrecords .sansara-stock-count:empty { display: none; }
#allrecords .t951__sidebar-wrapper, #allrecords .js-store-filter .t-store__filter__item-controls-container { max-height: none !important; overflow: visible !important; }
#allrecords #rec1325196701 .t951__sidebar-wrapper { position: static; }
@media (min-width: 961px) {
  #allrecords .t951__sidebar { padding: 16px clamp(10px,1.2vw,20px); }
  #allrecords .t951__sidebar .js-store-filter-item { margin: 0 0 10px; }
  #allrecords .t951__sidebar .js-store-filter-item-title { margin-bottom: 4px; font-weight: 600; }
  #allrecords .t951__sidebar .t-store__filter__item_checkbox .t-store__filter__item-controls-container { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px 6px; }
  #allrecords .t951__sidebar .t-store__filter__checkbox { min-height: 25px; margin: 0; font-size: 13px; line-height: 1.22; align-items:center; }
  #allrecords .t951__sidebar .t-store__filter__checkbox .t-checkbox__indicator { flex: none; width: 16px; height: 16px; margin-right: 6px; }
  #allrecords .t951__sidebar .sansara-stock-button { margin: 0 0 8px; }
  #allrecords .t951__sidebar .sansara-stock-count:not(:empty) { margin: 0 0 6px; }
}
@media (min-width: 961px) and (min-height: 650px) {
  #allrecords #rec1325196701 .t951__sidebar-wrapper { position: sticky; top: 16px; }
}
@media (max-width: 960px) {
  #allrecords .js-store-filter :is(.t-store__filter__options,.t-store__filter__item-controls-wrap) { max-height: none !important; overflow: visible !important; }
  #allrecords .js-store-filter .t-store__filter__item_checkbox .t-store__filter__item-controls-container { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 8px; }
  #allrecords .js-store-filter .t-store__filter__checkbox { margin: 0; min-height: 32px; align-items:center; }
}

/* Keep the quantity selector and order action on one row. */
#allrecords .t-store__card__btns-wrapper--quantity { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); gap:7px 4px; width:100%; max-width:250px; }
#allrecords .t-store__card__btns-wrapper--quantity > * { width:100% !important; min-width:0 !important; margin:0 !important; }
#allrecords .t-store__card__btns-wrapper--quantity > .js-store-prod-btn:not([href="#order"]) { grid-column:1 / -1; }
#allrecords .t-store__card__btns-wrapper--quantity > .t-store__card__btn { padding-inline:3px !important; }
#allrecords .t-store__card__btns-wrapper--quantity .t-store__prod__quantity { display:flex; }
#allrecords .t-store__card__btns-wrapper--quantity .t-store__prod__quantity > * { flex:1 1 0; width:0; min-width:0; margin-inline:0; text-align:center; }
@media(max-width:480px){ #allrecords .t-store__card__btns-wrapper--quantity .t-store__card__btn { font-size: clamp(11px,3vw,14px) !important; } }

#allrecords [data-elem-type="button"] > a[href="#catalog"] { --sansara-action-fill:#fff; }
#allrecords :is(.t-menuwidgeticons__icon_circle,.t450__burger_bg) { background-color:white !important; border:1px solid #101010; box-sizing:border-box; border-radius:50%; opacity:1 !important; }
#allrecords .t-menuwidgeticons__cart { background-color:#f8d006 !important; }
#allrecords .t-menuwidgeticons__img svg [stroke] { stroke:#101010 !important; }
#allrecords .t450__burger_container .t-menuburger span { background-color:#101010 !important; }
@media (min-width:961px) and (min-height:650px) { #allrecords :is(#rec839263174,#rec1268590051) .t951__sidebar-wrapper { position:sticky; top:16px; } }

/* Catalogue product photographs, variant rail and purchase actions. */
#allrecords .t-store__card:where(:has(> a .t-store__card__imgwrapper)) {
  container-type:inline-size; align-content:start; align-items:start;
  grid-template-columns:minmax(0,1fr); grid-auto-rows:max-content;
}
#allrecords .t-store__card:has(.t-product__option-variants_image) { grid-template-columns:minmax(0,1fr) clamp(30px,17%,48px); column-gap:5px; }
#allrecords .t-store__card:has(.t-product__option-variants_image > label:nth-of-type(7)) { grid-template-columns:minmax(0,1fr) clamp(54px,23%,78px); }
#allrecords .t-store__card > a:has(.t-store__card__imgwrapper) { grid-area:1 / 1; display:block; width:100%; min-width:0; align-self:stretch; }
#allrecords .t-store__card > a > .t-store__card__imgwrapper { width:100%; height:100%; min-height:clamp(158px,118cqw,370px); padding:0 !important; box-sizing:border-box; }
#allrecords .t-store__card .t-store__card__bgimg { background-size:contain !important; background-position:center bottom !important; background-repeat:no-repeat; }
#allrecords .t-store__card:where(:has(> a .t-store__card__imgwrapper)) :is(.t-store__card__wrap_txt-and-btns,.store__card__wrap_txt-and-opts) { display:contents; }
#allrecords .t-store__card .store__card__wrap_txt-and-opts > a { display:block; grid-column:1 / -1; min-width:0; }
#allrecords .t-store__card .t-store__card__textwrapper { padding:10px 0 0 !important; }
#allrecords .t-store__card .sansara-stock-label { margin:5px 0 0 !important; }
#allrecords .t-store__card .js-product-controls-wrapper { grid-column:1 / -1; }
#allrecords .t-store__card .js-product-controls-wrapper:empty { display:none; }
#allrecords .js-product-controls-wrapper:has(> [data-edition-option-id="Цвет"] .t-product__option-variants_image) { display:contents; }
#allrecords .t-store__card .t-store__card__btns-wrapper { grid-column:1 / -1; margin:9px 0 0 !important; padding:0 !important; align-self:start; }
#allrecords .js-product [data-edition-option-id="Цвет"]:has(.t-product__option-variants_image) { grid-area:1 / 2; align-self:start; min-width:0; margin:0 !important; padding:0 !important; }
#allrecords .js-product [data-edition-option-id="Цвет"] > .js-product-edition-option-name { display:block; font-size:11px; line-height:1.25; padding:0 0 5px; }
#allrecords .js-product [data-edition-option-id="Цвет"] .t-product__option-variants_image { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; margin:0 !important; padding:0; }
#allrecords .t-store__card .t-product__option-variants_image:has(> label:nth-of-type(7)) { grid-template-columns:repeat(2,minmax(0,1fr)); }
#allrecords .js-product .t-product__option-item_image { box-sizing:border-box; width:100% !important; height:auto !important; aspect-ratio:1; min-width:0; margin:0 !important; }
#allrecords .js-product .t-product__option-checkmark_image { box-sizing:border-box; width:100% !important; height:100% !important; background-size:contain; background-position:center; background-repeat:no-repeat; }
/* Standalone product page and product popup use the native Tilda gallery. */
#allrecords div:has(> .js-store-prod-slider + .t-store__prod-popup__info) { position:relative; }
#allrecords .t-store__prod-popup__info .sansara-stock-label { margin-bottom:4px !important; }
#allrecords .t-store__prod-popup__info .t-store__prod-popup__btn-wrapper { margin-top:9px !important; }
@media (min-width:961px) {
  #allrecords .t-store__prod-popup__info:has(.t-product__option-variants_image) { position:static; box-sizing:border-box; padding-left:68px; }
  #allrecords .t-store__prod-popup__info [data-edition-option-id="Цвет"]:has(.t-product__option-variants_image) { position:absolute; left:50%; top:0; width:48px; }
}
@media (max-width:960px) {
  #allrecords div:has(> .js-store-prod-slider):has(> .t-store__prod-popup__info .t-product__option-variants_image) { display:grid; grid-template-columns:minmax(0,1fr) 48px; gap:0 8px; padding:0 16px; box-sizing:border-box; }
  #allrecords .js-store-prod-slider:has(+ .t-store__prod-popup__info .t-product__option-variants_image) { grid-area:1 / 1; width:100% !important; max-width:100%; min-width:0; margin:0; padding:0; }
  #allrecords .t-store__prod-popup__info:has(.t-product__option-variants_image) { display:contents; }
  #allrecords .t-store__prod-popup__info:has(.t-product__option-variants_image) > * { grid-column:1 / -1; min-width:0; }
  #allrecords .t-store__prod-popup__info:has(.t-product__option-variants_image) .t-store__prod-popup__title-wrapper { margin-top:12px; }
}

#allrecords .t-store__card-list > .t-store__card:has(> a .t-store__card__imgwrapper):not(.sansara-stock-hidden):not([hidden]):not([style*="display: none"]):not([style*="display:none"]) { display:grid !important; }

#allrecords .js-product .t-product__option-title_image { pointer-events:none; }
#allrecords .js-store-prod-slider:has(+ .t-store__prod-popup__info .t-product__option-variants_image):has(.t-slds__arrow) .t-slds__thumbsbullet-wrapper { display:none; }
#allrecords .t-store__prod-popup__info [data-edition-option-id="Цвет"]:has(.t-product__option-variants_image > label:nth-of-type(7)) { width:40px; }
