.kh-sm { z-index: 2147483647; }
body.kh-sm-lock #__keyhub_widget { visibility: hidden !important; }

.kh-sm__dialog {
  width: min(1050px, calc(100vw - 40px));
  height: min(680px, calc(100dvh - 44px));
  margin: 22px auto;
  padding: 0 !important;
  border-radius: 16px;
}
.kh-sm__top {
  height: 56px;
  margin: 24px 74px 0 24px;
  padding: 0 16px;
  border-color: #a9c7f6;
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(24, 77, 150, .04);
}
.kh-sm__top:focus-within { border-color: #4b8df8; }
.kh-sm__magnify { width: 21px; height: 21px; transform: none; display: grid; place-items: center; }
.kh-sm__magnify svg { display: block; width: 21px; height: 21px; }
.kh-sm__clear, .kh-sm__close { color: #6381aa; font-size: 22px; transition: color .15s; }
.kh-sm__clear:hover, .kh-sm__close:hover { color: #155ec2; }
.kh-sm__top:has(.kh-sm__input:placeholder-shown) .kh-sm__clear { display: none; }
.kh-sm__close { top: 34px; right: 24px; margin-right: 0; }

.kh-sm__body { grid-template-columns: 226px minmax(0,1fr); margin-top: 18px; }
.kh-sm__sidebar { background: #f4f8fe; border-right: 1px solid #e4edf9; padding: 20px 15px; }
.kh-sm__found { padding: 0 10px; font-size: 17px; font-weight: 650; }
.kh-sm__nav { gap: 11px; padding: 12px 11px; color: #28446e; }
.kh-sm__nav:hover, .kh-sm__nav.is-active { background: #e3efff; }
.kh-sm__nav span { display: grid; place-items: center; width: 21px; height: 21px; color: #3975c4; }
.kh-sm__nav svg { width: 20px; height: 20px; }
.kh-sm__nav b { font-size: 13px; font-variant-numeric: tabular-nums; }
.kh-sm__results { padding: 2px 23px 20px; }
.kh-sm__section { padding: 0 0 15px !important; margin-bottom: 14px; }
.kh-sm__heading { margin-bottom: 10px; font-size: 18px; }
.kh-sm__grid { gap: 10px; }
.kh-sm__product { position: relative; min-height: 124px; padding: 8px 10px; gap: 8px; }
.kh-sm__product img { width: 82px; height: 98px; }
.kh-sm__product .kh-sm__product-content { gap: 5px; padding-right: 29px; }
.kh-sm__product .kh-sm__title { font-size: 13px; line-height: 1.25; }
.kh-sm__sale { position: absolute; top: 8px; right: 9px; padding: 3px 6px; border-radius: 20px; background: #ff4d5e; color: #fff; font-size: 10px; line-height: 1; font-weight: 700; }
.kh-sm__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: #7b8da9; font-size: 11px; line-height: 1.2; }
.kh-sm__rating strong { color: #253d63; font-size: 11px; }
.kh-sm__rating-star { color: #ffa21d; font-size: 15px; line-height: 1; }
.kh-sm__product .kh-sm__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; color: #174fb5; font-size: 15px; line-height: 1.2; }
.kh-sm__price strong { font-weight: 700; white-space: nowrap; }
.kh-sm__price del { color: #9ba9bc; font-size: 11px; font-weight: 400; white-space: nowrap; }
.kh-sm__product .kh-sm__arrow { font-size: 19px; }
.kh-sm__arrow, .kh-sm__download .kh-sm__arrow { color: #8999b0; }
.kh-sm__result:hover .kh-sm__arrow { color: #647996; }
.kh-sm__footer { height: 44px; gap: 22px; font-size: 12px; color: #7186a5; }
.kh-sm__footer span { display: inline-flex; gap: 4px; align-items: center; }
.kh-sm__footer kbd { font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; color: #617ba2; border: 1px solid #dce8f7; background: #fff; border-radius: 5px; padding: 4px 6px; }

.kh-sm--idle .kh-sm__dialog { height: 294px; }
.kh-sm--idle .kh-sm__body { display: block; margin-top: 0; }
.kh-sm--idle .kh-sm__sidebar, .kh-sm--idle .kh-sm__footer { display: none; }
.kh-sm--idle .kh-sm__results { overflow: visible; padding: 34px 28px; }
.kh-sm__intro h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.2; font-weight: 650; color: #142d53; }
.kh-sm__intro p { margin: 0; color: #6c80a0; font-size: 14px; line-height: 1.5; }
.kh-sm__suggestions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.kh-sm__suggestion { border: 1px solid #dbe8f8; background: #f5f9ff; color: #2861a7; padding: 8px 13px; border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.kh-sm__suggestion:hover { background: #e7f1ff; border-color: #bad5fb; }

@media (min-width: 701px) and (max-width: 1023px) {
  .kh-sm__body { grid-template-columns: 190px minmax(0, 1fr); }
  .kh-sm__sidebar { padding-right: 10px; padding-left: 10px; }
  .kh-sm__results { padding: 2px 16px 20px; }
  .kh-sm__grid { grid-template-columns: minmax(0, 1fr); }
  .kh-sm__product .kh-sm__title,
  .kh-sm__article .kh-sm__title,
  .kh-sm__download .kh-sm__title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 700px) {
  .kh-sm__dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .kh-sm__top { margin: 14px 52px 0 12px; height: 50px; padding: 0 11px; }
  .kh-sm__close { top: 24px; right: 11px; }
  .kh-sm__body { display: block; margin-top: 10px; }
  .kh-sm__sidebar { border-right: 0; border-bottom: 1px solid #e4edf9; padding: 8px 11px; }
  .kh-sm__nav { padding: 8px 10px; }
  .kh-sm__results { padding: 12px 13px; }
  .kh-sm__product { min-height: 118px; }
  .kh-sm__product img { width: 75px; height: 91px; }
  .kh-sm__footer { height: 42px; gap: 10px; font-size: 10px; }
  .kh-sm__footer kbd { font-size: 10px; padding: 3px 4px; }
  .kh-sm--idle .kh-sm__dialog { height: auto; min-height: 260px; border-radius: 0 0 16px 16px; }
  .kh-sm--idle .kh-sm__body { margin-top: 0; }
  .kh-sm--idle .kh-sm__results { padding: 30px 18px 34px; }
  .kh-sm__intro h2 { font-size: 19px; }
  .kh-sm__intro p { font-size: 13px; }
}
