.jh-otp-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin: 0 0 22px;
  border: 1px solid #25b9d7;
  border-radius: 8px;
  background: #f4fbfd;
  color: #232323;
}

.jh-otp-launcher__copy { display: flex; flex-direction: column; gap: 4px; }
.jh-otp-launcher__copy strong { font-size: 17px; }
.jh-otp-launcher__copy span { color: #555; }
.jh-otp-open { white-space: nowrap; }
.jh-otp-no-scroll { overflow: hidden; }

.jh-otp-overlay {
  display: none;
  position: fixed;
  z-index: 100000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 27, 31, .64);
}

.jh-otp-overlay.is-open { display: flex; }

.jh-otp-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .25);
  color: #232323;
  font-family: inherit;
}

.jh-otp-modal h2 { margin: 0 38px 8px 0; font-size: 25px; line-height: 1.2; }
.jh-otp-intro { margin: 0 0 18px; color: #555; line-height: 1.45; }
.jh-otp-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font-size: 27px;
  line-height: 34px;
  cursor: pointer;
}

.jh-otp-field { margin: 0 0 16px; }
.jh-otp-field label, .jh-otp-code-label { display: block; margin-bottom: 7px; font-weight: 600; }
.jh-otp-field .form-control { width: 100%; min-height: 46px; font-size: 16px; }
.jh-otp-submit { width: 100%; min-height: 46px; margin-top: 4px; }
.jh-otp-email-hint { margin: 0 0 15px; font-weight: 600; text-align: center; word-break: break-word; }

.jh-otp-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 9px 0 18px; }
.jh-otp-digit {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #b8b8b8;
  border-radius: 7px;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
}
.jh-otp-digit:focus { border-color: #25b9d7; outline: 2px solid rgba(37, 185, 215, .2); }
.jh-otp-resend { display: block; margin: 14px auto 0; border: 0; background: transparent; color: #1b7789; cursor: pointer; }
.jh-otp-resend:disabled { color: #888; cursor: default; }
.jh-otp-privacy { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 16px; line-height: 1.4; cursor: pointer; }
.jh-otp-privacy input { flex: 0 0 auto; margin-top: 3px; }
.jh-otp-message { display: none; margin: 0 0 16px; padding: 11px 13px; border-radius: 6px; line-height: 1.4; }
.jh-otp-message.is-error { display: block; background: #fff0f0; color: #a12622; border: 1px solid #e8b6b4; }
.jh-otp-message.is-success { display: block; background: #edf9f1; color: #246b3a; border: 1px solid #b9dfc5; }

@media (max-width: 767px) {
  .jh-otp-launcher { align-items: stretch; flex-direction: column; padding: 15px; }
  .jh-otp-open { width: 100%; }
  .jh-otp-overlay { align-items: flex-end; padding: 0; }
  .jh-otp-modal { max-width: none; max-height: 92vh; padding: 25px 18px 22px; border-radius: 14px 14px 0 0; }
  .jh-otp-modal h2 { font-size: 22px; }
  .jh-otp-code { gap: 6px; }
  .jh-otp-digit { height: 50px; font-size: 22px; }
}

