/*
 * Ølhalle Indhold: grundstil for lister og FAQ. Holder sig til temaets
 * skrifter og farver (currentColor) og lader temaet bestemme resten.
 */

.oh-indhold-note {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed currentColor;
  border-radius: 4px;
  font-size: 0.75em;
  opacity: 0.7;
}

.oh-indhold-placeholder {
  padding: 1em;
  border: 1px dashed currentColor;
  opacity: 0.6;
}

/* Liste ------------------------------------------------------------------- */

.oh-liste__heading {
  margin: 0 0 0.75em;
}

.oh-liste__section + .oh-liste__section {
  margin-top: 2em;
}

.oh-liste__title {
  margin: 0 0 0.5em;
}

.oh-liste__note {
  margin: -0.25em 0 0.75em;
  opacity: 0.75;
}

.oh-liste__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.oh-liste__item {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 0.45em 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.oh-liste__item:last-child {
  border-bottom: 0;
}

.oh-liste__text {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0 0.5em;
  min-width: 0;
}

.oh-liste__name {
  font-weight: 600;
}

.oh-liste__desc {
  flex-basis: 100%;
  font-size: 0.9em;
  opacity: 0.8;
}

.oh-liste__price {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* FAQ --------------------------------------------------------------------- */

.oh-faq__item {
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.oh-faq__item:first-child {
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.oh-faq__question {
  cursor: pointer;
  padding: 0.9em 2em 0.9em 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.oh-faq__question::-webkit-details-marker {
  display: none;
}

.oh-faq__question::after {
  content: "+";
  position: absolute;
  right: 0.25em;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.oh-faq__item[open] > .oh-faq__question::after {
  transform: translateY(-50%) rotate(45deg);
}

.oh-faq__answer {
  padding: 0 0 1em;
}

.oh-faq__answer > :first-child {
  margin-top: 0;
}

.oh-faq__answer > :last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .oh-faq__question::after {
    transition: none;
  }
}
