.wpql,
.wpql * {
  box-sizing: border-box;
}

.wpql [hidden] {
  display: none !important;
}

.wpql__launch {
  align-items: center;
  background: #e6f1ff;
  border: 1px solid #75b2f4;
  border-radius: 6px;
  color: #0867d1;
  cursor: pointer;
  display: inline-flex;
  font: 600 16px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
}

.wpql__launch:hover,
.wpql__launch:focus-visible {
  background: #d8eaff;
  border-color: #0867d1;
}

.wpql__launch-icon {
  font-size: 20px;
  line-height: 1;
}

.wpql__launch-login {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.wpql__launch.wpql__launch--account {
  background: transparent;
  border: 0;
  border-radius: 50%;
  height: 52px;
  min-height: 52px;
  padding: 0;
  width: 52px;
}

.wpql__launch.wpql__launch--account:hover,
.wpql__launch.wpql__launch--account:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(8, 103, 209, 0.28);
}

.wpql__launch-account,
.wpql__launch-avatar,
.wpql__launch-avatar-fallback {
  border-radius: 50%;
  display: block;
  height: 52px;
  width: 52px;
}

.wpql__launch-avatar {
  border: 1px solid #d0d5dd;
  object-fit: cover;
}

.wpql__launch-avatar-fallback {
  align-items: center;
  background: #e6f1ff;
  border: 1px solid #75b2f4;
  color: #0867d1;
  display: flex;
  font-size: 24px;
  justify-content: center;
}

.wpql__overlay {
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.wpql__modal {
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  color: #1f2937;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-height: calc(100vh - 40px);
  overflow: auto;
  width: min(100%, 460px);
}

.wpql__header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 16px 20px;
}

.wpql__header h2 {
  color: #172033;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.wpql__icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #5f6875;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 40px;
}

.wpql__icon-button:hover,
.wpql__icon-button:focus-visible {
  background: #eef2f6;
  color: #172033;
}

.wpql__body {
  padding: 20px;
}

