@media (max-width: 1200px) {
  .ai-overlay-closeBtn {
    width: 100%;
    border-radius: 100px;
    right: 0;
    top: unset;
    bottom: -56px;
  }
}

@media (max-width: 768px) {
  .agroknow__aiThink {
    margin-top: auto;
  }

  .agroknow__ai-overlay .agroknow__form {
    flex-wrap: wrap;
  }

  .agroknow__ai-overlay .agroknow__form::before {
    display: none !important;
  }

  .agroknow__aiInputArea {
    width: 100%;
    flex: unset;
    order: 0;
  }

  .agroknow__ai-overlay-content {
    width: 100%;
  }

  /* .agroknow__ai-overlay .switch {
    order: 5;
  } */

  .agroknow__ai-overlay .fake_button1 {
    order: 4;
  }

  .agroknow__aiContent_full {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
    max-height: 70dvh;
    overflow-y: scroll;
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: "left" "right" "warning";
  }

  .agroknow__aiContent_left {
    width: 100%;
    padding: 0;
    overflow: unset;
    border: none;
  }

  .agroknow__aiContent_left::after {
    display: none;
  }

  .agroknow__aiContent_leftInner {
    height: auto !important;
    max-height: unset !important;
    overflow-y: unset;
    padding: 0;
  }

  .resize-handle {
    display: none !important;
  }

  .agroknow__aiContent_right {
    width: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
  }

  .aiFile {
    background-color: #f5f5f5;
  }

  /* .agroknow__aiContent::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    content: "";
    height: 100px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 100%);
  } */

  .ai_d_ico {
    opacity: 0.9;
    border: 1px solid #fff;
  }

  .aiFile:after {
    /* display: none; */
  }

  .ai_d_ico {
    background-color: #fff;
  }
}

@media (max-width: 600px) {
  .switch {
    width: 75px;
    height: 48px;
  }

  .slider .handle {
    height: 42px;
    width: 48px;
    left: 3px;
    bottom: 3px;
  }

  .handle__text {
    display: none;
  }
  .handle__textMb {
    display: block;
  }
}
@media (max-width: 480px) {
  .agroknow__ai-overlay .agroknow__form {
    /* padding: 0; */
  }

  /* .agroknow__ai-overlay .switch {
    width: calc((100% - 12px) / 2);
    height: 40px;
    display: flex;
    align-items: center;
  }

  .agroknow__ai-overlay .switch .slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 3px;
  }

  .agroknow__ai-overlay .switch .slider .handle {
    position: relative;
    width: calc(100% - 20px);
    max-width: 99px;
    min-width: 70px;
    height: 34px;
    left: 0;
    bottom: 0;
    transform: none !important;
    /* Отключаем transform */
    transition: margin-left 0.3s ease;
    margin-left: 0;
    flex-shrink: 0;
  }

  .agroknow__ai-overlay .switch input:checked + .slider .handle {
    margin-left: auto;
    /* Прижимаем вправо */
    background-color: #ffffff;
  } */

  .agroknow__ai-overlay .fake_button1 {
    width: calc((100% - 12px) / 2);
    justify-content: space-between;
  }

  .agroknow__ai-overlay-content {
    border-radius: 32px;
  }

  .agroknow__aiContent_emptyTitle {
    font-size: 18px;
  }

  .agroknow__aiContent_emptyDesc {
    font-size: 18px;
  }

  .ai-stars {
    max-width: 66px;
    margin: 0 auto 20px;
  }
}
