.order-header {
  margin: 16px 0px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color: #f3f4f6;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

tr {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* This is key! */
}

table td:nth-child(2),
table th:nth-child(2) {
  min-width: 0;
}

td p {
  margin: 0;
  margin-bottom: 4px;
}

th {
  color: #212529;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.table-wrapper {
  display: none;
}

.no-wrap {
  white-space: nowrap;
}

@media (min-width: 575px) {
  .table-wrapper {
    margin-bottom: 1.5rem;
    display: block;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
}

/* Default: only show separate column (≥992px) */
.below-992 {
  display: none;
}
.above-992 {
  display: table-cell;
}

/* Between 575px and 992px: show combined content, hide separate column */
@media (min-width: 575px) and (max-width: 991px) {
  .below-992 {
    display: inline-flex;
    margin-top: 4px;
  }

  .above-992 {
    display: none;
  }

  .royalty-combined {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Explicitly re-hide `.below-992` on large screens */
@media (min-width: 992px) {
  .below-992 {
    display: none !important;
  }
}

.cart-prod-img img {
  width: 100%;
  height: 100%;
  max-width: 250px;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.status-badge,
.royalty-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: #d1fae5;
  color: #065f46;
  margin-top: 2px;
}

.mobile-orders {
  display: block;
}

@media (min-width: 575px) {
  .mobile-orders {
    display: none;
  }
}

.order-card {
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 10px;
}

.order-card .top {
  display: grid;
  grid-template-columns: 3fr 3.5fr 3.5fr;
  gap: 1rem;
  /* align-items: center; */
}

.order-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.order-card p {
  /* margin: 0.25rem 0; */
  color: #212529;
  font-size: 14px;
}

.top > div:nth-child(2) {
  min-width: 0; /* Prevents the grid item from overflowing */
}
.art-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px !important;
  color: #000000 !important;
  font-weight: 600;
  text-transform: capitalize;
}

.title-section {
  text-overflow: ellipsis;
}

.royalty-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #212529;
}

.royalty-icon {
  width: 24px;
  height: 24px;
  color: #ff826b;
  display: block;
}

.royalty-amount {
  font-size: 18px !important;
  font-weight: bold;
  color: #059669 !important;
  margin: 0 !important;
  line-height: 1;
}

.royalty-status,
.order-status {
  width: 16px;
  height: 16px;
  color: #065f46;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-500 {
  color: #222222;
}

.text-gray-600 {
  color: #333333;
}

.text-gray-700 {
  color: #111111;
}

.text-gray-800 {
  color: #000000;
}

.text-green {
  color: #059669;
}

.font-bold {
  font-weight: bold;
}

.text-lg {
  font-size: 1.125rem;
}

.text-center {
  text-align: center;
}

.empty-state {
  padding: 3rem 1rem;
  display: block;
  height: 30vh;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #212529;
}

@media (max-width: 480px) {
  .order-header p {
    font-size: 14px;
  }

  .order-card p {
    /* margin: 0.25rem 0; */
    color: #212529;
    font-size: 12px;
  }

  .art-title {
    font-size: 14px !important;
  }

  .royalty-line {
    font-size: 12px;
  }

  .royalty-icon {
    width: 22px;
    height: 22px;
    color: #ff826b;
    display: block;
  }

  .royalty-amount {
    font-size: 16px !important;
    font-weight: bold;
    color: #059669 !important;
    margin: 0 !important;
    line-height: 1;
  }

  .status-badge,
  .royalty-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 9999px;
    background-color: #d1fae5;
    color: #065f46;
    margin-top: 2px;
  }
  .royalty-status,
  .order-status {
    width: 14px;
    height: 14px;
    color: #065f46;
  }
}
