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

.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;margin-right:var(--size-36);}

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%;
  }
}

/* PLP 2.0: FAQ questions in italic, answers in normal style */
.av-faq__question h4 {
  font-style: italic;
}
/* PLP 2.0 AR: same gap below the answer as between question and line */
.av-faq__answer-inner {
  padding-block-end: var(--av-faq-gap, 1.25rem);
}

/* PLP 2.0 AR: FAQ question icon = thin plus, turns into X when open (Vercel) */
.av-faq__question .icon__arrow,
.av-faq__question .icon__minus {
  display: none;
}

.av-faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.2s;
}

.av-faq__item[open]:not(.is-collapse-closing) > .av-faq__question::after {
  transform: rotate(45deg);
}