.hk-email-verification-open {
  overflow: hidden;
}

.hk-email-verification {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 35, 55, 0.66);
}

.hk-email-verification__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  color: #1b2838;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.hk-email-verification__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #415166;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.hk-email-verification__eyebrow {
  margin: 0 0 4px;
  color: #1769aa;
  font-size: 14px;
  font-weight: 700;
}

.hk-email-verification__title {
  margin: 0 36px 12px 0;
  color: #173b5f;
  font-size: 24px;
  line-height: 1.4;
}

.hk-email-verification__description,
.hk-email-verification__help,
.hk-email-verification__resend-note {
  line-height: 1.7;
}

.hk-email-verification__label {
  display: block;
  margin: 22px 0 8px;
  font-weight: 700;
}

.hk-email-verification__code {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 2px solid #6b8096;
  border-radius: 8px;
  background: #fff;
  color: #15263a;
  font: 700 28px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.28em;
  text-align: center;
}

.hk-email-verification__code:focus {
  border-color: #1769aa;
  outline: 3px solid rgba(23, 105, 170, 0.22);
}

.hk-email-verification__help,
.hk-email-verification__resend-note {
  margin: 9px 0 0;
  color: #536579;
  font-size: 13px;
}

.hk-email-verification__status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-weight: 700;
}

.hk-email-verification__status.is-error {
  color: #b42318;
}

.hk-email-verification__timer {
  margin: 6px 0 0;
  color: #40576f;
  font-variant-numeric: tabular-nums;
}

.hk-email-verification__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hk-email-verification__verify,
.hk-email-verification__cancel {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
}

.hk-email-verification__verify {
  flex: 1;
  border: 1px solid #1265a8;
  background: #1265a8;
  color: #fff;
}

.hk-email-verification__cancel {
  border: 1px solid #8796a7;
  background: #fff;
  color: #33475b;
}

.hk-email-verification button:focus-visible {
  outline: 3px solid rgba(23, 105, 170, 0.34);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .hk-email-verification {
    align-items: flex-end;
    padding: 10px;
  }

  .hk-email-verification__dialog {
    max-height: calc(100vh - 20px);
    padding: 26px 20px;
    border-radius: 14px 14px 8px 8px;
  }

  .hk-email-verification__title {
    font-size: 21px;
  }

  .hk-email-verification__actions {
    flex-direction: column;
  }

  .hk-email-verification__cancel {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hk-email-verification * {
    scroll-behavior: auto !important;
  }
}

.otp-recovery {
  box-sizing: border-box;
  width: min(100% - 32px, 680px);
  margin: 48px auto;
  padding: 32px;
  border: 1px solid #d8e1e9;
  border-radius: 12px;
  background: #fff;
  color: #1b2838;
  box-shadow: 0 10px 32px rgba(27, 55, 82, 0.1);
}

.otp-recovery label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 700;
}

.otp-recovery input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #718399;
  border-radius: 6px;
  font-size: 16px;
}

.otp-recovery button {
  min-height: 48px;
  margin-top: 18px;
  padding: 10px 20px;
  border: 1px solid #1265a8;
  border-radius: 7px;
  background: #1265a8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.otp-recovery button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 520px) {
  .otp-recovery {
    width: min(100% - 20px, 680px);
    margin: 20px auto;
    padding: 22px 18px;
  }
}
