/* === GS FAQ Tabs – Flex Responsive RTL === */
.gs-faq-tabs {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  direction: rtl;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* טאבים (מימין בדסקטופ) */
.gs-faq-tabs .gs-tabs-nav {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gs-faq-tabs .gs-tab-btn {
  text-align: right;
  background: #ebebeb;
  border: 1px solid #dcdcdc;
  color: #000;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.gs-faq-tabs .gs-tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.gs-faq-tabs .gs-tab-btn[data-active="1"] {
  border-color: #bfbfbf;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.04);
}

/* תוכן (שאלות ותשובות) */
.gs-faq-tabs .gs-tabs-panels {
  flex: 1;
  min-width: 0;
}
.gs-faq-tabs .gs-tab-panel.is-hidden { display: none; }

.gs-faq-tabs .gs-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* פריטי FAQ */
.gs-faq-tabs .gs-faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.gs-faq-tabs .gs-faq-item[open] {
  border-color: #cfcfcf;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.gs-faq-tabs .gs-faq-question {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gs-faq-tabs .gs-faq-question::-webkit-details-marker { display: none; }


.gs-faq-tabs .gs-faq-question::before {
  content: '';
  position: absolute;
  left: 18px;
  width: 10px;
  height: 10px;
  transform: rotate(0deg);
  transition: transform .24s cubic-bezier(.25,.8,.25,1);
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

.gs-faq-tabs details[open] > .gs-faq-question::before {
  transform: rotate(180deg);
}

.gs-faq-tabs .gs-faq-answer {
  padding: 0 18px 16px 18px;
  line-height: 1.65;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .34s cubic-bezier(.25,.8,.25,1), opacity .24s ease;
}

/* 📱 רספונסיביות למובייל */
@media (max-width: 1024px) {
  .gs-faq-tabs {
    flex-direction: column;
  }

  /* טאבים למעלה – שורת גלילה */
  .gs-faq-tabs .gs-tabs-nav {
    order: 1;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
	 width: -webkit-fill-available;
    scroll-behavior: smooth;
    padding: 8px 4px;
    margin: 0 -12px;
    padding-inline: 12px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    border-bottom: 1px solid #eee;
  }

  .gs-faq-tabs .gs-tab-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* תוכן מתחת */
  .gs-faq-tabs .gs-tabs-panels {
    order: 2;
    width: 100%;
  }
}
