.otp_section {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999;
}
.otp_section .otp_form {
  padding: 40px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  background: white;
  max-width: 360px;
}
.otp_section .otp_form ._navi {
  display: inline-block;
  position: absolute;
  top: 12px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}
.otp_section .otp_form ._back {
  right: 10px;
  background-image: url("/wp-content/uploads/2024/11/next.svg");
  display: none;
}
.otp_section .otp_form ._close {
  left: 10px;
  background-image: url("/wp-content/uploads/2024/12/close.svg");
}
.otp_section .otp_form p span {
  font-weight: bold;
}
.otp_section .otp_form label {
  font-weight: bold;
  text-align: right;
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
}
.otp_section .otp_form label.mailing {
  font-weight: normal;
  font-size: 15px;
}
.otp_section .otp_form label.privacy {
  font-weight: normal;
  font-size: 15px;
}

/* Consent rows (mailing/privacy) - align checkbox with text and keep links clickable */
.otp_section .otp_form .otp-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.otp_section .otp_form .otp-consent-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  float: none;
}

.otp_section .otp_form .otp-consent-row label.mailing,
.otp_section .otp_form .otp-consent-row label.privacy {
  margin: 0;
  display: inline;
  line-height: 1.2;
}

.otp_section .otp_form .otp-consent-row label.mailing a,
.otp_section .otp_form .otp-consent-row label.privacy a {
  text-decoration: underline;
}
.otp_section .otp_form input {
  width: 100%;
  border-radius: 12px;
}
.otp_section .otp_form input[name=submit] {
  background-color: black;
  color: white;
  margin-top: 10px;
}
/* WhatsApp button styling */
.otp_section .otp_form input[name=submit][data-func=otp_whatsapp] {
  background-color: #25D366;
  color: white;
  margin-top: 5px;
  border: none;
  font-weight: bold;
}
.otp_section .otp_form input[name=submit][data-func=otp_whatsapp]:hover {
  background-color: #128C7E;
}
.otp_section .otp_form input[name=mailing] {
  height: 14px;
  width: 14px;
  border: 1px black solid;
  border-radius: 4px;
  margin: 12px 0 0 5px;
  float: right;
}
.otp_section .otp_form input[name=privacy] {
  height: 14px;
  width: 14px;
  border: 1px black solid;
  border-radius: 4px;
  margin: 12px 0 0 5px;
  float: right;
}
.otp_section .otp_form input[name=mailing]:checked {
  background-color: black;
}
.otp_section .otp_form:after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.otp_section .otp_form#step0:after, .otp_section .otp_form#step3:after {
  content: "";
}
.otp_section .step1, .otp_section .step2, .otp_section .step3, .otp_section .step4 {
  display: none;
}
.otp_section .err {
  color: red;
  position: relative;
  z-index: 1;
}
.otp_section .step {
  position: relative;
  z-index: 1;
}
.otp_section .step0 .masterstudy-authorization__header {
  display: none;
}
.otp_section .step0 .or {
  font-size: 30px;
  margin-top: 15px;
  position: relative;
}
.otp_section .step0 .or span {
  background-color: white;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}
.otp_section .step0 .or:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: black;
  top: 21px;
}
.otp_section .step0 p.not_yet {
  font-size: 18px;
  padding-top: 20px;
  margin-bottom: 0;
}
.otp_section .step0 input.not_yet {
  background: none;
  border: none;
  color: black;
  text-decoration: underline;
  font-size: 18px;
  padding: 0;
  margin-top: 0;
}
.otp_section .step3 input[name=submit].link {
  background: none;
  border: none;
  color: black;
  text-decoration: underline;
  font-size: 18px;
  padding: 0;
  margin-top: 50px;
}
.otp_section.no_popup {
  position: relative;
  width: auto;
  height: auto;
  background-color: transparent;
}
.otp_section.no_popup ._close {
  display: none !important;
}
.otp_section.hide {
  display: none;
}
body.rtl .masterstudy-authorization__actions-remember{
    z-index: 0;
}
.masterstudy-authorization__switch-lost-pass{
    direction: rtl;
}

/* טופס התחברות חדש */
.otp_section .authorization_form {
    text-align: right;
    margin-bottom: 20px;
}
.otp_section .authorization_form label {
    font-weight: bold;
    text-align: right;
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
}
.otp_section .authorization_form input[type="text"],
.otp_section .authorization_form input[type="password"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.otp_section .authorization_form input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-left: 0;
}
.otp_section .authorization_form input[name="submit"][data-func="wp_login"] {
    background-color: black;
    color: white;
    margin-top: 10px;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
}
.otp_section .authorization_form input[name="submit"][data-func="wp_login"]:hover {
    background-color: #333;
}
.otp_section .authorization_form a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}
.otp_section .authorization_form a:hover {
    text-decoration: underline;
}

/* License status styles */
.otp-license-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 10px 0;
}

.otp-license-status.valid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.otp-license-status.invalid {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.otp-license-status.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.otp-license-refresh-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.otp-license-refresh-btn:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

.otp-license-refresh-btn:active {
    background-color: #004a73;
}

.otp-license-refresh-btn.link {
    background-color: transparent;
    color: #0073aa;
    text-decoration: underline;
    padding: 0;
}

.otp-license-refresh-btn.link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Notification styles */
.otp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 999999;
    max-width: 300px;
    word-wrap: break-word;
    animation: otp-slide-in 0.3s ease;
}

.otp-notification.success {
    background-color: #28a745;
}

.otp-notification.error {
    background-color: #dc3545;
}

.otp-notification.info {
    background-color: #0073aa;
}

@keyframes otp-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* License debug styles */
.otp-license-debug {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.otp-license-debug pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
