.faqcha-tabs-container {
  margin: 0 auto;
  margin-top: 3rem;
}

/* Tab Navigation */
.faqcha-tabs-nav-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 3rem;
}

.faqcha-tabs-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.faqcha-tabs-nav {
  display: flex;
  gap: 8px;
  min-width: min-content;
}

.faqcha-tabs-nav-btn {
  padding: 12px 24px;
  background-color: #eeeeee;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.faqcha-tabs-nav-btn:hover {
  background-color: #e5e7eb;
}

.faqcha-tabs-nav-btn-active {
  background-color: #1f2937;
  color: #ffffff;
}

.faqcha-tabs-nav-btn-active:hover {
  background-color: #111827;
}

/* Tab Panels */
.faqcha-tabs-content {
  position: relative;
}

.faqcha-tabs-panel {
  display: none;
}

.faqcha-tabs-panel-active {
  display: block;
}

/* Accordion */
.faqcha-tabs-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faqcha-tabs-item {
  background-color: #f9fafb;
  border-radius: 8px;
  overflow: hidden;
}

.faqcha-tabs-question {
  width: 100%;
  padding: 20px 24px;
  background-color: #eeeeee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 20px;
  color: #111827;
  transition: background-color 0.2s ease;
}

.faqcha-tabs-question:hover {
  background-color: #eeeeee;
}

.faqcha-tabs-question-active {
  background-color: #eeeeee;
}

/* Ikona używa pojedynczego znaku + który obraca się o 45° tworząc X */
.faqcha-tabs-icon {
  font-size: 24px;
  font-weight: 300;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faqcha-tabs-question-active .faqcha-tabs-icon {
  transform: rotate(45deg);
}

.faqcha-tabs-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faqcha-tabs-answer-active {
  max-height: 500px;
  padding: 10px 24px 10px 24px;
}

.faqcha-tabs-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

body.cms-page-view .columns div.questions-row-full .row-full-width-inner {
    margin: unset;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .faqcha-tabs-nav-wrapper {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .faqcha-tabs-nav-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .faqcha-tabs-question {
    padding: 16px 20px;
    font-size: 15px;
  }

  .faqcha-tabs-answer-active {
    padding: 0 20px 16px 20px;
  }

  .faqcha-tabs-answer p {
    font-size: 14px;
  }
}
