.kp-tools-module-root {
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.kp-tools-panel {
  position: fixed;
  top: 196px;
  right: 0;
  z-index: 8990;
  width: 104px;
  overflow: hidden;
  border: 1px solid #dce4eb;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fbfcfd;
  box-shadow: 0 8px 24px rgba(40, 60, 76, 0.16);
  font-family: inherit;
}

.kp-tools-panel__item,
.kp-tools-panel__close {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  border: 0;
  border-top: 1px solid #e2e9ef;
  background: #fbfcfd;
  color: #2a4354;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.22;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.kp-tools-panel__item {
  flex-direction: column;
}

.kp-tools-panel > noindex {
  display: block;
}

.kp-tools-panel > noindex:first-child .kp-tools-panel__item {
  border-top: 0;
}

.kp-tools-panel__item:hover,
.kp-tools-panel__item:focus,
.kp-tools-panel__close:hover,
.kp-tools-panel__close:focus {
  background: #eef8fd;
  color: #0879bb;
  text-decoration: none;
  outline: 0;
}

.kp-tools-panel__item--articles {
  color: #4b6380;
}

.kp-tools-panel__item--request {
  background: #f3f4fa;
  color: #5d5b87;
}

.kp-tools-panel__item--request:hover,
.kp-tools-panel__item--request:focus {
  background: #e9e9f5;
  color: #4f4d78;
}

.kp-tools-panel__item:focus-visible,
.kp-tools-panel__close:focus-visible,
.kp-tools-bot__button:focus-visible,
.kp-tools-bot__close:focus-visible {
  outline: 2px solid #0879bb;
  outline-offset: -2px;
}

.kp-tools-panel__icon {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 15px;
}

.kp-tools-panel__label {
  display: block;
}

.kp-tools-panel__close {
  min-height: 40px;
  padding: 0;
  background: #f1f4f6;
  color: #53616c;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.kp-tools-panel.is-hidden {
  display: none;
}

.kp-tools-bot {
  position: fixed;
  z-index: 9010;
  inset: 0;
  display: none;
  font-family: inherit;
}

.kp-tools-bot.is-open {
  display: block;
}

.kp-tools-bot__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 42, 0.46);
}

.kp-tools-bot__dialog {
  position: absolute;
  top: 50%;
  right: 24px;
  width: min(390px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  transform: translateY(-50%);
  border: 1px solid #dce4eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(32, 49, 63, 0.3);
  color: #24313c;
}

.kp-tools-bot__head {
  padding: 23px 58px 16px 22px;
  border-top: 4px solid #098cd8;
}

.kp-tools-bot__title {
  margin: 0 0 8px;
  color: #1f2a33;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.kp-tools-bot__lead {
  margin: 0;
  color: #5b6873;
  font-size: 14px;
  line-height: 1.45;
}

.kp-tools-bot__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: #f0f3f5;
  color: #34424d;
  font-family: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.kp-tools-bot__body {
  padding: 8px 22px 22px;
}

.kp-tools-bot__question {
  margin: 0 0 14px;
  color: #1f2a33;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.kp-tools-bot__hint {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #74b9e6;
  background: #f2f8fc;
  color: #52626d;
  font-size: 13px;
  line-height: 1.42;
}

.kp-tools-bot__options {
  display: grid;
  gap: 9px;
}

.kp-tools-bot__button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 13px;
  border: 1px solid #ccd9e2;
  border-radius: 4px;
  background: #ffffff;
  color: #24313c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.kp-tools-bot__button:hover,
.kp-tools-bot__button:focus {
  border-color: #0879bb;
  background: #eef8fd;
  color: #0879bb;
  outline: 0;
}

.kp-tools-bot__result {
  padding: 14px;
  border: 1px solid #d8dde3;
  border-radius: 5px;
  background: #f7fafc;
}

.kp-tools-bot__result-actions {
  display: grid;
  gap: 8px;
}

.kp-tools-bot__result p {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #42515d;
  font-size: 14px !important;
  line-height: 1.45;
}

.kp-tools-bot__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 5px;
  background: #098cd8;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.kp-tools-bot__request {
  min-height: 42px;
  border: 1px solid #5d5b87;
  border-radius: 5px;
  background: #ffffff;
  color: #5d5b87;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.kp-tools-bot__request:hover,
.kp-tools-bot__request:focus {
  border-color: #4f4d78;
  background: #f3f4fa;
  color: #4f4d78;
  outline: 0;
}

.kp-tools-bot__link:hover,
.kp-tools-bot__link:focus {
  background: #0878ba;
  color: #ffffff !important;
  text-decoration: none;
}

@media (max-width: 991px) {
  .kp-tools-panel {
    top: auto;
    right: 8px;
    bottom: calc(132px + env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 42px;
    border: 1px solid #d8dde3;
    border-radius: 7px;
  }

  .kp-tools-panel__item,
  .kp-tools-panel__close {
    min-height: 60px;
    padding: 5px 3px;
    border-top: 0;
    border-left: 1px solid #e7ebef;
    font-size: 9px;
  }

  .kp-tools-panel > noindex:first-child .kp-tools-panel__item {
    border-left: 0;
  }

  .kp-tools-panel__icon {
    width: 23px;
    height: 23px;
    margin-bottom: 3px;
    font-size: 12px;
  }

  .kp-tools-panel__close {
    font-size: 24px;
  }

  .kp-tools-bot__dialog {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
    transform: none;
  }
}

@media (max-width: 380px) {
  .kp-tools-panel__item,
  .kp-tools-panel__close {
    font-size: 9px;
  }
}
