.registration-agreement-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 11, 32, .52);
}

.registration-agreement-modal__panel {
  width: min(100%, 520px);
  max-height: 78vh;
  overflow: auto;
  padding: 18px 15px calc(15px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #fff;
  color: #071622;
  box-shadow: 0 -12px 40px rgba(2, 11, 32, .2);
}

.registration-agreement-modal__head,
.registration-agreement-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.registration-agreement-modal__head {
  justify-content: space-between;
}

.registration-agreement-modal__head b {
  font-size: 16px;
}

.registration-agreement-modal__close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #718694;
  font-size: 23px;
  line-height: 1;
}

.registration-agreement-modal__body {
  margin-top: 13px;
  color: #405768;
  font-size: 12px;
  line-height: 1.75;
}

.registration-agreement-modal__body p {
  margin: 0 0 8px;
}

.registration-agreement-modal__actions {
  margin-top: 14px;
}

.registration-agreement-modal__actions button {
  flex: 1;
  min-height: 42px;
  border-radius: 6px;
  font-size: 13px;
}

.registration-agreement-modal__back {
  border: 1px solid #d6edf3;
  background: #fff;
  color: #405768;
}

.registration-agreement-modal__confirm {
  border: 0;
  background: #061c3f;
  color: #fff;
}

.registration--with-bottom-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
}

.registration-bottom-nav {
  position: fixed;
  z-index: 998;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 50px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #e6e1d8;
  background: rgba(255, 255, 255, .98);
}

.registration-package-context__action,
.registration-body .next {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.registration-bottom-nav button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #6e7582;
  font-size: 11px;
}

.registration-bottom-nav button.is-active {
  color: #061c3f;
  font-weight: 650;
}
