/* MOBILE-FIRST BASE STYLES */
#livhy-otp-popup,
#livhy-otp-popup * {
  box-sizing: border-box;
  padding: 0 0.5em;
}

#livhy-otp-popup {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2vw 0;
}

#livhy-otp-popup .livhy-otp-modal-content {
  background: #fff;
  padding: 1em 0.5em;
  border-radius: 12px;
  min-width: 90vw;
  max-width: 95vw;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 30vw auto;
}

#livhy-otp-popup .livhy-otp-close-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  padding-right: 0.5em;
}

#livhy-otp-popup .livhy-otp-close {
  font-size: 2em;
  color: #222;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

#livhy-otp-popup .livhy-otp-close:hover {
  color: #d8232a;
}

#livhy-otp-popup .livhy-otp-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.2em;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: none;
  border: none;
  font-size: 1em;
}

#livhy-otp-popup .livhy-otp-tab {
  background: none;
  border: none;
  padding: 0.8em 1.2em;
  cursor: pointer;
  border-radius: 0;
  font-weight: 700;
  color: #222;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

#livhy-otp-popup .livhy-otp-tab.active {
  background: #111;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

#livhy-otp-popup .livhy-otp-tab-content {
  display: block;
}

#livhy-otp-popup .livhy-input-group,
#livhy-otp-popup .livhy-otp-tab-content input[type="text"],
#livhy-otp-popup .livhy-otp-tab-content input[type="email"],
#livhy-otp-popup .livhy-otp-tab-content input[type="password"] {
  width: 100%;
  margin-bottom: 1em;
}

#livhy-otp-popup .livhy-otp-tab-content input[type="text"],
#livhy-otp-popup .livhy-otp-tab-content input[type="email"],
#livhy-otp-popup .livhy-otp-tab-content input[type="password"] {
  padding: 1em 0.8em;
  border: 1.5px solid #e6e6e6;
  border-radius: 7px;
  font-size: 1em;
  background: #f8fbfd;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

#livhy-otp-popup .livhy-otp-tab-content input[type="text"]:focus,
#livhy-otp-popup .livhy-otp-tab-content input[type="email"]:focus,
#livhy-otp-popup .livhy-otp-tab-content input[type="password"]:focus {
  border: 1.5px solid #d8232a;
  background: #fff;
  box-shadow: 0 2px 8px rgba(216, 35, 42, 0.07);
}

#livhy-otp-popup .livhy-otp-tab-content input[type="tel"][name="otp"] {
  width: 100%;
  padding: 1em 0.8em;
  border: 2px solid #d8232a;
  border-radius: 7px;
  font-size: 1.1em;
  background: #fff8f8;
  text-align: center;
  margin-bottom: 1em;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(216, 35, 42, 0.04);
}

#livhy-otp-popup .livhy-otp-tab-content input[type="tel"][name="otp"]:focus {
  border: 2px solid #a81a1a;
  background: #fff;
  box-shadow: 0 2px 12px rgba(216, 35, 42, 0.12);
}

#livhy-otp-popup .livhy-otp-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1em;
  gap: 0.7em;
}

#livhy-otp-popup .livhy-login-btn,
#livhy-otp-popup .livhy-otp-btn,
#livhy-otp-popup #livhy-validate-otp-login,
#livhy-otp-popup #livhy-validate-otp-signup,
#livhy-otp-popup .livhy-resend-otp-btn {
  width: 100%;
  background: #d8232a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.9em 1.2em;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.7em;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#livhy-otp-popup .livhy-login-btn:hover,
#livhy-otp-popup .livhy-otp-btn:hover,
#livhy-otp-popup #livhy-validate-otp-login:hover,
#livhy-otp-popup #livhy-validate-otp-signup:hover,
#livhy-otp-popup .livhy-resend-otp-btn:hover {
  background: #a81a1a;
}

#livhy-otp-popup #livhy-resend-otp-signup,
#livhy-otp-popup #livhy-resend-otp-login {
  background: #005b7f !important;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.9em 1.2em;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.7em;
  transition: background 0.2s;
  box-shadow: none;
}

