/* ==========================================================================
   Credit Wallet styles — [uai_credit_wallet]
   The plugin renders .uai-box > .uai-grid > .uai-card package tiles.
   Presentation only; purchase logic stays in the plugin.
   ========================================================================== */

.uai-box h2 + h3 {
  color: var(--uai-green-dark);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Credit package cards rendered by the plugin inside .uai-grid */
.uai-box .uai-grid .uai-card {
  text-align: center;
  margin-top: 0;
  padding: 1.5rem 1rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.uai-box .uai-grid .uai-card:hover {
  box-shadow: var(--uai-shadow-hover);
  transform: translateY(-2px);
}
.uai-box .uai-grid .uai-card b {
  display: block;
  font-size: 1.15rem;
  color: var(--uai-green-dark);
  margin-bottom: 0.25rem;
}

/* Highlight the recommended package via a data attribute the theme can
   add through a small JS enhancement, without touching plugin PHP. */
.uai-box .uai-grid .uai-card.uai-package-recommended {
  border: 2px solid var(--uai-green);
  position: relative;
}
.uai-box .uai-grid .uai-card.uai-package-recommended::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--uai-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2em 0.8em;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Payment status container (#uai-pay) */
#uai-pay {
  margin-top: 1.5rem;
}
#uai-pay:empty { display: none; }

.uai-wallet-balance {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.uai-wallet-balance .uai-stat-card { flex: 0 0 auto; min-width: 160px; }
