
:root {
  --aisub-background: #F5F5F7;
  --aisub-surface: #FFFFFF;
  --aisub-blue: #5B9BD5;
  --aisub-blue-soft: #E4F1FC;
  --aisub-blue-hover: #CFE6F8;
  --aisub-blue-ink: #24577A;
  --aisub-blue-border: #C5DDF2;
}

html,
body,
#root {
  min-height: 100%;
  background-color: var(--aisub-background) !important;
}

body {
  margin: 0;
}

/* Keep the source site's dark and gold themes intact. The AISub palette
   applies to the default/light presentation only. */
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) {
  --r-bg: var(--aisub-background) !important;
  --r-panel: var(--aisub-surface) !important;
  --r-ink: #18394E !important;
  --r-muted: #557087 !important;
  --r-blue: var(--aisub-blue) !important;
  --r-action-bg: var(--aisub-blue-soft) !important;
  --r-action-hover: var(--aisub-blue-hover) !important;
  --r-action-ink: var(--aisub-blue-ink) !important;
  --r-border: var(--aisub-blue-border) !important;
  --r-field: var(--aisub-background) !important;
  background: var(--aisub-background) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .redemption-panel,
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .redemption-card {
  background-color: var(--aisub-surface) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .redemption-panel {
  border-top-color: var(--aisub-blue) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .redemption-connection i {
  background: var(--aisub-blue) !important;
  box-shadow: 0 0 0 3px rgb(91 155 213 / 12%) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="text-emerald-"],
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="text-green-"] {
  color: var(--aisub-blue-ink) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="bg-emerald-"],
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="bg-green-"] {
  background-color: var(--aisub-blue-soft) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="border-emerald-"],
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) [class*="border-green-"] {
  border-color: var(--aisub-blue-border) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .inventory-badge[data-stock="sufficient"],
.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .universal-card-query .partner-result[data-state="unused"] .universal-query-state {
  color: var(--aisub-blue-ink) !important;
  background-color: var(--aisub-blue-soft) !important;
  border-color: var(--aisub-blue-border) !important;
}

.redemption-site:not([data-theme="dark"]):not([data-theme="gold"]) .redemption-guide-steps li > span {
  color: var(--aisub-blue) !important;
  background: rgb(91 155 213 / 5%) !important;
  border-color: var(--aisub-blue-border) !important;
}

.redemption-brand img {
  object-fit: contain;
}
