@media (max-width: 768px) {
  .modal:has(#delayed-contact-name),
  .modal:has(#modal-contact-name) {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .modal:has(#delayed-contact-name) .modal__content,
  .modal:has(#modal-contact-name) .modal__content {
    width: min(360px, calc(100% - 12px));
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .modal:has(#delayed-contact-name) .modal__body,
  .modal:has(#modal-contact-name) .modal__body {
    max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .modal:has(#delayed-contact-name) .modal__close,
  .modal:has(#modal-contact-name) .modal__close {
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .modal:has(#delayed-contact-name) .modal-form-content,
  .modal:has(#modal-contact-name) .modal-form-content {
    padding: 30px 12px 12px;
  }

  .modal:has(#delayed-contact-name) .modal-form-container,
  .modal:has(#modal-contact-name) .modal-form-container {
    min-height: 0;
  }

  .modal:has(#delayed-contact-name) .modal-form-title,
  .modal:has(#modal-contact-name) .modal-form-title {
    padding: 0 24px 0 2px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.15;
  }

  .modal:has(#delayed-contact-name) .form-field,
  .modal:has(#modal-contact-name) .form-field {
    margin-bottom: 8px;
  }

  .modal:has(#delayed-contact-name) .form-field__input,
  .modal:has(#modal-contact-name) .form-field__input {
    height: 48px;
    padding: 15px 36px 4px 12px;
    font-size: 14px;
  }

  .modal:has(#delayed-contact-name) .form-field__text,
  .modal:has(#modal-contact-name) .form-field__text {
    height: 56px;
    padding: 20px 36px 4px 12px;
    font-size: 14px;
  }

  .modal:has(#delayed-contact-name) .form-field__label,
  .modal:has(#modal-contact-name) .form-field__label {
    left: 12px;
    top: 16px;
    font-size: 14px;
  }

  .modal:has(#delayed-contact-name) .form-field__icon,
  .modal:has(#modal-contact-name) .form-field__icon {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
  }

  .modal:has(#delayed-contact-name) .form-field__icon-ic,
  .modal:has(#modal-contact-name) .form-field__icon-ic {
    width: 16px;
    height: 16px;
  }

  .modal:has(#delayed-contact-name) .checkbox,
  .modal:has(#modal-contact-name) .checkbox {
    padding: 4px 0;
    margin-bottom: 10px;
  }

  .modal:has(#delayed-contact-name) .checkbox__label,
  .modal:has(#modal-contact-name) .checkbox__label {
    gap: 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .modal:has(#delayed-contact-name) .checkbox__text,
  .modal:has(#modal-contact-name) .checkbox__text {
    line-height: 1.25;
  }

  .modal:has(#delayed-contact-name) .checkbox__box,
  .modal:has(#modal-contact-name) .checkbox__box {
    width: 20px;
    height: 20px;
  }

  .modal:has(#delayed-contact-name) .btn-primary,
  .modal:has(#modal-contact-name) .btn-primary {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  @supports (height: 100dvh) {
    .modal:has(#delayed-contact-name) .modal__content,
    .modal:has(#modal-contact-name) .modal__content,
    .modal:has(#delayed-contact-name) .modal__body,
    .modal:has(#modal-contact-name) .modal__body {
      max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
  }
}
