/* Worxogo Insurance Stats Widget Styles */
.card-stats {
  display: flex;
  gap: 30px;
}

/* Table Left, Content Right Layout */
.card-stats.table-left {
  flex-direction: row;
}

.card-stats.table-left .card-stats-left {
  flex: 1;
  max-width: 50%;
  order: 2; /* Content comes second (on the right) */
}

.card-stats.table-left .card-stats-right {
  flex: 1;
  max-width: 50%;
  order: 1; /* Table comes first (on the left) */
}

/* Table Right, Content Left Layout */
.card-stats.table-right {
  flex-direction: row;
}

.card-stats.table-right .card-stats-left {
  flex: 1;
  max-width: 50%;
  order: 1; /* Content comes first (on the left) */
}

.card-stats.table-right .card-stats-right {
  flex: 1;
  max-width: 50%;
  order: 2; /* Table comes second (on the right) */
}

.card-stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
}

.card-stats-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card-stats-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.label-wrapper {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  border-style: solid;
  border-color: #4000a9;
  border-width: 1px;
  padding: 12px 16px 12px 16px;
  align-items: center;
  justify-content: center;
  position: relative;
  display: inline-flex;
}

.label-text {
  color: #4000a9;
  text-align: center;
  font-family: "AlbertSans-SemiBold", sans-serif;
  font-size: 16px;
  letter-spacing: 0.03em;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stat-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1;
  position: relative;
}

.card-stats-title {
  color: #342e77;
  text-align: left;
  font-family: "AlbertSans-Bold", sans-serif;
  font-size: 32px;
  line-height: 112%;
  font-weight: 700;
  position: relative;
  align-self: stretch;
}

.card-stats-bold {
  color: #4000a9;
  text-align: left;
  font-family: "AlbertSans-SemiBold", sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  position: relative;
  align-self: stretch;
}

.card-stats-content p {
  color: #4b484e;
  text-align: left;
  font-family: "AlbertSans-Regular", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  position: relative;
  margin: 0;
  padding: 0;
}

.card-stats-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
}

.card-stats-table {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-content: center;
  align-self: stretch;
  flex-shrink: 0;
  min-width: 520px;
  position: relative;
}

.top-left,
.top-right,
.bottom-left,
.bottom-right {
  background: #eaeae8;
  border-style: solid;
  border-color: #b1b1af;
  border-width: 1px;
  padding: 20px 12px 20px 12px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  height: 92px;
  min-width: 240px;
  position: relative;
}

.stat {
  color: #4000a9;
  text-align: left;
  font-family: "Inter-Bold", sans-serif;
  font-size: 40px;
  line-height: 50%;
  font-weight: 700;
  position: relative;
}

.stat-text {
  color: #616160;
  text-align: left;
  font-family: "AlbertSans-Regular", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  position: relative;
  flex: 1;
}

.small-texts {
  font-family: "Inter-Medium", sans-serif;
  font-size: 24px;
  line-height: 120%;
  font-weight: 500;
}

.small-text {
  line-height: 100%;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card-stats,
  .card-stats.table-left,
  .card-stats.table-right {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .card-stats-left,
  .card-stats-right,
  .card-stats.table-left .card-stats-left,
  .card-stats.table-left .card-stats-right,
  .card-stats.table-right .card-stats-left,
  .card-stats.table-right .card-stats-right {
    gap: 20px;
    max-width: 100%;
    order: initial;
    text-align: center;
  }

  .card-stats-content {
    gap: 20px;
  }

  .card-stats-table {
    min-width: auto;
    flex-direction: row;
    gap: 12px;
    text-align: center;
  }

  .top-left,
  .top-right,
  .bottom-left,
  .bottom-right {
    height: auto;
    padding: 16px;
    text-align: center;
  }

  .stat {
    font-size: 32px;
    text-align: center;
  }

  .card-stats-title {
    font-size: 28px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .card-stats-wrapper {
    gap: 40px;
  }

  .card-stats-left,
  .card-stats-right {
    gap: 16px;
  }

  .card-stats-content {
    gap: 16px;
  }

  .label-wrapper {
    padding: 10px 14px;
  }

  .label-text {
    font-size: 14px;
  }

  .card-stats-title {
    font-size: 24px;
  }

  .card-stats-bold {
    font-size: 15px;
  }

  .top-left,
  .top-right,
  .bottom-left,
  .bottom-right {
    padding: 14px 10px;
    gap: 12px;
  }

  .stat {
    font-size: 28px;
    min-width: 93px;
  }

  .stat-text {
    font-size: 15px;
  }
}
