.accordion > .tabs {
  grid-column: 1 / 9;
}

.accordion .tab {
  overflow: hidden;
  position: relative;
  transition: all 0.35s;
}

.accordion input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.accordion .tab-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 1.5rem 2px 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  transition: all 0.35s;
  border: 1px solid var(--gray-25);
  border-left: 4px solid var(--gray-25);
}
.accordion .tab-label::after {
  height: 24px;
  content: url(../images/icon_add.svg);
}
.accordion .tab-label:hover {
  border-left: 4px solid var(--foreground);
}

.accordion .tab-content {
  display: flex;
  flex-direction: column;
  max-height: 0;
  padding: 0 1.5rem;
  transition: all 0.35s;
  border-left: 3px solid var(--gray-25);
}

input:checked ~ .tab-content {
  max-height: unset;
  padding: 1.5rem;
}

input:checked ~ .tab-content,
input:checked ~ .tab-label {
  background: var(--gray-10);
  border-left: 3px solid var(--primary);
}
input:checked ~ .tab-label {
  border: 1px solid rgba(0, 0, 0, 0);
  border-left: 3px solid var(--primary);
}
input:checked ~ .tab-label:hover {
  border-left: 3px solid var(--primary);
}
input:checked ~ .tab-label::after {
  content: url(../images/icon_remove.svg);
}

/* L & XL */
@media (min-width: 960px) {
  .accordion > .tabs {
    grid-column: 1 / 8;
  }
}
