/* ZR FAQ Plugin Styles */
/* Base FAQ Container */
.zr-faq-container {
  margin: 0;
  padding: 0;
}

/* Accordion Styles */
.zr-faq--accordion .zr-faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.zr-faq--accordion .zr-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zr-faq--accordion .zr-faq-question {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.zr-faq--accordion .zr-faq-question:hover {
  background: rgba(0, 0, 0, 0.02);
}

.zr-faq--accordion .zr-faq-question-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1;
  padding-right: 20px;
}

/* Override shop's default heading styles for FAQ */
.zr-faq--accordion .zr-faq-question-text h1,
.zr-faq--accordion .zr-faq-question-text h2,
.zr-faq--accordion .zr-faq-question-text h3,
.zr-faq--accordion .zr-faq-question-text h4,
.zr-faq--accordion .zr-faq-question-text h5,
.zr-faq--accordion .zr-faq-question-text h6 {
  margin: 0;
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.zr-faq--accordion .zr-faq-number {
  font-weight: 600;
  font-size: 16px;
  padding-right: 0.5rem;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  line-height: 1;
}

.zr-faq--accordion .zr-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.zr-faq--accordion .zr-faq-answer.active {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
}

.zr-faq--accordion .zr-faq-answer-content {
  padding: 24px 32px;
  line-height: 1.6;
  font-size: 15px;
}

.zr-faq--accordion .zr-faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  font-size: 14px;
  pointer-events: none;
}

.zr-faq--accordion .zr-faq-icon i {
  transition: all 0.3s ease;
}

/* List Styles */
.zr-faq--list .zr-faq-item {
  margin-bottom: 20px;
  padding: 20px;
}

.zr-faq--list .zr-faq-question {
  margin-bottom: 15px;
  cursor: default;
}

.zr-faq--list .zr-faq-question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Override shop's default heading styles for FAQ list mode */
.zr-faq--list .zr-faq-question-text h1,
.zr-faq--list .zr-faq-question-text h2,
.zr-faq--list .zr-faq-question-text h3,
.zr-faq--list .zr-faq-question-text h4,
.zr-faq--list .zr-faq-question-text h5,
.zr-faq--list .zr-faq-question-text h6 {
  margin: 0 !important;
  margin-bottom: 0 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.zr-faq--list .zr-faq-number {
  font-weight: 600;
  font-size: 16px;
  padding-right: 0.5rem;
  min-width: 24px;
  text-align: center;
  display: inline-block;
  line-height: 1;
}

.zr-faq--list .zr-faq-answer {
  opacity: 1;
  transform: none;
  max-height: none;
  overflow: visible;
}

.zr-faq--list .zr-faq-answer-content {
  padding: 0;
  line-height: 1.6;
  font-size: 15px;
}

.zr-faq--list .zr-faq-icon {
  display: none;
}

/* Common Styles */
.zr-faq-category-filter {
  margin-bottom: 20px;
}

.zr-faq-category-filter label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.zr-faq-category-filter select {
  width: 100%;
  padding: 12px;
  background: white;
  font-size: 14px;
}

.zr-faq-category-filter select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.zr-faq-item.hidden {
  display: none;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .zr-faq--accordion .zr-faq-question {
    padding: 16px 20px;
  }
  .zr-faq--accordion .zr-faq-answer-content {
    padding: 16px 20px 16px 32px;
  }
  .zr-faq--list .zr-faq-item {
    padding: 16px;
  }
  .zr-faq--accordion .zr-faq-question-text,
  .zr-faq--list .zr-faq-question-text {
    font-size: 15px;
  }
}

