* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-family: sans-serif;
}

html, body {
  background-color: #eee;
  min-height: 100dvh;
}

body {
  color: #111827;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100% !important;
}

body .ant-select:hover .ant-select-selector, body .ant-input:hover {
  border-color: #cbcbcb !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.app-router-not-found {
  margin-top: 32px;
}

.layout {
  --container-width: min(calc(100% - 32px), 1200px);
  background-color: #eee;
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
}

.layout__main {
  display: contents;
}

.layout__error {
  width: var(--container-width);
  margin-inline-start: auto;
  margin-inline-end: auto;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .layout {
    --container-width: min(calc(100% - 48px), 1200px);
  }
}

.button {
  --hover-bg: #0000000a;
  box-sizing: border-box;
  color: currentColor;
  cursor: pointer;
  background-color: inherit;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 100%;
  transition: all .2s;
  display: inline-flex;
}

.button:hover {
  background-color: var(--hover-bg);
}

.button--small {
  min-height: 32px;
  padding: 8px 16px;
  font-size: 12px;
}

.button--big {
  min-height: 56px;
  padding: 8px 24px;
  font-size: 16px;
}

.button--full-width {
  width: 100%;
}

.button--reversed {
  flex-direction: row-reverse;
}

.button--square {
  aspect-ratio: 1;
  padding: 8px;
}

.button--outlined {
  border: 1px solid #e9eaec;
  padding-block-start: 13px;
  padding-block-end: 13px;
}

.button--outlined.button--small, .button--outlined.button--big {
  padding-block-start: 7px;
  padding-block-end: 7px;
}

.button--filled-red {
  --hover-bg: #111827;
  color: #fff;
  background-color: #ff2e1f;
  border: none;
}

.button--filled-green {
  --hover-bg: #0a9753;
  color: #fff;
  background-color: #0caf60;
  border: none;
}

.button--filled-black {
  --hover-bg: #18181b;
  color: #fff;
  background-color: #18181b;
  border: 1px solid #18181b;
}

.button:disabled {
  color: #a0aec0;
  pointer-events: none;
  background-color: #f1f2f4;
  border-color: #f1f2f4 !important;
}

.button .ant-spin {
  color: currentColor !important;
}

.button--filled-blue {
  --hover-bg: #111827;
  color: #fff;
  background-color: #1f9aff;
  border: none;
}

.circled-image {
  --padding: 4px;
  width: var(--size);
  height: var(--size);
  border: 1px solid #e9eaec;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 3px;
  display: flex;
}

.circled-image__text {
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: calc(var(--size)  - var(--padding) * 2);
  color: #687588;
  text-align: center;
  background-color: #f1f2f4;
  border-radius: 50%;
  display: block;
}

.circled-image--error {
  border: none;
  padding: 0;
}

.circled-image--error .circled-image__text {
  padding: var(--padding);
}

.circled-image > img {
  border-radius: 50%;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
  display: block;
}

.file-upload {
  text-align: left;
}

.file-upload__field {
  display: none;
}

