.container-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--Spacing-x3);
  background-color: white;
  width: 100%;
  padding: var(--Spacing-x3);
  text-align: center;
  border-radius: var(--Corner-radius-md) var(--Corner-radius-md) 0 0;
  margin-top: auto;

  @media screen and (min-width: 768px) {
    & {
      border-radius: var(--Corner-radius-md);
      margin-top: initial;
      width: 512px;
    }
  }
}

.otp-container {
  display: flex;

  gap: var(--Spacing-x1);
  @media screen and (min-width: 768px) {
    & {
      gap: var(--Spacing-x2);
    }
  }
  &.error .slot {
    border: 1px solid var(--UI-Text-Error);
  }
}

.slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 34px;
  height: 0px;
  padding: var(--Spacing-x3) 0;
  font-family: var(--typography-Body-Regular-fontFamily);
  border: 1px solid var(--Base-Border-Normal);
  border-radius: var(--Corner-radius-md);
  text-align: center;

  &.active {
    border: 1px solid var(--UI-Text-Active);
    outline: 1px solid var(--UI-Text-Active);
  }
}

.caret {
  position: absolute;
  pointer-events: none;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blink 1s infinite;

  & .child {
    width: 1px;
    height: 16px;
    background-color: var(--UI-Text-Active);
  }
}

.disabled-link {
  cursor: default;
  color: var(--UI-Text-Disabled);
  opacity: 0.4;
}

.error-message {
  display: flex;
  align-items: center;
  gap: var(--Spacing-x1);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