.wpql__gmail-login {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.wpql__gmail-login .main {
  width: 100%;
}

.wpql__gmail-login .tool_profile {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  width: 100% !important;
}

.wpql__gmail-login .fa-login-google {
  display: inline-flex !important;
  justify-content: center !important;
}

.wpql__gmail-login .tool_profile a {
  align-items: center !important;
  background: #0875dc !important;
  border: 1px solid #0875dc !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
  min-height: 44px;
  padding: 9px 16px !important;
  text-align: center !important;
  text-decoration: none !important;
}

.wpql__gmail-login .tool_profile a:hover,
.wpql__gmail-login .tool_profile a:focus-visible {
  background: #075fb3 !important;
  border-color: #075fb3 !important;
  color: #ffffff !important;
}

.wpql__gmail-login .tool_profile a b {
  color: #ffffff !important;
}

.wpql__field {
  margin-bottom: 16px;
}

.wpql__field-help {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: -5px 0 16px;
}

.wpql__app-install {
  margin-bottom: 18px;
}

.wpql__generated-field {
  display: grid;
  gap: 8px;
}

.wpql__generated-field input[readonly] {
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.wpql__generated-field input[data-wpql-registration-first][readonly] {
  background: #e5e7eb;
  color: #667085;
  cursor: not-allowed;
}

.wpql__generated-field button {
  background: #ffffff;
  border: 1px solid #8eb9ea;
  border-radius: 6px;
  color: #0867d1;
  cursor: pointer;
  font: 650 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 40px;
  padding: 9px 12px;
  width: 100%;
}

.wpql__generated-field button:hover,
.wpql__generated-field button:focus-visible {
  background: #edf6ff;
  border-color: #0867d1;
}

.wpql__generated-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 8px;
}

.wpql__generated-actions button {
  min-width: 0;
}

.wpql__id-preview {
  background: #edf6ff;
  border-left: 3px solid #0875dc;
  color: #344054;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.wpql__id-preview > span {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.wpql__id-preview > strong {
  color: #0867d1;
  display: block;
  font-size: 24px;
  margin-top: 2px;
}

.wpql__id-preview p {
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.wpql__field label,
.wpql__result-row > label {
  color: #344054;
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 7px;
}

.wpql__field input,
.wpql__copy-row input {
  appearance: none;
  background: #ffffff;
  border: 1px solid #98a2b3;
  border-radius: 6px;
  color: #172033;
  font: 500 16px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 50px;
  letter-spacing: 0;
  min-width: 0;
  padding: 11px 12px;
  width: 100%;
}

.wpql__field input:focus,
.wpql__copy-row input:focus {
  border-color: #0867d1;
  box-shadow: 0 0 0 3px rgba(8, 103, 209, 0.15);
  outline: 0;
}

.wpql__field input:disabled {
  background: #f2f4f7;
  cursor: wait;
}

.wpql__captcha-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.wpql__captcha-heading label {
  margin: 0;
}

.wpql__captcha-refresh {
  align-items: center;
  background: transparent;
  border: 1px solid #98a2b3;
  border-radius: 4px;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.wpql__captcha-refresh:hover,
.wpql__captcha-refresh:focus-visible {
  background: #eef2f6;
  border-color: #0867d1;
  color: #0867d1;
}

.wpql__captcha-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.wpql__primary,
.wpql__secondary,
.wpql__danger,
.wpql__google {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font: 650 16px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.wpql__primary {
  background: #0875dc;
  border: 1px solid #0875dc;
  color: #ffffff;
}

.wpql__primary:hover,
.wpql__primary:focus-visible {
  background: #075fb3;
  border-color: #075fb3;
  color: #ffffff;
}

.wpql__secondary {
  background: #ffffff;
  border: 1px solid #8eb9ea;
  color: #0867d1;
}

.wpql__secondary:hover,
.wpql__secondary:focus-visible {
  background: #edf6ff;
}

.wpql__danger {
  background: #ffffff;
  border: 1px solid #d92d20;
  color: #b42318;
  margin-top: 20px;
}

.wpql__danger:hover,
.wpql__danger:focus-visible {
  background: #fff1f0;
}

.wpql__google {
  background: #ffffff;
  border: 1px solid #98a2b3;
  color: #344054;
  margin-top: 12px;
}

.wpql__primary:disabled,
.wpql__secondary:disabled,
.wpql__danger:disabled {
  cursor: wait;
  opacity: 0.65;
}

.wpql__divider {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 13px;
  gap: 12px;
  margin: 18px 0;
}

.wpql__divider::before,
.wpql__divider::after {
  background: #e2e8f0;
  content: "";
  flex: 1;
  height: 1px;
}

.wpql__text-button {
  background: transparent;
  border: 0;
  color: #0867d1;
  cursor: pointer;
  display: block;
  font: 600 15px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 14px auto 0;
  min-height: 40px;
  padding: 8px 12px;
}

.wpql__message {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
  min-height: 0;
}

.wpql__message:not(:empty) {
  background: #f5f7fa;
  border-left: 3px solid #667085;
  padding: 9px 10px;
}

.wpql__message.is-error {
  background: #fff1f0;
  border-left-color: #d92d20;
  color: #9b1c12;
}

.wpql__message.is-success {
  background: #ecfdf3;
  border-left-color: #159455;
  color: #087443;
}

.wpql__result-row + .wpql__result-row {
  margin-top: 16px;
}

.wpql__copy-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.wpql__copy-row input {
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.wpql__copy-row button {
  background: #ffffff;
  border: 1px solid #8eb9ea;
  border-radius: 6px;
  color: #0867d1;
  cursor: pointer;
  font-weight: 650;
  min-width: 92px;
  padding: 8px 10px;
}

.wpql__notice {
  background: #fff8e6;
  border-left: 3px solid #eaaa08;
  color: #5f4700;
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0;
  padding: 10px 12px;
}

.wpql__remember {
  align-items: flex-start;
  color: #344054;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
  margin: 0 0 16px;
}

.wpql__remember input {
  accent-color: #0875dc;
  flex: 0 0 20px;
  height: 20px;
  margin: 0;
  width: 20px;
}

.wpql__account-id {
  color: #344054;
  font-size: 18px;
  margin-bottom: 5px;
}

.wpql__account-id strong {
  color: #0867d1;
  font-size: 26px;
}

.wpql__account-balances {
  border-bottom: 1px solid #e1e7ef;
  border-top: 1px solid #e1e7ef;
  margin: 14px 0 4px;
  padding: 10px 0;
}

.wpql__account-balance-row {
  align-items: center;
  color: #344054;
  display: flex;
  font-size: 16px;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.4;
  min-height: 38px;
}

.wpql__account-balance-row strong {
  color: #0867d1;
  font-size: 18px;
  overflow-wrap: anywhere;
  text-align: right;
}

.wpql__account-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.wpql__account-actions .wpql__danger {
  margin-top: 0;
}

body.wpql-modal-open {
  overflow: hidden;
}

.wpql-info,
.wpql-info * {
  box-sizing: border-box;
}

.wpql-info {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

.wpql-info [hidden] {
  display: none !important;
}

.wpql-info__trigger {
  align-items: center;
  background: #e6f1ff;
  border: 1px solid #75b2f4;
  border-radius: 50%;
  color: #0867d1;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 44px;
}

.wpql-info__trigger:hover,
.wpql-info__trigger:focus-visible,
.wpql-info__trigger[aria-expanded="true"] {
  background: #d8eaff;
  border-color: #0867d1;
  outline: 0;
}

.wpql-info__panel {
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  color: #172033;
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 24px));
  z-index: 999998;
}

.wpql-info__row {
  align-items: center;
  display: flex;
  font-size: 15px;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.4;
  min-height: 34px;
}

.wpql-info__row strong {
  color: #0867d1;
  overflow-wrap: anywhere;
  text-align: right;
}

.wpql-info__logout {
  background: #ffffff;
  border: 1px solid #d92d20;
  border-radius: 6px;
  color: #b42318;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  min-height: 42px;
  padding: 9px 14px;
  width: 100%;
}

.wpql-info__logout:hover,
.wpql-info__logout:focus-visible {
  background: #fff1f0;
  outline: 0;
}

.wpql-info__logout:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 520px) {
  .wpql__overlay {
    align-items: flex-end;
    padding: 0;
  }

  .wpql__modal {
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    border-right: 0;
    max-height: 92vh;
    width: 100%;
  }

  .wpql__header,
  .wpql__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wpql__copy-row {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .wpql__copy-row button {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wpql__modal {
    animation: wpql-enter 160ms ease-out;
  }
}

@keyframes wpql-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep this last: tool_profile declares its own global `.tool_profile a` rule. */
.wpql .wpql__gmail-login .main,
.wpql .wpql__gmail-login .tool_profile {
  align-items: center !important;
  background: transparent !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.wpql .tool_profile a,
body .wpql .wpql__modal .wpql__gmail-login .tool_profile a.btn {
  align-items: center !important;
  background: red !important;
  background-image: none !important;
  border: 1px solid #dc0808 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
  min-height: 44px !important;
  padding: 9px 16px !important;
  text-align: center !important;
  text-decoration: none !important;
  width: auto !important;
}

.wpql .tool_profile a:hover,
.wpql .tool_profile a:focus-visible,
body .wpql .wpql__modal .wpql__gmail-login .tool_profile a.btn:hover,
body .wpql .wpql__modal .wpql__gmail-login .tool_profile a.btn:focus-visible {
  background: red !important;
  background-image: none !important;
  border-color: #dc0808 !important;
  color: #ffffff !important;
}

.wpql .tool_profile a b,
body .wpql .wpql__modal .wpql__gmail-login .tool_profile a.btn b {
  color: #ffffff !important;
}

/* Center the quick-login launcher inside the theme's mobile custom menu. */
.custome_menu > .wpql {
  align-items: center !important;
  display: flex !important;
  float: none !important;
  justify-content: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  min-height: 50px;
  position: relative;
  text-align: center !important;
  width: 220px !important;
}

.custome_menu > .wpql > .wpql__launch {
  margin-left: auto !important;
  margin-right: auto !important;
}
