.mof-uaepass-widget {
  display: block;
  margin: 0 auto 1rem;
  max-width: 950px;
  text-align: left;
  width: 100%;
}

.mof-uaepass-login-message {
  margin: 0 0 1rem;
  text-align: left;
}

.mof-uaepass-widget[data-mof-uaepass-language='ar'],
.mof-uaepass-widget[data-mof-uaepass-language='ar'] .mof-uaepass-login-message,
[dir='rtl'] .mof-uaepass-widget,
[dir='rtl'] .mof-uaepass-login-message {
  text-align: right;
}

.mof-uaepass-widget.is-hidden {
  display: none;
}

.mof-uaepass-clear {
  align-items: center;
  background: #006c35;
  border: 1px solid #006c35;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  gap: 0.5rem;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mof-uaepass-clear:hover,
.mof-uaepass-clear:focus {
  background: #00542a;
  border-color: #00542a;
  color: #fff;
  text-decoration: none;
}

.mof-uaepass-clear {
  background: #fff;
  color: #006c35;
}

.mof-uaepass-clear:hover,
.mof-uaepass-clear:focus {
  background: #f4fbf7;
  color: #00542a;
}

.mof-uaepass-status {
  font-weight: 600;
  margin: 0.75rem 0;
}

.mof-uaepass-status.is-verified {
  color: #006c35;
}

.mof-uaepass-status.is-expired {
  color: #a33a00;
}

.mof-uaepass-readonly {
  background-color: #f6f8f7;
  cursor: not-allowed;
}

.mof-uaepass-form-disabled {
  opacity: 1;
}

.mof-uaepass-otp-panel {
  border: 1px solid #d6d9dd;
  border-radius: 6px;
  margin: 20px 0 1rem;
  padding: 1rem;
}

.mof-uaepass-otp-panel.is-error {
  border-color: #b42318;
}

.mof-uaepass-otp-panel.is-success {
  border-color: #006c35;
}

.mof-uaepass-otp-message {
  margin: 0 0 0.75rem;
}

.mof-uaepass-otp-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mof-uaepass-otp-panel[dir='rtl'] .mof-uaepass-otp-controls {
  justify-content: flex-start;
}

.mof-uaepass-otp-digits {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.mof-uaepass-otp-digit {
  appearance: textfield;
  border: 1px solid #c7ccd1;
  border-radius: 4px;
  font-size: 1.15rem;
  font-weight: 600;
  height: 2.75rem;
  line-height: 1;
  padding: 0;
  text-align: center;
  width: clamp(2rem, 10vw, 2.75rem);
}

.mof-uaepass-otp-digit:focus {
  border-color: #006c35;
  box-shadow: 0 0 0 2px rgba(0, 108, 53, 0.18);
  outline: 0;
}

.mof-uaepass-otp-resend {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-inline-start: 50px;
  padding: 0;
}

.mof-uaepass-clear-field-wrapper {
  align-items: center;
  display: flex;
  position: relative;
  width: 100%;
}

.mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear
  input:not([type='checkbox']):not([type='radio']),
.mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear textarea {
  padding-inline-end: 5rem;
}

.wpcf7-form
  .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear
  input:not([type='checkbox']):not([type='radio']),
.wpcf7-form .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear textarea {
  padding-right: 5rem;
}

[dir='rtl']
  .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear
  input:not([type='checkbox']):not([type='radio']),
[dir='rtl'] .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear textarea {
  padding-inline-start: 5rem;
  padding-inline-end: 1rem;
}

[dir='rtl']
  .wpcf7-form
  .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear
  input:not([type='checkbox']):not([type='radio']),
[dir='rtl'] .wpcf7-form .mof-uaepass-clear-field-wrapper.has-mof-uaepass-clear textarea {
  padding-left: 5rem;
  padding-right: 1rem;
}

.mof-uaepass-field-clear {
  align-items: center;
  background: transparent;
  border: 0;
  color: #3f4652;
  cursor: pointer;
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  left: auto;
  padding: 0;
  position: absolute;
  right: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  z-index: 11;
}

[dir='rtl'] .mof-uaepass-field-clear,
html[lang^='ar'] .mof-uaepass-field-clear,
body.rtl .mof-uaepass-field-clear,
body.ar .mof-uaepass-field-clear {
  left: 2.75rem;
  right: auto;
}

.mof-uaepass-field-clear svg {
  display: block;
  height: 1rem;
  pointer-events: none;
  width: 1rem;
}

.mof-uaepass-field-clear[hidden] {
  display: none;
}

.mof-uaepass-clear-field-wrapper.mof-voice-textarea-wrapper .mof-uaepass-field-clear,
.mof-uaepass-clear-textarea-wrapper .mof-uaepass-field-clear {
  top: 0.5rem;
  transform: none;
}

.mof-uaepass-otp-note {
  color: #555f6d;
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
  unicode-bidi: plaintext;
}

.mof-uaepass-header-status-wrap {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  position: relative;
  white-space: nowrap;
}

.mof-uaepass-header-login {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.35rem;
  text-decoration: none;
}

.mof-uaepass-header-login:hover,
.mof-uaepass-header-login:focus {
  color: inherit;
  text-decoration: none;
}

.mof-uaepass-header-greeting {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
}

.mof-uaepass-header-user-icon {
  color: #92722a;
}

.mof-uaepass-header-name {
  display: inline-block;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mof-uaepass-header-greeting:hover,
.mof-uaepass-header-greeting:focus {
  color: #9c7a24;
  outline: 0;
}

.mof-uaepass-profile-dropdown {
  inset-inline-end: 0;
  min-width: 18rem;
  position: absolute;
  top: calc(100% + 0.75rem);
  z-index: 1000;
}

.mof-uaepass-profile-dropdown.hidden {
  display: none;
}

.mof-uaepass-profile-summary {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  min-width: 0;
  padding: 1rem 0;
}

.mof-uaepass-profile-photo {
  align-items: center;
  border: 2px solid #9c7a24;
  border-radius: 999px;
  color: #9c7a24;
  display: inline-flex;
  height: 4rem;
  justify-content: center;
  width: 4rem;
  min-width: 4rem;
}

.mof-uaepass-profile-summary-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}

.mof-uaepass-profile-photo-icon {
  display: block;
  height: 3rem;
  width: 3rem;
}

.mof-uaepass-profile-welcome,
.mof-uaepass-profile-name {
  display: block;
}

.mof-uaepass-profile-welcome {
  color: #2f3033;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.mof-uaepass-profile-name {
  color: #6b7280;
  line-height: 1.35;
  margin-top: 0.2rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.mof-uaepass-profile-dropdown .dropdown-item,
.mof-uaepass-profile-dropdown .mof-uaepass-dropdown-link,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown a.dropdown-item.mof-uaepass-dropdown-link,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown button.dropdown-item.mof-uaepass-dropdown-link {
  align-items: center;
  border: 0;
  color: #3e4046 !important;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  text-align: start;
  text-decoration: none;
  width: 100%;
}

.mof-uaepass-profile-dropdown .dropdown-item svg {
  color: #92722a !important;
}

.mof-uaepass-profile-dropdown .dropdown-item span,
.mof-uaepass-profile-dropdown .mof-uaepass-dropdown-link span {
  color: inherit !important;
}

.mof-uaepass-profile-dropdown .dropdown-item:hover,
.mof-uaepass-profile-dropdown .mof-uaepass-dropdown-link:hover,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown a.dropdown-item.mof-uaepass-dropdown-link:hover,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown button.dropdown-item.mof-uaepass-dropdown-link:hover {
  color: #92722a !important;
  text-decoration: underline;
  text-decoration-color: #92722a;
  text-underline-offset: 0.18em;
}

.mof-uaepass-profile-dropdown .dropdown-item:hover span,
.mof-uaepass-profile-dropdown .mof-uaepass-dropdown-link:hover span {
  color: #92722a !important;
}

.mof-uaepass-profile-dropdown .dropdown-item:focus,
.mof-uaepass-profile-dropdown .mof-uaepass-dropdown-link:focus,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown a.dropdown-item.mof-uaepass-dropdown-link:focus,
.mof-uaepass-header-status-wrap .mof-uaepass-profile-dropdown button.dropdown-item.mof-uaepass-dropdown-link:focus {
  color: #92722a !important;
  text-decoration: none;
}

.mof-uaepass-profile-dropdown .dropdown-item:hover svg,
.mof-uaepass-profile-dropdown .dropdown-item:focus svg {
  color: #92722a !important;
  text-decoration: none;
}

.mof-uaepass-profile-logout {
  justify-content: flex-start !important;
}

.mof-uaepass-header-logout {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: 0.25rem;
}

.mof-uaepass-header-logout:hover,
.mof-uaepass-header-logout:focus {
  color: #006c35;
}

@media (max-width: 1023px) {
  .mof-uaepass-mobile-menu-status {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .mof-uaepass-mobile-menu-status .mof-uaepass-header-login,
  .mof-uaepass-mobile-menu-status .mof-uaepass-header-greeting {
    color: #4b4f58 !important;
    justify-content: flex-start;
    width: 100%;
  }

  .mof-uaepass-mobile-menu-status .mof-uaepass-header-login svg,
  .mof-uaepass-mobile-menu-status .mof-uaepass-header-user-icon,
  .mof-uaepass-mobile-menu-status .mof-uaepass-header-name {
    color: #4b4f58 !important;
  }

  .mof-uaepass-mobile-menu-status .mof-uaepass-header-name {
    max-width: min(16rem, calc(100vw - 7rem));
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .mof-uaepass-mobile-menu-status .mof-uaepass-profile-dropdown {
    inset-inline-end: auto;
    margin-top: 0.5rem;
    min-width: 0;
    position: static;
    top: auto;
    width: 100%;
  }

  .mof-uaepass-mobile-menu-status .mof-uaepass-profile-dropdown .dropdown-body {
    white-space: normal;
  }
}
