src/components/card-modal/card-modal.module.css
.container {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-flow: column nowrap;
  width: 100%;

  @media screen and (min-width: 32rem) {
    flex-flow: row nowrap;
  }
}

.card,
.cardset {
  flex: 1 1 auto;
}

.shadow {
  box-shadow: var(--shadow);
}

.quantities {
  order: -1;
  flex: 0 0 auto;

  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-flow: row wrap;
  min-width: 8rem;

  @media screen and (min-width: 32rem) {
    order: 2;
    flex-flow: column nowrap;
  }
}

.quantity {
  background: var(--palette-point-five);
  border: 1px solid var(--palette-2);
  padding: 0.5rem;
  border-radius: var(--rounded);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 8rem;
  flex: 1 1 auto;

  @media screen and (min-width: 32rem) {
    flex: 0 0 auto;
  }
}

.quantity-title {
  display: flex;
  gap: 0.25rem;
  flex-flow: row wrap;
  font-size: var(--text-sm);
  justify-content: center;
}

.quantity > * + * {
  margin-top: 0.5rem;
}

.related {
  margin-top: 0.5rem;

  > * + * {
    margin-top: 0.5rem;
  }
}

.annotation-edit {
  border-color: transparent;
  padding: 0;
}

.annotation-edit.active textarea {
  border-color: var(--color-link);
}

.neighbour-nav {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.375rem;
  align-self: stretch;
  width: 100%;
}

.neighbour-nav > * {
  flex: 1 1 auto;
}