.file-upload__view {
  cursor: pointer;
  border: 1px dashed #cbd5e0;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 5.5px 8px 5.5px 16px;
  transition: all .2s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.file-upload__view:hover {
  background-color: #00000004;
}

.file-upload__view--error {
  border-color: #e03137;
}

.file-upload__view > svg {
  width: 20px;
  min-width: 20px;
}

.file-upload__view > svg path {
  fill: currentColor;
}

.file-upload__file-info {
  flex: 1;
}

.file-upload__title {
  text-overflow: ellipsis;
  color: #687588;
  white-space: nowrap;
  max-width: 100%;
  font-size: 12px;
  line-height: 19.2px;
  overflow: hidden;
}

.file-upload__require {
  color: #e03137;
  margin-left: 2px;
}

.file-upload__value {
  word-break: break-word;
  font-size: 14px;
  line-height: 21px;
}

.file-upload__value--no-file {
  color: #a0aec0;
}

.file-upload__chosen-size {
  color: #a0aec0;
  margin-left: 8px;
  font-size: 12px;
  line-height: 19.2px;
}

.file-upload__delete {
  background-color: #0000;
  border: none;
  border-radius: 6px;
  margin-left: auto;
  padding: 8px;
  line-height: 0;
  transition: all .2s;
  display: block;
}

.file-upload__delete:hover {
  background-color: #0000000d;
}

.file-upload__delete > svg path {
  fill: #e03137;
}

.file-upload__additional-text {
  color: #a0aec0;
  margin-top: 8px;
  font-size: 12px;
  line-height: 19.2px;
}

.file-upload__additional-text--error {
  color: #e03137;
}

.file-upload__progress {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
}

.file-upload__progress .ant-progress-inner, .file-upload__progress .ant-progress-bg {
  border-radius: 0;
}

.file-upload__progress .ant-progress-text {
  display: none;
}

.id-card-upload__view {
  cursor: pointer;
  border: 1px dashed #cbd5e0;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 5.5px 8px 5.5px 16px;
  transition: all .2s;
  display: flex;
  position: relative;
}

.id-card-upload__view:hover {
  background-color: #00000004;
}

.id-card-upload__view--error {
  border-color: #e03137;
}

.id-card-upload__view > svg {
  width: 20px;
  min-width: 20px;
}

.id-card-upload__view > svg path {
  fill: currentColor;
}

.id-card-upload__file-info {
  flex: 1;
}

.id-card-upload__title {
  text-overflow: ellipsis;
  color: #687588;
  white-space: nowrap;
  max-width: 100%;
  font-size: 12px;
  line-height: 19.2px;
  overflow: hidden;
}

.id-card-upload__require {
  color: #e03137;
  margin-left: 2px;
}

.id-card-upload__value {
  word-break: break-word;
  font-size: 14px;
  line-height: 21px;
}

.id-card-upload__value--no-file {
  color: #a0aec0;
}

.id-card-upload__chosen-size {
  color: #a0aec0;
  margin-left: 8px;
  font-size: 12px;
  line-height: 19.2px;
}

.id-card-upload__delete {
  background-color: #0000;
  border: none;
  border-radius: 6px;
  margin-left: auto;
  padding: 8px;
  line-height: 0;
  transition: all .2s;
  display: block;
}

.id-card-upload__delete:hover {
  background-color: #0000000d;
}

.id-card-upload__delete > svg path {
  fill: #e03137;
}

.id-card-upload__upload {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.id-card-upload__skeleton, .id-card-upload__skeleton .ant-skeleton-image {
  width: 100% !important;
  height: 100% !important;
}

.id-card-upload__additional-text {
  color: #a0aec0;
  margin-top: 8px;
  font-size: 12px;
  line-height: 19.2px;
}

.id-card-upload__additional-text--error {
  color: #e03137;
}

.id-card-upload-modal .ant-modal-title {
  color: #111827;
  text-align: center;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 31.2px;
}

.id-card-upload-modal .ant-modal-body {
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  display: flex;
}

.id-card-upload-modal__segmented {
  width: 100%;
}

.id-card-upload-modal__webcam-container {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  display: flex;
}

.id-card-upload-modal__webcam-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.id-card-upload-modal__take-photo {
  background-color: #a0aec0;
  border-radius: 0 0 10px 10px;
  width: 100%;
  margin-top: -7px;
  display: flex;
}

.id-card-upload-modal__card-wrapper-outer {
  z-index: 1000;
  pointer-events: none;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 28px));
}

