/* BESTKANC MOBILE LAYOUT V1 - 2026-10-27
 * Fix six real header controls placed in a five-column grid.
 * Preserve city picker, catalog/menu, search, account, telephone and cart.
 * Reduce visual obstructions without changing desktop behavior.
 */
@media (max-width: 767px) {
  html body .bestkanc-topbar {
    display: none !important;
  }

  html body .switch-version {
    display: block;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 32px 0 12px !important;
    line-height: 26px !important;
    font-size: 11px !important;
  }
  html body .switch-version__icon { font-size: 12px !important; }
  html body .switch-version__remove {
    height: 26px !important;
    line-height: 26px !important;
    width: 32px !important;
    font-size: 16px !important;
  }

  html body .info-massage {
    padding: 8px 0 !important;
    font-size: 12px !important;
  }
  html body .info-massage__wrap {
    padding-left: 12px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
  }
  html body .info-massage__content {
    padding-right: 0 !important;
    line-height: 1.4 !important;
  }
  html body .info-massage__text {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  html body .info-massage__close {
    right: 7px !important;
    width: 25px !important;
  }

  html body .header-top {
    min-height: 56px !important;
    height: 56px !important;
  }
  html body .header-top .js-header-top-inner {
    display: block !important;
    height: 56px !important;
    min-height: 56px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
  }
  html body .header-top .header-top__right {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 56px !important;
    grid-auto-rows: 0 !important;
    gap: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    align-items: center !important;
    justify-items: center !important;
  }
  html body .header-top .header-top__right > .header-menu__bar {
    grid-area: 1 / 1 !important;
  }
  html body .header-top .header-top__right > .header-open-search {
    grid-area: 1 / 2 !important;
  }
  html body .header-top .header-top__right > .bk-region {
    grid-area: 1 / 3 !important;
    position: relative !important;
    justify-self: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html body .header-top .header-top__right > .header-open-auth {
    grid-area: 1 / 4 !important;
  }
  html body .header-top .header-top__right > .header-open-contacts {
    grid-area: 1 / 5 !important;
  }
  html body .header-top .header-top__right > .m-header-cart {
    grid-area: 1 / 6 !important;
  }
  html body .header-top .header-top__right > .header-menu__bar,
  html body .header-top .header-top__right > .header-open-search,
  html body .header-top .header-top__right > .header-open-auth,
  html body .header-top .header-top__right > .header-open-contacts,
  html body .header-top .header-top__right > .m-header-cart {
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html body .header-top .bk-region__button {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body .header-outer .m-open-categories,
  html body .m-open-categories {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 45px !important;
    min-height: 45px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #e5edf2;
    box-sizing: border-box !important;
    font-size: 14px !important;
    line-height: 24px !important;
    letter-spacing: .25px !important;
    background: #fff;
  }
  html body .m-open-categories__icon { font-size: 17px !important; }
  html body .m-open-categories__caret {
    float: none !important;
    margin: 0 0 0 auto !important;
    font-size: 16px !important;
  }

  html body .bk-scroll-top--left {
    display: none !important;
  }
  html body .bk-scroll-top--right {
    width: 34px !important;
    height: 34px !important;
    bottom: 84px !important;
    right: 8px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(26,68,110,.12) !important;
  }
  html body .bk-scroll-top--right svg {
    width: 18px !important;
    height: 18px !important;
  }
}
