.arraysubs-download-usage {
  margin-bottom: 2em;
  padding: 1.5em;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e4e7;

  &__title {
    margin: 0 0 1em;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e1e1e;
  }

  &__items {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  &__item {
    background: #fff;
    padding: 1em;
    border-radius: 6px;
    border: 1px solid #e2e4e7;
  }

  &__item-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.75em;
  }

  &__name {
    font-weight: 500;
    color: #1e1e1e;
  }

  &__period {
    color: #757575;
    font-size: 0.9em;
  }

  &__unlimited {
    display: flex;
    align-items: center;
  }

  &__badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 500;

    &--unlimited {
      background: #e6f4ea;
      color: #137333;
    }
  }

  &__stats {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }

  &__progress {
    width: 100%;
  }

  &__progress-bar {
    height: 8px;
    background: #e2e4e7;
    border-radius: 4px;
    overflow: hidden;
  }

  &__progress-fill {
    height: 100%;
    background: var(--arraysubs-fb-primary-color, #0073aa);
    border-radius: 4px;
    transition: width 0.3s ease;

    &--warning {
      background: #ffb900;
    }
  }

  &__counts {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
  }

  &__used {
    color: #1e1e1e;
  }

  &__remaining {
    color: #757575;
  }
}

@media (max-width: 600px) {
  .arraysubs-download-usage {
    padding: 1em;

    &__counts {
      flex-direction: column;
      gap: 0.25em;
    }
  }
}
