/* WoofAPI referral cards: readable metrics and separate right-side action v2. */
.woof-console-route-affiliate-v3 .woof-agent-stat-grid {
  gap: 12px !important;
  align-items: stretch !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 112px !important;
  padding: 18px 16px !important;
  gap: 12px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > .woof-agent-stat-icon {
  width: 40px !important;
  height: 40px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > .woof-agent-stat-icon svg {
  width: 21px !important;
  height: 21px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div:not(.woof-agent-stat-icon) {
  min-width: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px 12px !important;
  align-items: center !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div:has(> .woof-agent-stat-withdraw) {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > span,
.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > strong,
.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > small {
  grid-column: 1 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > span {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > strong {
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 30px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card > div > small {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
}

.woof-console-route-affiliate-v3 .woof-agent-stat-card .woof-agent-stat-withdraw.semi-button {
  grid-column: 2 !important;
  grid-row: 1 / span 3 !important;
  justify-self: end !important;
  align-self: end !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 1600px) {
  .woof-console-route-affiliate-v3 .woof-agent-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .woof-console-route-affiliate-v3 .woof-agent-stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
