/* Matches the legal page's orange hero and accordion without changing other pages. */
.mp-faq-page {
  padding-bottom: 60px;
}

.mp-faq-page .oc-wrap,
.mp-faq-page .oc-wrap * {
  box-sizing: border-box;
}

.mp-faq-page .oc-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 20px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

.mp-faq-page .oc-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  border-radius: 12px;
  background-color: var(--mp-faq-banner-color, #fb842f);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: var(--mp-faq-title-align, center);
}

.mp-faq-page .oc-hero--default {
  background-image: linear-gradient(rgba(251, 132, 47, .85), rgba(251, 132, 47, .85)), var(--mp-faq-banner-image);
}

.mp-faq-page .oc-hero--color {
  background-image: none;
}

.mp-faq-page .oc-hero--image {
  background-image: linear-gradient(var(--mp-faq-image-overlay), var(--mp-faq-image-overlay)), var(--mp-faq-banner-image);
}

.mp-faq-page .oc-hero h1 {
  margin: 0;
  color: var(--mp-faq-title-color, #fff);
  font-family: var(--mp-faq-title-font, 'Roboto', sans-serif);
  font-size: var(--mp-faq-title-size, 40px);
  font-weight: var(--mp-faq-title-weight, 700);
  line-height: 1.3;
}

.mp-faq-page .mp-faq-intro {
  margin-top: 32px;
}

.mp-faq-page .oc-accordion {
  max-width: 100%;
  margin-top: 60px;
  overflow: hidden;
  border-radius: 20px;
  background: #fafafa;
}

.mp-faq-page .oc-item {
  border-bottom: 1px solid #e0e0e0;
}

.mp-faq-page .oc-item:last-child {
  border-bottom: 0;
}

.mp-faq-page .oc-question {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  list-style: none;
  color: #333;
  cursor: pointer;
  font-weight: 700;
  transition: background-color .2s ease;
}

.mp-faq-page .oc-question::-webkit-details-marker {
  display: none;
}

.mp-faq-page .oc-question:hover {
  background: rgba(251, 132, 47, .06);
}

.mp-faq-page .oc-question:focus-visible {
  outline: 2px solid rgba(251, 132, 47, .7);
  outline-offset: -3px;
  border-radius: 12px;
}

.mp-faq-page .oc-question__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mp-faq-page .oc-question__icon {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.mp-faq-page .oc-question__icon::before,
.mp-faq-page .oc-question__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transform: translate(-50%, -50%);
}

.mp-faq-page .oc-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mp-faq-page .oc-item[open] .oc-question__icon::after {
  transform: translate(-50%, -50%);
}

.mp-faq-page .oc-answer {
  padding: 0 20px 20px;
  background: #fafafa;
  overflow-wrap: anywhere;
}

/* Without JS, the native details element remains fully usable. */
.mp-faq-page .oc-item.is-animated .oc-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height .4s ease, padding .25s ease;
}

.mp-faq-page .oc-item.is-animated[open]:not(.is-closing) .oc-answer {
  padding-bottom: 20px;
}

.mp-faq-page .oc-answer p,
.mp-faq-page .oc-answer ul,
.mp-faq-page .oc-answer ol {
  margin: 15px 0;
}

.mp-faq-page .oc-answer a {
  text-decoration: underline !important;
  font-weight: 600;
}

.mp-faq-page .oc-answer img,
.mp-faq-page .oc-answer video,
.mp-faq-page .oc-answer iframe {
  max-width: 100%;
  height: auto;
}

.mp-faq-page .oc-answer table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.mp-faq-page .mp-faq-editor-hint {
  margin: 40px 0;
}

@media (max-width: 768px) {
  .mp-faq-page .oc-wrap { padding: 20px 12px; }
  .mp-faq-page .oc-hero { padding: 50px 15px; border-radius: 10px; }
  .mp-faq-page .oc-hero h1 { font-size: var(--mp-faq-title-mobile-size, 24px); }
  .mp-faq-page .oc-accordion { margin-top: 40px; border-radius: 12px; }
  .mp-faq-page .oc-question { padding: 16px 14px; font-size: 1rem; }
  .mp-faq-page .oc-answer { padding: 0 14px 14px; font-size: .95rem; }
  .mp-faq-page .oc-item.is-animated .oc-answer { padding: 0 14px; }
  .mp-faq-page .oc-item.is-animated[open]:not(.is-closing) .oc-answer { padding-bottom: 14px; }
}

@media (max-width: 480px) {
  .mp-faq-page .oc-hero { padding: 40px 12px; }
  .mp-faq-page .oc-question { padding: 14px 12px; font-size: .95rem; }
  .mp-faq-page .oc-answer { padding: 0 12px 12px; font-size: .9rem; }
  .mp-faq-page .oc-item.is-animated .oc-answer { padding: 0 12px; }
  .mp-faq-page .oc-item.is-animated[open]:not(.is-closing) .oc-answer { padding-bottom: 12px; }
}
