:root {
  --primary: #227093;
  --secondary: #ff5252;
  --background: #eee;
  --highlight: #ffda79;
  /* Theme color */
  --theme: var(--lightGrayColor);
  --lightGrayColor: #f0f0f0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Core styles/functionality */
.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
  overflow-y: scroll;
  max-height: 200px;
}

/* Visual styles */
.accordion {
  color: var(--theme);
}
.tab__label,
.tab__close123 {
  display: flex;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  /* background: var(--theme); */
  background-color: #fff;
  padding: 10px 12px;
}
.tab__label {
  justify-content: space-between;
  padding: 10px 12px;
}
.tab__label::after {
  content: '\276F';
  width: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
  font-size: 16px;
  font-weight: 400;
  color: #908d9d;
}
.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}
.tab__content p {
  margin: 0;
}
.tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #000;
  display: flex;
  cursor: pointer;
}
.accordion--radio {
  --theme: var(--secondary);
}

/* Arrow animation */
.tab input:not(:checked) + .tab__label:hover::after {
  animation: bounce 0.5s infinite;
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(0.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-0.25rem);
  }
}
