.product-matrix__scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 22px;
  border-radius: 25px;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  font-family: "Titillium-reg", sans-serif;
  line-height: 1.2;
  width: fit-content;
  cursor: default;
  user-select: none;
}

.product-matrix__scroll-hint-arrow {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  animation: product-matrix-arrow-nudge 1.2s ease-in-out infinite;
}

@keyframes product-matrix-arrow-nudge {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

.product-matrix__table-wrap {
  overflow-x: auto;
  width: 100%;
}

.product-matrix__table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.product-matrix__table th,
.product-matrix__table td {
  padding: 8px 16px;
  white-space: nowrap;
}

.product-matrix__image img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  object-fit: cover;
  cursor: pointer;
}

.product-matrix__table thead {
  background-color: #000;
}

.product-matrix__table thead th {
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
}

.product-matrix__table thead th:first-child {
  width: 60px;
}

.product-matrix__table tbody tr {
  font-size: 14px;
}

.product-matrix__table tbody tr:nth-child(even) {
  background-color: #eee;
}

.product-matrix__image {
  width: 75px;
}

.product-matrix__title,
.product-matrix__enummer {
  white-space: nowrap;
}

.product-matrix__sortable {
  cursor: pointer;
}

/* Lightbox */

.product-matrix__lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.product-matrix__lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Scrollbar styling (endast bottom) */

.product-matrix__table-wrap::-webkit-scrollbar {
  height: 12px;
}

.product-matrix__table-wrap::-webkit-scrollbar-track {
  background: #ddd;
}

.product-matrix__table-wrap::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 999px;
}

.product-matrix__table-wrap::-webkit-scrollbar-thumb:hover {
  background: #666;
}