.id-card-upload-modal__card-wrapper-inner {
  transform-style: preserve-3d;
  perspective: 1000px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.id-card-upload-modal__card-animation {
  aspect-ratio: 85 / 54;
  opacity: 0;
  background-color: #ffffff80;
  border: 2px solid #fff;
  border-radius: 16px;
  width: 300px;
}

.id-card-upload-modal__card-animation--back {
  animation: 2s ease-in-out forwards flip-card;
}

.id-card-upload-modal__title {
  z-index: 100;
  color: #fff;
  text-align: center;
  background: linear-gradient(#000000bf, #0000);
  border-radius: 10px 10px 0 0;
  width: 100%;
  height: 80px;
  padding-top: 12px;
  font-size: 18px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.id-card-upload-modal__sides {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px;
  display: flex;
}

.id-card-upload-modal__sides-item {
  aspect-ratio: 85 / 54;
  color: #777;
  background-color: #dcdcdc;
  border: 1px solid #000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 20px;
  display: flex;
  overflow: hidden;
}

.id-card-upload-modal__sides-item--active {
  outline: 4px solid #007bff5c;
}

.id-card-upload-modal__sides-item-image {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.id-card-upload-modal__footer {
  flex-wrap: wrap-reverse;
  gap: 16px;
  margin-top: 8px;
  display: flex;
}

.id-card-upload-modal__footer > button {
  flex: 1;
  min-width: 180px;
}

@keyframes flip-card {
  0% {
    opacity: 0;
    transform: rotateX(0);
  }

  20% {
    opacity: .7;
    transform: rotateX(0);
  }

  50% {
    opacity: .7;
    transform: rotateX(180deg);
  }

  80% {
    opacity: .7;
    transform: rotateX(180deg);
  }

  100% {
    opacity: 0;
    transform: rotateX(180deg);
  }
}

.input__field:not(:-webkit-any(:placeholder-shown, [type="file"])) + .input__label, .input__field:focus + .input__label, .input__label--focused.input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:not(:-moz-any(:placeholder-shown, [type="file"])) + .input__label, .input__field:focus + .input__label, .input__label--focused.input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:not(:is(:placeholder-shown, [type="file"])) + .input__label, .input__field:focus + .input__label, .input__label--focused.input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:-webkit-any(:-webkit-autofill, :-webkit-autofill) + .input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:-moz-any(:autofill, :autofill) + .input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input__field:is(:autofill, :autofill) + .input__label {
  font-size: 12px;
  line-height: 19.2px;
  transform: translateY(5.5px);
}

.input {
  --field-height: 53px;
  --label-unfocused-height: 21px;
  --hover-border-color: #cbcbcb;
}

.input__wrapper {
  color: #111827;
  margin: 0;
  font-size: 14px;
  display: block;
  position: relative;
}

.input__wrapper--with-file {
  height: var(--field-height);
  cursor: pointer;
  border: 1px solid #e9eaec;
  border-radius: 10px;
  padding: 24.5px 16px 5.5px;
}

.input__wrapper--with-file.input__wrapper--without-label {
  padding: 15px 16px;
}

.input__label {
  text-overflow: ellipsis;
  color: #687588;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  max-width: calc(100% - 32px);
  transform: translateY(calc((var(--field-height)  - var(--label-unfocused-height)) / 2));
  will-change: transform, font-size, line-height;
  font-size: 14px;
  line-height: 21px;
  transition: transform .1s, font-size .1s, line-height .1s;
  position: absolute;
  top: 0;
  left: 16px;
  overflow: hidden;
}

.input__file-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
}

.input__require {
  color: #ff2e1f;
  margin-left: 2px;
}

.input input.input__field {
  height: var(--field-height);
}

.input textarea.input__field {
  max-width: 100%;
  min-height: var(--field-height);
  resize: vertical;
  line-height: 130%;
}

.input__field {
  color: #111827;
  background-color: inherit;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  outline: 0;
  width: 100%;
  margin: 0;
  padding: 24.5px 16px 5.5px;
  font-size: 14px;
  line-height: 21px;
  transition: border .1s linear;
}

.input__field--file {
  display: none;
}

.input__field:hover {
  border-color: var(--hover-border-color);
}

.input__field:focus {
  border-color: #111827;
}

.input__field::placeholder {
  color: #a0aec0;
}

.input__field--without-label {
  padding: 15px 16px;
}

.input__field--error, .input__field--error:focus, .input__field--error:hover {
  border-color: #ff2e1f;
}

.input__field:disabled:hover, .input__field:disabled:focus {
  border-color: #e9eaec !important;
}

.input__field--frozen {
  caret-color: #0000;
}

@media (max-width: 768px) {
  .input__field {
    font-size: 16px;
    line-height: 22px;
  }
}

.input__end-container {
  align-items: center;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

.input__error {
  color: #e03137;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 130%;
  display: flex;
}

.input__error > svg {
  min-width: 18px;
}

.main-loader {
  display: inline-block;
}

.main-loader--full-width {
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.main-loader--fullscreen {
  z-index: 1000;
  background-color: #00000073;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.main-loader__text {
  color: #0000;
  text-align: left;
  letter-spacing: -2px;
  text-shadow: -1px -1px #9b1c131a;
  background: linear-gradient(135deg, #1a7fd1, #1a7fd1, #fff, #1a7fd1, #1a7fd1) 0 0 / 200%;
  -webkit-background-clip: text;
  background-clip: text;
  flex-direction: column;
  width: max-content;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  animation: 3s linear infinite shine;
  display: flex;
  position: relative;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.main-spinner {
  display: inline-block;
}

.main-spinner--full-width {
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
}

.main-spinner--fullscreen {
  z-index: 1000;
  background-color: #000000b3;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.main-spinner .ant-spin-dot {
  color: #fff;
  font-size: 64px;
}

.modal {
  color: #111827;
  margin-block-start: 16px;
  margin-block-end: 16px;
}

.modal .ant-modal-header {
  background-color: #0000;
}

.modal .ant-modal-title {
  color: #111827;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.modal .ant-modal-footer {
  margin-top: 0;
}

.modal .ant-modal-content {
  background-color: #fff;
}

.modal .ant-modal-close-icon {
  color: #a2a6ac;
}

.modal__form {
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  display: flex;
}

.modal__actions {
  flex-wrap: wrap-reverse;
  gap: 16px;
  margin-top: 16px;
  display: flex;
}

.modal__actions > button {
  flex: 1;
  min-width: 180px;
}

@media (max-width: 420px) {
  .modal .ant-modal-content {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
  }
}

.multiselect {
  position: relative;
}

.multiselect__field {
  text-overflow: ellipsis;
  caret-color: #0000;
}

.multiselect__arrow {
  cursor: pointer;
  margin-right: 8px;
  padding: 8px;
  line-height: 0;
  transition: transform .2s;
  display: block;
}

.multiselect__arrow--rotated {
  transform: rotate(-180deg);
}

.multiselect__arrow svg path {
  fill: currentColor;
}

.multiselect__popup {
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  background-color: #fff;
  border: 1px solid #f8f8f8;
  border-radius: 10px;
  grid-template-rows: 0fr;
  width: 100%;
  transition: all .2s;
  display: grid;
  position: absolute;
  top: 53px;
  overflow: hidden;
  box-shadow: 5px 5px 50px #1118270f;
}

.multiselect__popup--shown {
  pointer-events: all;
  opacity: 1;
  grid-template-rows: 1fr;
}

.multiselect__popup--shown > .select__list {
  padding: 12px 4px;
  transition: none;
}

.multiselect__popup--to-top {
  top: 0;
  transform: translateY(-100%);
}

.multiselect__controls {
  padding-inline-start: 14px;
  padding-inline-end: 14px;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 4px;
  display: flex;
  box-shadow: 0 1px 3px 1px #0000000d;
}

.multiselect__search {
  box-sizing: border-box;
  border: 1px solid #dfdada;
  border-radius: 4px;
  outline: none;
  flex: 1;
  width: 100%;
  margin-bottom: 0;
  padding: 4px 8px;
  font-size: 14px;
  display: block;
}

.multiselect__filter {
  background-color: #0000;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transition: all .2s;
  display: flex;
  transform: rotate(90deg);
}

.multiselect__filter:hover {
  background-color: #0000000d;
}

.multiselect__filter--selected {
  border: 1px solid #1f9aff;
}

.multiselect__list {
  z-index: 10;
  scroll-behavior: smooth;
  width: 100%;
  max-height: 220px;
  margin-top: 4px;
  padding: 0 4px;
  list-style-type: none;
  transition: padding-block .2s;
  overflow: hidden auto;
}

.multiselect__item {
  color: #111827;
  text-align: left;
  cursor: pointer;
  will-change: background-color;
  border-radius: 4px;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  display: flex;
}

.multiselect__item:hover, .multiselect__item--selected {
  background-color: #f8f8f8;
}

.multiselect__item + .multiselect__item {
  margin-top: 8px;
}

.select {
  --selected-item-color: #f1f1f1;
  position: relative;
}

.select__field {
  cursor: pointer;
  caret-color: #0000;
}

.select__arrow {
  cursor: pointer;
  margin-right: 8px;
  padding: 8px;
  line-height: 0;
  transition: transform .2s;
  display: block;
}

.select__arrow--rotated {
  transform: rotate(-180deg);
}

.select__arrow svg path {
  fill: currentColor;
}

.select__list {
  z-index: 10;
  scroll-behavior: smooth;
  width: 100%;
  max-height: 220px;
  padding: 0 4px;
  list-style-type: none;
  transition: padding-block .2s;
  overflow: hidden auto;
}

.select__popup {
  z-index: 10;
  opacity: 0;
  background-color: #fff;
  border: 1px solid #f8f8f8;
  border-radius: 10px;
  grid-template-rows: 0fr;
  width: 100%;
  transition: all .2s;
  display: grid;
  position: absolute;
  top: 53px;
  overflow: hidden;
  box-shadow: 5px 5px 50px #1118270f;
}

.select__popup--shown {
  opacity: 1;
  grid-template-rows: 1fr;
}

.select__popup--shown > .select__list {
  padding: 12px 4px;
  transition: none;
}

.select__popup--to-top {
  top: 0;
  transform: translateY(-100%);
}

.select__item {
  color: #111827;
  text-align: left;
  cursor: pointer;
  will-change: background-color;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
}

.select__item:hover {
  background-color: #f8f8f8;
}

.select__item--selected, .select__item--selected:hover {
  background-color: var(--selected-item-color);
}

.select__item + .select__item {
  margin-top: 8px;
}

.error-template {
  text-align: left;
  background-color: #fff;
  border-radius: 16px;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 60px 32px;
  display: flex;
}

.error-template__image {
  border-radius: 30px;
}

.error-template__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.error-template__description {
  margin-inline-start: auto;
  margin-inline-end: auto;
  max-width: 350px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 21px;
}

.error-template__link {
  color: inherit;
  text-underline-offset: 2px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .error-template {
    padding: 32px 24px;
  }
}

.auth-modal__form {
  flex-direction: column;
  gap: 16px;
  width: 100%;
  display: flex;
}

.header {
  z-index: 997;
  white-space: nowrap;
  background-color: #fafafa;
  position: sticky;
  top: 0;
}

.header__container {
  width: var(--container-width);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 48px;
  margin: 0 auto;
  display: flex;
}

.header__logo {
  width: 107px;
  height: 21px;
}

.header__logo > * {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.header__actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.header__language-switcher {
  background-color: #e7e7e8;
  border-radius: 6px;
  width: 32px;
  height: 32px;
}

.header__user-button {
  cursor: pointer;
  background: #d4d4d866;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  display: flex;
}

@media (min-width: 521px) {
  .header__container {
    height: 64px;
  }

  .header__logo {
    width: 121px;
    height: 40px;
  }

  .header__actions {
    gap: 16px;
  }

  .header__user-button {
    width: 40px;
    height: 40px;
  }

  .header__language-switcher {
    width: 34px;
    height: 32px;
  }
}