#livhy-otp-popup #livhy-resend-otp-signup:hover,
#livhy-otp-popup #livhy-resend-otp-login:hover {
  background: #003a54 !important;
}

#livhy-otp-popup .livhy-or {
  text-align: center;
  margin: 1em 0 1em 0;
  font-weight: 600;
  color: #222;
  font-size: 1em;
  letter-spacing: 0.01em;
}

#livhy-otp-popup .livhy-otp-section {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

#livhy-otp-popup .livhy-otp-message {
  margin-top: 1em;
  color: #d8232a;
  font-size: 1em;
  text-align: center;
  min-height: 1.5em;
  font-weight: 500;
}

#livhy-otp-popup .livhy-otp-username-message {
  font-size: 0.98em;
  min-height: 1.2em;
}

#livhy-otp-popup .livhy-otp-terms {
  margin-bottom: 1em;
}

#livhy-otp-popup .livhy-otp-terms label {
  font-size: 1em;
  color: #222;
  font-weight: 500;
}

#livhy-otp-popup .livhy-otp-terms a {
  color: #0071a1;
  text-decoration: underline;
}

#livhy-otp-popup label {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 600;
  color: #222;
}

#livhy-otp-popup .livhy-otp-tab-content input[type="checkbox"] {
  margin-right: 0.5em;
}

#livhy-otp-popup button {
  background: #0071a1;
  color: #fff;
  border: none;
  padding: 0.9em 1.2em;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background 0.2s;
}

#livhy-otp-popup button:disabled {
  background: #b3c9d9;
  cursor: not-allowed;
}

#livhy-otp-popup .livhy-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0071a1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: livhyspin 1s linear infinite;
  z-index: 10000;
  display: none;
}

@keyframes livhyspin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#livhy-otp-popup #livhy-otp-signup {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 2px;
}

#livhy-otp-popup .livhy-otp-error {
  color: #d8232a;
  font-size: 1em;
  margin-top: 0.3em;
  text-align: left;
  font-weight: 500;
}

#livhy-otp-popup .livhy-otp-info {
  color: #080;
  font-size: 1em;
  margin-bottom: 0.3em;
  text-align: left;
  font-weight: 500;
}

/* Inline (shortcode) mode: center on page, no overlay */
#livhy-otp-popup.livhy-otp-inline {
  position: static !important;
  z-index: auto !important;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  background: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 2em 0 2em 0;
  min-height: 40vh;
}

#livhy-otp-popup.livhy-otp-inline .livhy-otp-modal-content {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  min-width: 90vw;
  max-width: 95vw;
  width: 100%;
}

#livhy-otp-popup.livhy-otp-inline .livhy-otp-close-row {
  display: none !important;
}

#livhy-otp-popup.livhy-otp-inline #livhy-otp-signup {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

/* TABLET & DESKTOP MEDIA QUERIES */
@media (min-width: 600px) {
  #livhy-otp-popup .livhy-otp-modal-content {
    min-width: 320px;
    max-width: 400px;
    padding: 2em 1.2em;
    border-radius: 16px;
  }

  #livhy-otp-popup .livhy-otp-tabs {
    font-size: 1.15em;
  }

  #livhy-otp-popup .livhy-login-btn,
  #livhy-otp-popup .livhy-otp-btn {
    font-size: 1em;
  }

  #livhy-otp-popup.livhy-otp-inline .livhy-otp-modal-content {
    min-width: 320px;
    max-width: 400px;
    padding: 2em 1.2em;
  }

  #livhy-otp-popup.livhy-otp-inline {
    margin: 3em 0 3em 0;
    min-height: 60vh;
  }
}

@media (min-width: 900px) {
  #livhy-otp-popup .livhy-otp-modal-content {
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    margin: 0vh auto 0 auto;
    padding: 2em 1.2em;
  }

  #livhy-otp-popup {
    align-items: center;
  }
}

@media (max-width: 300px) {
  #livhy-otp-popup .livhy-otp-tab {
    padding: 0.7em 0.6em;
    font-size: 0.95em;
  }
}
