.xtnd-otp-wrapper, 
.xtnd-otp-wrapper * {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.otp-modal-overlay.xtnd-otp-wrapper {
  box-sizing: border-box;
}

.otp-modal-overlay.xtnd-otp-wrapper {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.otp-modal-overlay.xtnd-otp-wrapper.active { display: flex; }

/* Modal Container */
.xtnd-otp-wrapper .otp-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  max-width: 1000px;
  width: 98vw;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  padding: 0;
  max-height: 90vh;
  height: auto;
  overflow-y: auto;
}

/* Left/Right Columns */
.xtnd-otp-wrapper .otp-modal-left,
.xtnd-otp-wrapper .otp-modal-right {
  display: flex;
  flex-direction: column;
  min-width: 340px;
  padding: 32px 24px;
}
.xtnd-otp-wrapper .otp-modal-left {
  background: linear-gradient(135deg, #1a2236 60%, #232946 100%);
  color: #fff;
  flex: 1;
}
.xtnd-otp-wrapper .otp-modal-right {
  background: #fff;
  flex: 1.2;
  justify-content: center;
  min-width: 420px;
  padding: 32px 32px 24px 32px;
}

/* Shop Logo Styling */
.xtnd-otp-wrapper .otp-modal-left img,
.xtnd-otp-wrapper .otp-modal-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: block;
}
.xtnd-otp-wrapper .otp-modal-left img:hover,
.xtnd-otp-wrapper .otp-modal-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.xtnd-otp-wrapper .otp-modal-shop {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Close Button */
.xtnd-otp-wrapper .otp-modal-close {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 32px;
  color: #232946;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
[dir="rtl"] .otp-modal-close {
  right: unset !important;
  left: 24px !important;
}

/* Title, Description, Label */
.xtnd-otp-wrapper .otp-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #232946;
}
.xtnd-otp-wrapper .otp-modal-desc {
  color: #637381;
  font-size: 13px;
  margin-bottom: 24px;
}
.xtnd-otp-wrapper .otp-modal-label {
  display: block;
  margin-bottom: 8px;
  color: #232946;
  font-weight: 500;
  font-size: 13px;
}

/* Inputs and Buttons */
.xtnd-otp-wrapper .otp-modal-input {
  background-color: white;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.xtnd-otp-wrapper .otp-modal-input::placeholder{
    color: #232946;
}

[dir="rtl"] .xtnd-otp-wrapper .otp-modal-input {
  direction: rtl;
  text-align: right;
  padding-right: 12px;
  padding-left: 12px;
}

.xtnd-otp-wrapper .otp-modal-btn {
  background: #232946;
  color: #fff;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  transition: background 0.2s;
  display: block;
}
.xtnd-otp-wrapper .otp-modal-btn:disabled {
  background: #bfc8e6;
  cursor: not-allowed;
}
.xtnd-otp-wrapper .otp-modal-btn-alt {
  background: #e4e5e7;
  color: #232946;
  margin-top: 0;
}
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-btn {
  direction: rtl;
  text-align: center;
}

/* Footer, Powered, Icons */
.xtnd-otp-wrapper .otp-modal-footer {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  justify-content: center;
  color: #637381;
  font-size: 13px;
  flex-wrap: wrap;
}
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-footer {
  direction: rtl;
  text-align: center;
}
.xtnd-otp-wrapper .otp-modal-footer a {
  color: #232946;
  text-decoration: underline;
  margin: 0 4px;
}
.xtnd-otp-wrapper .otp-modal-powered a,
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-powered a {
  margin: 0 4px;
  color: white;
  text-decoration: none;
}

/* Contact Info and Edit Button */
.xtnd-otp-wrapper .otp-contact-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.xtnd-otp-wrapper .otp-contact-value {
  font-weight: 600;
  font-size: 13px;
  color: #232946;
  letter-spacing: 0.5px;
}

.xtnd-otp-wrapper .otp-edit-contact-btn {
  margin-left: 14px;
  padding: 6px 18px;
  font-size: 13px;
  border-radius: 20px;
  border: none;
  background: #e4e5e7;
  color: #232946;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.xtnd-otp-wrapper .otp-edit-contact-btn:hover {
  background: #d1d2d6;
}

/* Security Features Section */
.xtnd-otp-wrapper .otp-modal-security {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.xtnd-otp-wrapper .otp-modal-security-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.xtnd-otp-wrapper .otp-modal-security-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.xtnd-otp-wrapper .otp-modal-security-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.xtnd-otp-wrapper .otp-modal-security-icon {
  font-size: 20px;
  text-align: center;
}
.xtnd-otp-wrapper .otp-modal-security-text {
  font-size: 13px;
  color: #bfc8e6;
  line-height: 1.4;
}
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-security-text {
  text-align: right;
}
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-security-items {
  direction: rtl;
}
[dir="rtl"] .xtnd-otp-wrapper .otp-modal-security-icon {
  margin-left: 0;
  margin-right: 10px;
}

/* RTL Support for Error and Success Messages */
[dir="rtl"] #otpErrorMessage,
[dir="rtl"] #otpSuccessMessage {
  text-align: right;
  direction: rtl;
}

/* Responsive Styles */
@media (max-width: 700px) {
  .xtnd-otp-wrapper .otp-modal {
    flex-direction: column;
    max-width: 95vw;
    min-width: 0;
    width: 95vw;
    height: auto;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    padding: 0;
    margin: 20px;
  }
  .xtnd-otp-wrapper .otp-modal-left, .xtnd-otp-wrapper .otp-modal-right {
    min-width: 0;
    padding: 20px 16px 16px 16px;
  }
  .xtnd-otp-wrapper .otp-modal-left img,
  .xtnd-otp-wrapper .otp-modal-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 10px;
  }
  .xtnd-otp-wrapper .otp-modal-shop {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .xtnd-otp-wrapper .otp-modal-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .xtnd-otp-wrapper .otp-modal-desc {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .xtnd-otp-wrapper .otp-modal-label {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .xtnd-otp-wrapper .otp-modal-input {
    font-size: 14px;
    padding: 14px;
    margin-bottom: 14px;
  }
  .xtnd-otp-wrapper .otp-modal-btn {
    font-size: 14px;
    padding: 14px 0;
    margin-bottom: 12px;
  }
  .xtnd-otp-wrapper .otp-modal-close {
    right: 16px;
    top: 22px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
  }
  [dir="rtl"] .otp-modal-close {
    right: unset !important;
    left: 16px !important;
  }
  .xtnd-otp-wrapper .otp-modal-footer {
    margin-top: 18px;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .xtnd-otp-wrapper .otp-modal-powered {
    font-size: 14px;
  }
  .xtnd-otp-wrapper .otp-modal-security {
    padding: 12px;
    margin-bottom: 16px;
  }
  .xtnd-otp-wrapper .otp-modal-security-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .xtnd-otp-wrapper .otp-modal-security-items {
    gap: 6px;
  }
  .xtnd-otp-wrapper .otp-modal-security-item {
    gap: 6px;
  }
  .xtnd-otp-wrapper .otp-modal-security-icon {
    font-size: 18px;
  }
  .xtnd-otp-wrapper .otp-modal-security-text {
    font-size: 13px;
  }
}

/* --- END XTND OTP MODAL CLEAN, CONSOLIDATED STYLES --- */
