.kh-mobile-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(20, 24, 27, 0.1);
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 24, 27, 0.03);
}

.kh-mobile-header__logo-row {
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.kh-mobile-header__h1 {
  line-height: 0;
}

.kh-mobile-header__logo-row .navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.kh-mobile-header__logo-row img {
  display: block;
  max-height: 40px;
  width: auto;
}

.header-bottom .kh-mobile-header__logo-row .navbar-brand .logo {
  width: auto;
  max-height: 40px;
}

.kh-mobile-header__actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 52px));
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0 8px;
}

.kh-icon-button {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #181a1d;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.kh-icon-button:hover,
.kh-icon-button:active {
  background: rgba(190, 143, 19, 0.1);
  color: #111;
}

.kh-icon-button:active {
  transform: translateY(1px);
}

.kh-icon-button:focus-visible {
  outline: 2px solid #b98b11;
  outline-offset: 2px;
}

.kh-icon {
  width: 23px;
  height: 23px;
  pointer-events: none;
}

.kh-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

.kh-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(17, 20, 24, 0.5);
  backdrop-filter: blur(1px);
}

.kh-offcanvas {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1060;
  display: flex;
  width: min(90vw, 360px);
  max-width: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.22);
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

.kh-offcanvas.is-open {
  transform: translateX(0);
}

.kh-offcanvas[hidden],
.kh-overlay[hidden],
.kh-search-panel[hidden],
.kh-submenu[hidden] {
  display: none;
}

.kh-offcanvas__header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px 8px 18px;
  border-bottom: 1px solid rgba(20, 24, 27, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

.kh-offcanvas__title,
.kh-search-panel__title {
  color: #17191c;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.kh-offcanvas__body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding: 6px 0;
  background: #fff;
}

.kh-menu__list,
.kh-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kh-submenu {
  margin: 0 12px 10px;
  padding: 4px 0 6px;
  border: 1px solid rgba(190, 143, 19, 0.16);
  border-radius: 8px;
  background: #fbfaf6;
}

.kh-menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(20, 24, 27, 0.07);
}

.kh-menu__row--link-only {
  grid-template-columns: minmax(0, 1fr);
}

.kh-menu__link {
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 0 18px;
  color: #17191c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.kh-menu__link:hover,
.kh-menu__link:focus {
  color: #151515;
  text-decoration: none;
}

.kh-submenu .kh-menu__link {
  min-height: 44px;
  padding-left: 16px;
  color: #34383d;
  font-size: 14px;
  font-weight: 600;
}

.kh-menu__item.current > .kh-menu__row .kh-menu__link {
  color: #9b720b;
}

.kh-menu__item--has-children:has(.kh-menu__submenu-toggle[aria-expanded="true"]) > .kh-menu__row {
  background: #fbfaf6;
}

.kh-menu__submenu-toggle[aria-expanded="true"] {
  color: #9b720b;
  background: rgba(190, 143, 19, 0.1);
}

.kh-menu__submenu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #17191c;
  border-radius: 999px;
}

.kh-menu__submenu-toggle[aria-expanded="true"] .kh-icon {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .kh-offcanvas .kh-menu__item--has-children > .kh-menu__row {
    grid-template-columns: minmax(0, 67%) minmax(64px, 33%);
  }

  .kh-offcanvas .kh-menu__item--has-children > .kh-menu__row > .kh-menu__submenu-toggle {
    width: 100%;
    height: 100%;
    min-height: 56px;
    justify-content: flex-end;
    padding-right: 18px;
    border-radius: 0;
    background: transparent;
  }

  .kh-offcanvas .kh-menu__item--has-children > .kh-menu__row > .kh-menu__submenu-toggle[aria-expanded="true"] {
    background: transparent;
  }
}

.kh-offcanvas__footer {
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(20, 24, 27, 0.08);
  background: #fbfaf7;
  color: #2b2f34;
  font-size: 14px;
}

.kh-offcanvas__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.kh-offcanvas__footer a {
  color: #17191c;
  font-weight: 700;
  text-decoration: none;
}

.kh-search-panel {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1060;
  padding: 10px 16px 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.kh-search-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.kh-search-panel__slot {
  width: 100%;
}

.kh-search-panel__slot #search_widget,
.kh-search-panel__slot form {
  width: 100%;
}

.kh-search-panel__slot form {
  display: flex;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid rgba(20, 24, 27, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 27, 0.08);
}

.kh-search-panel__slot input[type="text"],
.kh-search-panel__slot input[type="search"] {
  min-width: 0;
  width: 100%;
  height: 48px;
  flex: 1 1 auto;
  border: 0;
  padding: 0 14px;
  color: #17191c;
  font-size: 15px;
  outline: 0;
}

.kh-search-panel__slot button,
.kh-search-panel__slot .btn {
  display: inline-flex;
  min-width: 58px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #b98b11;
  color: #fff;
}

html.kh-no-scroll,
body.kh-no-scroll {
  overflow: hidden;
}

@media (min-width: 992px) {
  .kh-mobile-header,
  .kh-offcanvas,
  .kh-overlay,
  .kh-search-panel {
    display: none !important;
  }
}
