/* Amelia admin controls are nested Vue components. Do not inject an image
   there; a single text label is clearer and prevents stacked duplicate icons. */
body.wp-admin .aipac-amelia-alipay-icon {
  display: none !important;
}

[data-aipac-amelia-alipay="1"] .aipac-amelia-alipay-icon,
.aipac-amelia-alipay-icon {
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  margin-right: 9px !important;
  vertical-align: middle !important;
  border-radius: 6px !important;
  flex: 0 0 24px !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
}

#toplevel_page_wpamelia-dashboard ~ * [data-aipac-amelia-alipay="1"],
[data-aipac-amelia-alipay="1"] {
  align-items: center;
}

#aipac-amelia-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(4px);
}

#aipac-amelia-payment-overlay .aipac-amelia-payment-card {
  width: min(420px, 100%);
  padding: 30px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

#aipac-amelia-payment-overlay img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 11px;
  margin-bottom: 14px;
}

#aipac-amelia-payment-overlay strong {
  display: block;
  color: #101828;
  font-size: 20px;
  line-height: 1.45;
}

#aipac-amelia-payment-overlay p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.65;
}

#aipac-amelia-payment-overlay .aipac-amelia-payment-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid #dbeafe;
  border-top-color: #1677ff;
  border-radius: 50%;
  animation: aipac-amelia-spin .75s linear infinite;
}

#aipac-amelia-payment-overlay button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

#aipac-amelia-payment-overlay.is-error .aipac-amelia-payment-card {
  border: 1px solid #fecaca;
}

@keyframes aipac-amelia-spin { to { transform: rotate(360deg); } }
