#kbm-avtocod {
  box-sizing: border-box;
  max-width: 680px;
  margin: 20px auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #dce6de;
  border-radius: 14px;
  background: #f3f7f4;
  color: #213e33;
}
#kbm-avtocod h1 {
  margin: 0 0 8px;
  color: inherit;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
}
#kbm-avtocod p { margin: 0 0 18px; }
#kbm-avtocod form[hidden] { display: none; }
#kbm-avtocod label { display: block; font-weight: 600; margin-bottom: 5px; }
#kbm-avtocod .kbm-avtocod-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
#kbm-avtocod input { flex: 1 1 200px; min-width: 0; width: 100%; }
#kbm-avtocod .kbm-avtocod-button, #kbm-avtocod button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #237149;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
}
#kbm-avtocod .kbm-avtocod-button:hover, #kbm-avtocod button:hover { background: #195b39; }
#kbm-avtocod .kbm-avtocod-button:focus-visible, #kbm-avtocod button:focus-visible { outline: 2px solid #1b5741; outline-offset: 3px; }
#kbm-avtocod.kbm-avtocod-ready .kbm-avtocod-button {
  padding-inline: 0;
  background: transparent;
  color: #237149;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  iframe:is([src^="https://avtocod.ru/aviframe/short_report"], [src^="//avtocod.ru/aviframe/short_report"]) {
    box-sizing: border-box;
    width: min(1040px, calc(100vw - 64px)) !important;
    height: min(720px, 80vh) !important;
    max-width: none !important;
    max-height: none !important;
    flex: none;
  }

  .kbm-avtocod-report-panel {
    width: fit-content !important;
    height: fit-content !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 24px) !important;
  }
}
