/* Simple FAQ – frontend styles */

/* Force [hidden] to actually hide elements, even if the theme overrides it. */
.sfaq-list [hidden] {
  display: none !important;
}

.sfaq-list {
  max-width: 800px;
  margin: 1.5rem auto;
}

.sfaq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sfaq-item.is-open {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sfaq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  font-family: inherit;
  transition: background 0.15s;
}

.sfaq-question:hover {
  background: #f9fafb;
}

.sfaq-question:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.sfaq-question-text {
  flex: 1;
  line-height: 1.4;
}

.sfaq-icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
}

.sfaq-icon::before,
.sfaq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #6b7280;
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.sfaq-icon::before {
  width: 1rem;
  height: 2px;
  transform: translate(-50%, -50%);
}

.sfaq-icon::after {
  width: 2px;
  height: 1rem;
  transform: translate(-50%, -50%);
}

.sfaq-item.is-open .sfaq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sfaq-answer {
  border-top: 1px solid #f3f4f6;
}

.sfaq-answer-inner {
  padding: 1rem 1.25rem;
  color: #374151;
  line-height: 1.6;
}

.sfaq-answer-inner p:first-child {
  margin-top: 0;
}

.sfaq-answer-inner p:last-child {
  margin-bottom: 0;
}

.sfaq-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}
