body.cn-otp-open {
  overflow: hidden;
}

.cn-otp-overlay,
.cn-otp-overlay * {
  box-sizing: border-box;
}

.cn-otp-overlay {
  background: rgba(20, 14, 12, .72);
  display: grid;
  inset: 0;
  padding: 20px;
  place-items: center;
  position: fixed;
  z-index: 130000;
}

.cn-otp-overlay[hidden],
.cn-otp-resend-row button[hidden] {
  display: none;
}

.cn-otp-dialog {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  color: #202033;
  font-family: "Libre Franklin", sans-serif;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  width: min(480px, 100%);
}

.cn-otp-head {
  align-items: start;
  background: #fff8f5;
  border-bottom: 1px solid #f0ddd7;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px;
}

.cn-otp-kicker {
  color: #fc4102;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  margin: 0;
  text-transform: uppercase;
}

.cn-otp-head h2 {
  color: #202033;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.2;
  margin: 4px 0 0;
}

.cn-otp-close {
  align-items: center;
  background: #fff;
  border: 1px solid #e7d7d2;
  border-radius: 50%;
  color: #202033;
  cursor: pointer;
  display: flex;
  flex: 0 0 44px;
  font: inherit;
  font-size: 25px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.cn-otp-close:focus-visible,
.cn-otp-link:focus-visible {
  outline: 3px solid rgba(252, 65, 2, .18);
  outline-offset: 2px;
}

.cn-otp-body {
  padding: 26px 24px 24px;
}

.cn-otp-description {
  color: #5f5f68;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.cn-otp-phone {
  color: #202033;
  display: block;
  font-weight: 700;
  margin-top: 5px;
}

.cn-otp-form {
  margin-top: 22px;
}

.cn-otp-form[hidden],
.cn-otp-change-form[hidden] {
  display: none;
}

.cn-otp-code {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cn-otp-code input {
  appearance: textfield;
  background: #fff;
  border: 1px solid #dfd5d1;
  border-radius: 10px;
  color: #202033;
  font: 700 22px/1 "Libre Franklin", sans-serif;
  height: 56px;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.cn-otp-code input::-webkit-outer-spin-button,
.cn-otp-code input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.cn-otp-code input:focus {
  border-color: #fc4102;
  outline: 3px solid rgba(252, 65, 2, .12);
}

.cn-otp-status {
  color: #696972;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin: 13px 0 0;
  min-height: 20px;
  text-align: center;
}

.cn-otp-status[data-kind="error"] {
  color: #b42318;
}

.cn-otp-status[data-kind="success"] {
  color: #137547;
}

.cn-otp-verify {
  margin-top: 11px;
  width: 100%;
}

.cn-otp-verify:disabled,
.cn-otp-close:disabled,
.cn-otp-link:disabled {
  cursor: wait;
  opacity: .62;
}

.cn-otp-resend-row {
  align-items: center;
  color: #696972;
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  min-height: 22px;
}

.cn-otp-link {
  background: transparent;
  border: 0;
  color: #fc4102;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cn-otp-change {
  display: block;
  margin: 12px auto 0;
}

.cn-otp-change-form {
  margin-top: 4px;
}

.cn-otp-change-copy {
  color: #5f5f68;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  text-align: center;
}

.cn-otp-phone-label {
  color: #30303a;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 7px;
}

.cn-otp-change-form input {
  background: #fff;
  border: 1px solid #dfd5d1;
  border-radius: 10px;
  color: #202033;
  font: 600 17px/1.2 "Libre Franklin", sans-serif;
  height: 54px;
  padding: 0 15px;
  width: 100%;
}

.cn-otp-change-form input:focus {
  border-color: #fc4102;
  outline: 3px solid rgba(252, 65, 2, .12);
}

.cn-otp-change-send {
  margin-top: 4px;
  width: 100%;
}

.cn-otp-change-cancel {
  display: block;
  margin: 14px auto 0;
}

@media (max-width: 767px) {
  .cn-otp-overlay {
    align-items: end;
    padding: 0;
  }

  .cn-otp-dialog {
    border-radius: 20px 20px 0 0;
    max-height: 94dvh;
    width: 100%;
  }

  .cn-otp-head {
    padding: 18px;
  }

  .cn-otp-head h2 {
    font-size: 22px;
  }

  .cn-otp-body {
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .cn-otp-code {
    gap: 7px;
  }

  .cn-otp-code input {
    font-size: 20px;
    height: 52px;
  }
}

@media (max-width: 360px) {
  .cn-otp-code {
    gap: 5px;
  }

  .cn-otp-code input {
    border-radius: 8px;
    height: 48px;
  }
}
