/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Container for cards */
.cards-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-bottom: 2em; /* Add space below the cards */
}

/* Card base */
.card {
  background: white;
  border-radius: 0.625rem; /* 10px */
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.1),
    0 8px 20px rgb(71 103 144 / 0.1);
  width: 14rem; /* around 224px */
  padding: 1rem 1.5rem;
  position: relative;
  flex-grow: 1;
  min-width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 6px rgb(0 0 0 / 0.1),
    0 12px 24px rgb(71 103 144 / 0.15);
}

/* Title text */
.card-title {
  font-size: 0.8rem; /* ~13px */
  font-weight: 600;
  color: #3a3f51;
  margin: 0 0 0.5rem 0;
}

/* Main number container */
.card-number {
  font-weight: 900;
  font-size: 2.25rem; /* about 36px */
  color: #1c1c24;
  margin: 0 0 0.7rem 0;
  line-height: 1.2;
}

/* Specifically target WooCommerce price elements within the card */
.card-number .woocommerce-Price-amount.amount {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  background: none;
  padding: 0;
  border: none;
}

/* Info line below the main number */
.card-info {
  font-weight: 600;
  font-size: 0.75rem; /* 12px */
  line-height: 1.25rem;
  display: flex;
  align-items: center;
  color: #9191a8;
}

/* Icon circle base */
.icon-circle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-circle svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Icon variations */
.icon-circle.earnings {
    background: #e7eaff;
}
.icon-circle.earnings svg {
    stroke: #6a73ff;
}

.icon-circle.authorizations {
  background: #e2f1fb;
}
.icon-circle.authorizations svg {
  fill: #3a8de3;
  stroke: none;
  width: 1.25rem;
  height: 1.25rem;
}

.icon-circle.approvals {
  background: #fff3d7;
}
.icon-circle.approvals svg {
  fill: #f1c94e;
  stroke: none;
  width: 1.25rem;
  height: 1.25rem;
}

/* Recent Order Splits Table */
.ukvendor-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.ukvendor-orders-table th,
.ukvendor-orders-table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ukvendor-orders-table thead th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #555;
}

.ukvendor-orders-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
}

.woocommerce-pagination .page-numbers .current {
    background: #6a73ff;
    color: #fff;
    border-color: #6a73ff;
}
