.jtb-faq {
  --jtb-faq-border: #f4d8c8;
  --jtb-faq-border-strong: #efc5ab;
  --jtb-faq-bg: #ffffff;
  --jtb-faq-bg-soft: #fff7f2;
  --jtb-faq-title: #111827;
  --jtb-faq-text: #1f2937;
  --jtb-faq-muted: #5b6575;
  --jtb-faq-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  --jtb-faq-shadow-hover: 0 16px 34px rgba(255, 98, 16, 0.14);

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.jtb-faq__header {
  margin-bottom: 14px;
}

.jtb-faq__title {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 30px);
  line-height: 1.2;
  color: var(--jtb-faq-title);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.jtb-faq__subtitle {
  margin: 8px 0 0;
  color: var(--jtb-faq-muted);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.jtb-faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.jtb-faq__item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--jtb-faq-border);
  border-radius: 14px;
  background: var(--jtb-faq-bg);
  box-shadow: var(--jtb-faq-shadow);
  overflow: hidden;
}

.jtb-faq__question {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  max-width: 100%;
  margin: 0;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--jtb-faq-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

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

.jtb-faq__item > summary {
  list-style: none;
}

.jtb-faq__item > summary::marker {
  content: "";
}

.jtb-faq__question:hover {
  background: #fff8f4;
}

.jtb-faq__question:focus-visible {
  outline: 2px solid var(--generate-primary-color, #ff6210);
  outline-offset: -2px;
  background: #fff8f4;
}

.jtb-faq__item[open] {
  border-color: var(--jtb-faq-border-strong);
  box-shadow: var(--jtb-faq-shadow-hover);
}

.jtb-faq__item[open] .jtb-faq__question {
  background: var(--jtb-faq-bg-soft);
  color: #111827;
}

.jtb-faq__question-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.jtb-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  color: var(--generate-primary-color, #ff6210);
  background: rgba(255, 98, 16, 0.1);
  transition: transform 0.2s ease;
}

.jtb-faq__item[open] .jtb-faq__icon {
  transform: rotate(180deg);
}

.jtb-faq__answer {
  padding: 4px 18px 18px;
  color: var(--jtb-faq-text);
  overflow-wrap: anywhere;
}

.jtb-faq__answer > :first-child {
  margin-top: 0;
}

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

.jtb-faq__answer p,
.jtb-faq__answer li {
  line-height: 1.7;
}

.jtb-faq__answer ul,
.jtb-faq__answer ol {
  padding-left: 1.2rem;
}

.jtb-faq__empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--jtb-faq-border-strong);
  border-radius: 14px;
  background: var(--jtb-faq-bg-soft);
  color: #8a4b2b;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 781px) {
  .jtb-faq__header {
    margin-bottom: 12px;
  }

  .jtb-faq__title {
    font-size: 23px;
  }

  .jtb-faq__subtitle {
    font-size: 14px;
  }

  .jtb-faq__question {
    padding: 14px;
    font-size: 15px;
  }

  .jtb-faq__answer {
    padding: 2px 14px 14px;
    font-size: 14px;
  }

  .jtb-faq__icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}
