.opc-faq {
  --faq-accent: #0090ff;
  --faq-bg: #ffffff;
  --faq-border: #e3e8ee;
  --faq-radius: 8px;
  --faq-max-width: 980px;
  --faq-ink: #1f2933;
  --faq-text: #475569;
  --faq-muted: #64748b;
  width: 100%;
  color: var(--faq-text);
  background: transparent;
}

.opc-faq,
.opc-faq * {
  box-sizing: border-box;
}

.opc-faq__inner {
  max-width: var(--faq-max-width);
  margin: 0 auto;
}

.opc-faq__headline-wrap {
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
}

.opc-faq__headline {
  margin: 0;
  color: var(--faq-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.opc-faq__line {
  display: block;
  height: 1px;
  background: var(--faq-border);
}

.opc-faq__list {
  display: grid;
  gap: 10px;
}

.opc-faq__item {
  overflow: hidden;
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-radius);
  background: var(--faq-bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.opc-faq--clean .opc-faq__item {
  border-color: transparent;
  box-shadow: none;
}

.opc-faq--line .opc-faq__list {
  gap: 0;
}

.opc-faq--line .opc-faq__item {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.opc-faq--card .opc-faq__item {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.opc-faq__item[open],
.opc-faq__item:hover,
.opc-faq__item:focus-within {
  border-color: var(--faq-accent);
}

.opc-faq--card .opc-faq__item[open],
.opc-faq--card .opc-faq__item:hover,
.opc-faq--card .opc-faq__item:focus-within {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.opc-faq__question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 17px 54px 17px 18px;
  color: var(--faq-ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  user-select: none;
}

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

.opc-faq__question::before,
.opc-faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--faq-accent);
  transform: translateY(-50%);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.opc-faq__question::after {
  transform: translateY(-50%) rotate(90deg);
}

.opc-faq__item[open] .opc-faq__question::after {
  opacity: 0;
  transform: translateY(-50%) rotate(0deg);
}

.opc-faq__answer {
  padding: 0 18px 18px;
  color: var(--faq-text);
  font-size: 15px;
  line-height: 1.65;
}

.opc-faq__answer-inner {
  min-height: 8px;
}

/* Rich-text content spacing */
.opc-faq__answer-inner > :first-child {
  margin-top: 0;
}

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

.opc-faq__answer-inner p {
  margin: 0 0 0.8em;
}

.opc-faq__answer-inner ul,
.opc-faq__answer-inner ol {
  margin: 0 0 0.8em;
  padding-left: 1.3em;
}

.opc-faq__answer-inner li {
  margin: 0.2em 0;
}

.opc-faq__answer-inner a {
  color: var(--faq-accent);
  font-weight: 600;
  text-decoration: none;
}

.opc-faq__answer-inner a:hover,
.opc-faq__answer-inner a:focus {
  text-decoration: underline;
}

.opc-faq__empty {
  padding: 24px;
  border: 1px dashed var(--faq-border);
  border-radius: var(--faq-radius);
  color: var(--faq-muted);
  text-align: center;
}

@media (max-width: 767px) {
  .opc-faq__headline-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .opc-faq__line {
    display: none;
  }

  .opc-faq__headline {
    text-align: left;
  }

  .opc-faq__question {
    min-height: 54px;
    padding: 15px 48px 15px 14px;
    font-size: 15px;
  }

  .opc-faq__question::before,
  .opc-faq__question::after {
    right: 16px;
  }

  .opc-faq__answer {
    padding: 0 14px 16px;
    font-size: 14px;
  }
}
