.mod-hikashopdownloads {
  --mod-hikashopdownloads-accent: #cf1b1b;
  --mod-hikashopdownloads-border: #dee2e6;
  --mod-hikashopdownloads-muted: #6c757d;
  --mod-hikashopdownloads-radius: 0.375rem;
  --mod-hikashopdownloads-gap: 1rem;
}

.mod-hikashopdownloads__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mod-hikashopdownloads-gap);
  margin-bottom: var(--mod-hikashopdownloads-gap);
}

.mod-hikashopdownloads__filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 200px;
}

.mod-hikashopdownloads__filter select {
  padding: 0.5rem;
  border: 1px solid var(--mod-hikashopdownloads-border);
  border-radius: var(--mod-hikashopdownloads-radius);
}

.mod-hikashopdownloads.is-loading .mod-hikashopdownloads__list {
  opacity: 0.5;
  pointer-events: none;
}

.mod-hikashopdownloads__group {
  margin-bottom: calc(var(--mod-hikashopdownloads-gap) * 1.5);
}

.mod-hikashopdownloads__product {
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--mod-hikashopdownloads-accent);
  font-size: 1.1rem;
}

.mod-hikashopdownloads__row {
  display: flex;
  align-items: center;
  gap: var(--mod-hikashopdownloads-gap);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--mod-hikashopdownloads-border);
}

.mod-hikashopdownloads__icon {
  flex: 0 0 auto;
  min-width: 3rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--mod-hikashopdownloads-radius);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  background: var(--mod-hikashopdownloads-muted);
}

.mod-hikashopdownloads__icon--pdf { background: #d63939; }
.mod-hikashopdownloads__icon--archive { background: #d97706; }
.mod-hikashopdownloads__icon--software { background: #0d6efd; }
.mod-hikashopdownloads__icon--image { background: #2f9e44; }

.mod-hikashopdownloads__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.mod-hikashopdownloads__description {
  color: var(--mod-hikashopdownloads-muted);
  font-size: 0.9rem;
}

.mod-hikashopdownloads__flag {
  display: inline-block;
  margin-right: 0.4rem;
  max-width: 1.5rem;
  height: auto;
  vertical-align: middle;
}

.mod-hikashopdownloads__meta {
  flex: 0 0 auto;
  color: var(--mod-hikashopdownloads-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.mod-hikashopdownloads__button {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: var(--mod-hikashopdownloads-radius);
  background: var(--mod-hikashopdownloads-accent);
  color: #fff;
  text-decoration: none;
}

.mod-hikashopdownloads__button:hover,
.mod-hikashopdownloads__button:focus {
  color: #fff;
  filter: brightness(0.9);
}

.mod-hikashopdownloads__message {
  padding: 1rem 0;
  color: var(--mod-hikashopdownloads-muted);
}

@media (max-width: 575px) {
  .mod-hikashopdownloads__row {
    flex-wrap: wrap;
  }

  .mod-hikashopdownloads__meta {
    order: 3;
    flex-basis: 100%;
  }
}
