.ng-v4-modal-provider-brand {
  display: grid;
  place-items: center;
  width: 142px;
  height: 82px;
  margin-right: 42px;
  padding: 12px 16px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 27, 53, 0.08);
}

.ng-v4-modal-provider-brand[hidden] {
  display: none;
}

.ng-v4-modal-provider-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ng-v4-modal-provider-brand--callback {
  width: 104px;
  height: 56px;
  margin: 0 48px 14px 0;
  padding: 8px 12px;
}

.ng-v4-modal--connect .ng-v4-modal-note {
  justify-content: flex-end;
  margin-top: -5px;
}

.ng-v4-modal__header,
.ng-v4-modal__body {
  display: contents;
}

.ng-v4-modal--callback .ng-v4-modal__header > p {
  margin-bottom: 16px;
}

.ng-v4-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ng-v4-modal-result.is-success {
  border: 1px solid #b8dfc5;
  background: #edf8f1;
  color: #145c2e;
  white-space: pre-line;
}

@media (max-width: 720px) {
  .ng-v4-modal-root {
    top: var(--ng-v4-modal-viewport-offset-top, 0);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--ng-v4-modal-viewport-height, 100dvh);
    min-height: 0;
    padding: 0;
    align-items: end;
    justify-items: stretch;
    overflow: hidden;
  }

  .ng-v4-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: calc(var(--ng-v4-modal-viewport-height, 100dvh) - max(8px, env(safe-area-inset-top)));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    outline: 0;
    box-shadow: 0 -18px 54px rgba(17, 27, 53, 0.22);
  }

  .ng-v4-modal--callback,
  .ng-v4-modal--connect,
  .ng-v4-modal--review-comment {
    width: 100%;
  }

  .ng-v4-modal__header,
  .ng-v4-modal__body {
    display: block;
    min-width: 0;
  }

  .ng-v4-modal__header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 16px 60px 12px 16px;
    border-bottom: 1px solid #e5edf8;
    background: #fff;
  }

  .ng-v4-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding: 16px 0 calc(88px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .ng-v4-modal__close {
    z-index: 4;
    top: 10px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .ng-v4-modal__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
  }

  .ng-v4-modal h2,
  .ng-v4-modal--callback h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.12;
  }

  .ng-v4-modal__header p {
    margin-top: 7px;
    font-size: 16px !important;
    line-height: 1.4;
  }

  .ng-v4-modal-form,
  .ng-v4-modal-form__grid {
    gap: 12px;
  }

  .ng-v4-modal-form label,
  .ng-v4-modal-comment label {
    gap: 7px;
    font-size: 15px;
  }

  .ng-v4-modal-form input,
  .ng-v4-modal-form textarea,
  .ng-v4-modal-form__grid--address label:nth-child(n + 2) input {
    min-height: 52px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 16px;
    line-height: 1.3;
  }

  .ng-v4-modal-form textarea {
    min-height: 92px;
    padding-top: 13px;
  }

  .ng-v4-modal-actions button {
    min-height: 52px;
    font-size: 16px;
  }

  .ng-v4-modal-policy {
    font-size: 14px !important;
  }

  .ng-v4-modal-comment summary {
    min-height: 44px;
    align-items: center;
    font-size: 14px;
  }

  .ng-v4-modal-trust {
    display: none;
  }

  .ng-v4-modal-provider-brand {
    order: initial;
    justify-self: start;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    margin: 0 0 10px;
    padding: 8px;
    overflow: hidden;
    border-radius: 12px;
  }

  .ng-v4-modal-provider-brand--callback {
    width: 56px;
    height: 56px;
    margin: 0 0 10px;
  }

  .ng-v4-modal--connect .ng-v4-modal-note {
    justify-content: center;
    margin-top: 0;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .ng-v4-modal__header {
    padding: 14px 58px 11px 14px;
  }

  .ng-v4-modal__body {
    padding-right: 14px;
    padding-left: 14px;
  }

  .ng-v4-modal h2,
  .ng-v4-modal--callback h2 {
    font-size: 24px;
  }

  .ng-v4-modal__header p {
    font-size: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ng-v4-modal,
  .ng-v4-modal-root__overlay {
    scroll-behavior: auto;
  }
}
