/* 移动端商品列表页隐藏 FAQ */
@media (max-width: 959px) {
  body[data-page-type="collection"] .faq-custom-section {
    display: none;
  }
}

.faq-custom-section {
  background-color: #f8f5f1;
}

.faq-custom-section__container {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

.faq-custom-section__heading {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: rgba(198, 134, 53, 0.8);
}

@media (max-width: 959px) {
  .faq-custom-section__heading {
    margin-block-end: 20px;
    font-size: 20px;
  }
}

.faq-custom-item {
  display: block;
  width: 100%;
  border-block-end: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-custom-section__items > div:last-child .faq-custom-item {
  border-block-end: none;
}

.faq-custom-item__summary {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}

.faq-custom-item__summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 959px) {
  .faq-custom-item__summary {
    padding: 14px 0;
  }
}

.faq-custom-item__question {
  flex: 1;
  font-weight: 600;
  font-size: 18px;
  line-height: 2;
  color: #c68635;
}

@media (max-width: 959px) {
  .faq-custom-item__question {
    font-size: 18px;
  }
}

.faq-custom-item__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.faq-custom-item__toggle svg {
  width: 100%;
  height: 100%;
  color: #c68635;
}

.faq-custom-item__toggle--open {
  display: flex;
}

.faq-custom-item__toggle--close {
  display: none;
}

.faq-custom-item[open] .faq-custom-item__toggle--open {
  display: none;
}

.faq-custom-item[open] .faq-custom-item__toggle--close {
  display: flex;
}

.faq-custom-item__answer-wrapper {
  max-height: 0;
  overflow: hidden;
  animation: faq-custom-collapse 0.3s ease-in-out forwards;
}

.faq-custom-item[open] .faq-custom-item__answer-wrapper {
  max-height: none;
  animation: faq-custom-expand 0.3s ease-in-out forwards;
}

.faq-custom-item__answer {
  padding-block-end: 18px;
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  color: #999999;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.faq-custom-item[open] .faq-custom-item__answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-custom-item__answer a {
  color: #999999;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-custom-item__answer a:hover {
  color: #c68635;
}

@media (max-width: 959px) {
  .faq-custom-item__answer {
    padding-block-end: 14px;
    font-size: 14px;
  }
}

@keyframes faq-custom-expand {
  from {
    max-height: 0;
  }
  to {
    max-height: 500px;
  }
}

@keyframes faq-custom-collapse {
  from {
    max-height: 500px;
  }
  to {
    max-height: 0;
  }
}
