.tagCard {
  padding: 0;
  margin-bottom: 15px;
}

.tagCardExtra {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.tagCardList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.tagCardItem {
  border: 1px solid #96c2ee;
  border-radius: 3px 3px 0 0;
  background-color: #fff;
  margin-bottom: 0;
  width: calc(33.3333% - 10px);
  flex: 1 1 calc(33.3333% - 10px);
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  transition: all 0.3s ease;
  height: 160px;
  display: flex;
  flex-direction: column;
}

.tagCardTop {
  height: 6px;
  width: 100%;
  background-color: #aac9ff;
  border-radius: 3px 3px 0 0;
}

.tagCardBody {
  padding: 16px 16px 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cardName {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.cardName img {
  margin-right: 15px;
}

.cardName span {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.cardBody {
  height: 90px;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.tagItem {
  padding: 5px;
  text-align: center;
  margin: 0 10px 10px 0;
  border-radius: 2px;
}

.tagName {
  font-size: 14px;
}

/* Mobile styles applied via root class `.is-mobile` */
:global(.is-mobile) .tagCardItem {
  width: 100%;
  flex: 1 1 100%;
}

:global(.is-mobile) .tagCard {
  padding: 0 4px;
}

:global(.is-mobile) .tagCardExtra {
  justify-content: flex-end;
}

:global(.is-mobile) .tagCardList {
  gap: 12px;
}

:global(.is-mobile) .cardBody {
  max-height: none;
}
