/* ┌─┐┬─┐┬┌─┐┌─┐┌─┐ */
/* ├─┘├┬┘││  ├┤ └─┐ */
/* ┴  ┴└─┴└─┘└─┘└─┘ */
#prices {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--secondary-background-color);
  --gap: 10px;
}

#prices > * {
  width: 80%;
  max-width: 1000px;
}

/* first grey block */
#prices .version-selector {
  cursor: pointer;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  border-bottom: 1px solid transparent;
}
#prices .version-selector > span {
  flex: auto;
  padding: var(--gap);
  background-color: transparent;
  transition: var(--transition-speed) background-color;
}

#prices .version-selector > span.core-visible {
  background-color: var(--default-background-color);  
}

#prices .manager {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--default-background-color);
  border: none;
  padding: var(--gap);
  transition: var(--transition-speed) opacity;
  opacity: 0;
  position: absolute;
  margin-bottom: var(--gap);
}
#prices .manager.core-visible {
  position: initial;
  opacity: 1;
}


#prices section.modules > details.core-module {
  display: none;
}

#prices section.modules > details.core-module.core-visible {
  display: initial;
}

.manager h2 {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.manager h2 > span, .manager h2 .argamato {
  font-size: var(--default-font-size);
}

.manager ul {
  width: 80%;
  margin: 2em 0em;
}

.manager ul li {
  list-style: disc;
  margin: 0 50% 0 0;
}

.manager ul li:nth-child(even) {
  margin: 0 0 0 50%;
}

/* list of modules */
.modules {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  --nb-columns: 3;
  gap: var(--gap);
  --block-width: calc(100% / var(--nb-columns) - var(--gap) * calc(var(--nb-columns) - 1) / var(--nb-columns));
}

#prices details {
  flex: 0 0 var(--block-width);
  border: 1px solid var(--default-text-color);
}

#prices details summary {
  display: flex;
  justify-content: space-between;
  padding: .75em;
}

#prices details summary > span:nth-child(2) {
  font-size: 0.8em;
}

#prices details > div {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0em 2em;
  background-color: var(--default-background-color);
  border: none;
  top: 0;
  height: 100%;
}

#prices details[open].closing > div {
  padding: 0;
}

#prices .modules ul {
  list-style: disc;
  display: list-item;
  flex-basis: 80%;
}

.modules li {
  margin-bottom: .5em;
}

.modules li p {
  display: flex;
  justify-content: space-between;
}

#prices .add_cost {
  text-wrap: nowrap;
}

@media (max-width:800px) {
  .prices {
    --gap: 10px;
  }
}


/*---------MOBILE---------*/
@media (max-width:800px) {
  #prices {
    margin: 0;
    padding: 10px;
  }
  #prices > * {
    width: 100%
  }
  #prices > section {
    --nb-columns: 2;
    --gap: 10px;
    --block-ratio: 1;
  }
  #prices > ul {
    flex-direction: column;
  }
  .version-selector {
    margin-top: 20px;
  }
  .manager {
    align-items: center;
    justify-content: center;
  }
  .manager ul {
    align-items: center;
  }
  .modules details summary {
    flex-direction: column;
  }
  .manager ul li, .manager ul li:nth-child(even) {
    margin: 0 0 0 0;
  }
}
