/*
  AVANTCHA — avantcha-collection-faq.css
  Ported 1:1 from live CH theme (#plp-faq). OS 3.0 classes = .av-faq*.
*/

.av-faq {
  padding-top: 40px;
  padding-bottom: 40px;
}

.av-faq__wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--size-32);  
}

@media (max-width: 959px) {
  .av-faq__wrapper {
    padding-inline: 16px;
  }
}

.av-faq__media {
  flex: 1 1 40%;
}

.av-faq__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.av-faq__content {
  flex: 1 1 50%;
  text-align: left;
}

.av-faq__title {
  margin: 0 0 8px;
  color: var(--color-text);
  text-transform: none;
}

.av-faq__subtitle {
  margin: 0 0 24px;
  color: var(--color-darkgrey);
}

.av-faq__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Matches sections/faq design: plain top-border list, no boxed/grey card */
.av-faq__item {
  border-block-start: 1px solid rgba(var(--color-text), 0.08);
}

.av-faq__item:last-child {
  border-block-end: 1px solid rgba(var(--color-text), 0.08);
}

.av-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-12);
  padding: var(--size-24) 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--body1-font-size);
  font-weight: 300;
  color: var(--color-text);
  position: relative;
}

.av-faq__question h4 {margin-bottom:0;}

details.av-faq__item summary .icon__arrow,
details.av-faq__item summary .icon__minus {right: 0;}

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

.av-faq__answer {
  overflow: hidden;
}

.av-faq__answer-inner {
  overflow: hidden;
  min-height: 0;
  line-height: 1.3;
  color: var(--color-text);
  transition: padding 450ms var(--reveal-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

@media (max-width: 768px) {
  .av-faq__wrapper {
    flex-direction: column-reverse;
  }

  .av-faq__media,
  .av-faq__content {
    flex: 1 1 100%;
    width: 100%;
  }
}
