.faq_page {
  /*  background-color: rgba(255,255,255,1); */
  width: auto;
  height: auto;
  /* white-space:nowrap; */
  --web-view-name: Ribblr - Help center;
  --web-view-id: Ribblr - Help center;
  --web-scale-on-resize: true;
  --web-enable-deep-linking: true;
  /* font-family: 'Raleway', sans-serif;
  font-size: 0.75em;
  font-feature-settings: "lnum"; */
  margin: 0 auto;
  overflow: hidden;
}

.faq-categories {
  margin: 12px auto;
  max-width: 100%;
  display: flex;
  grid-template-areas:
    "general epattern"
    "myshop ribbuild";
  grid-template-columns: 50% 50%;
  background: var(--White);
  border-radius: 24px;
  padding: 24px;
  gap: 24px;
  flex-direction: column;
}

.category {
  padding: 24px;
    /* width: 100%; */
    /* box-shadow: var(--box-shadow-img); */
    border-radius: 24px;
    background: var(--background);
    /* margin: 0.5em; */
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category span {
      /* display: block; */
    /* margin: auto; */
    /* top: 75px; */
    /* position: relative; */
    /* transform: translateY(-50%); */
    color: var(--textMain);
    /* line-height: 20px; */
    font-weight: var(--fontweight_heavy);
    font-size: var(--font_title);
}

.category-about {
  font-size: var(--font_main);
  font-weight: var(--fontweight_main);
  margin-left:26px;
  color: var(--textSecondary);
  font-family: var(--fontInter);
  line-height: 24px;
  white-space:pre-line;
}

sl-input#searchBar {
  width: 520px;
}

.title_header {
  width:fit-content;
  max-width:100%;
  margin:auto;
}
.manual_link {
      /* font-size: var(--font_main); */
    /* font-weight: var(--fontweight_500); */
    color: var(--textSecondary);
    /* line-height: 24px; */
    /* position: absolute; */
    /* bottom: 10px; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: max-content;
    padding: 10px 18px;
    background: var(--menu);
    border-radius: 9999px;
    /* box-sizing: border-box; */
    /* height: 36px; */
    /* display: flex
; */
    /* align-items: center; */
    margin: 12px 24px;
}

.category svg {
  fill: var(--textMain);
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin: 0px 3px 2px 0px;
}

/* path */
.path_divider {
  margin-left: 6px;
  margin-right:3px;
  vertical-align: middle;
}
.path_menu {
  margin:10px;
  line-height: 20px;
  font-size: var(--font_main);
  font-family: var(--fontInter);
  color:var(--textSecondary);
}

.path_item_last {
  font-weight: var(--fontweight_heavy);
  color: var(--Purple);
}

#btnSearch {
  cursor: pointer;
}

.title-helpcenter {
    text-align: center;
    font-weight: var(--fontweight_heavy);
    font-family: var(--fontInter);
}

.faq_container {
  display: flex;
  gap:16px;
  margin-bottom: 40px;
}

.faq_menu {
  flex: 1;
  z-index: 2; /* make sure it floats above gifs */
  background: var(--White);
  padding: 24px;
  border-radius: 24px;
  gap: 32px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

li.category-nav-item.selected {
  /* font-weight: 600; */
  color:var(--Purple);
  font-weight:var(--fontweight_500);
}

.category-nav span {
  font-size: var(--font_title);
  font-weight: var(--fontweight_heavy);
  line-height: 20px;
  color: var(--textMain);
}

.category-nav span,
.category-nav span,
.category-nav li,
.category-nav li {
  transition: var(--transition);
}


.category-nav-title.selected {
  /* padding-left: 5px; */
  /* border-left: 3px solid var(--color_ribblr); */
  color: var(--Purple);
}

ul.category-nav-list {
  list-style: none;
  padding-left: 20px;
  /*  border-left: 3px solid var(--color_ribblr); */
  margin-left: 2px;
}

li.category-nav-item {
  margin: 10px 0;
  font-size: var(--font_main);
}

.faq_center {
  flex: 4;
  background: var(--White);
  padding: 16px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: calc(100vw - 32px);
}

.stitch-tutorials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stitch-subtitle {
  color: var(--textSecondary);
  font-size: var(--font_main);
  font-family: var(--fontInter);
  margin-top: -8px;
}

.stitch-craft-bar {
  background: var(--background);
  border-radius: 20px;
  padding: 12px 16px;
}

.stitch-craft-bar .craft {
  border: 1px solid transparent;
  background: var(--White);
}

.stitch-craft-bar .craft div {
  font-size: 12px;
  font-family: var(--fontInter);
  color: var(--textSecondary);
}

.stitch-craft-bar .craft.selected {
  border-color: var(--Purple);
  box-shadow: var(--box-shadow-img);
}

.stitch-craft-bar .craft.selected div {
  color: var(--Purple);
}

.stitch-craft-bar .craft:focus-visible {
  outline: 2px solid var(--Purple);
  outline-offset: 2px;
}

.stitch-craft-bar .craft svg {
  color: var(--textMain);
}

.stitch-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.stitch-view-toggle {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 9999px;
  background: var(--background);
}

.stitch-view-btn {
  border: none;
  background: transparent;
  color: var(--textSecondary);
  font-size: var(--font_main);
  font-family: var(--fontInter);
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.stitch-view-btn.is-active {
  background: var(--White);
  color: var(--textMain);
}

.stitch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.stitch-search-row {
  grid-column: 1;
  grid-row: 1;
}

.stitch-search-row .searchbar {
  width: 100%;
  max-width: 420px;
}

.stitch-feed {
  border-radius: 24px;
  height: var(--stitch-feed-height, 70vh);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-card {
  background: var(--background);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(var(--stitch-feed-height, 70vh) - 24px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}


.stitch-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.stitch-name {
  font-size: var(--font_title);
  font-weight: var(--fontweight_heavy);
  color: var(--textMain);
}

.stitch-short {
  font-size: var(--font_large);
  font-weight: var(--fontweight_500);
  color: var(--Purple);
  background: rgba(206, 178, 255, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
}

.stitch-desc {
  font-size: var(--font_main);
  color: var(--textSecondary);
  font-family: var(--fontInter);
  line-height: 22px;
}

.stitch-media {
  background: #0b0b0b;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.stitch-media video {
  width: 100%;
  height: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
}

.stitch-placeholder {
  color: var(--Purple);
  font-size: var(--font_large);
  text-align: center;
  padding: 16px;
  font-weight:var(--fontweight_500);
  font-family: var(--fontInter);
}

.stitch-index {
  background: var(--background);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--stitch-feed-height, 70vh);
  grid-column: 2;
  grid-row: 1 / span 2;
}

.stitch-index-title {
  font-size: var(--font_title);
  font-weight: var(--fontweight_heavy);
  color: var(--textMain);
}

.stitch-index-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stitch-index-letter {
  border: 1px solid var(--menu);
  background: var(--White);
  color: var(--textSecondary);
  padding: 4px 8px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: var(--fontInter);
  font-size: 12px;
  transition: var(--transition);
}

.stitch-index-letter:hover {
  border-color: var(--Purple);
  color: var(--Purple);
}

.stitch-index-list {
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-index-group h3 {
  font-size: var(--font_large);
  color: var(--textMain);
  margin: 8px 0;
  font-family: var(--fontInter);
}

.stitch-index-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: -webkit-fill-available;
  text-align: left;
  border: none;
  background: var(--White);
  padding: 10px 12px;
  border-radius: 14px;
  margin:12px 0;
  cursor: pointer;
  font-family: var(--fontInter);
  font-size: var(--font_main);
  color: var(--textMain);
  transition: var(--transition);
  text-decoration: none;
}

.stitch-index-item span {
  color: var(--textSecondary);
  font-size: var(--font_second);
}

.stitch-index-item:hover {
  opacity:var(--opacityHover);
}

.stitch-empty {
  display: none;
  background: var(--background);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  color: var(--textSecondary);
  font-size: var(--font_main);
  font-family: var(--fontInter);
}

.stitch-empty.is-visible {
  display: block;
}

.sub_cat_list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sub-main-list {display: flex;flex-direction: column;gap: 12px;border-bottom: 1px solid var(--menu);padding-bottom: 20px;}

.question-main-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

ul.sub_cat_list > :last-child {
  border: none;
}

.question-main-item p{
  font-size: var(--font_large);
  color: var(--textSecondary);
  line-height: 22px;
  font-family:var(--fontInter);
}

.question-title {
  display:flex;
  gap:6px;
  width:fit-content;
  max-width:100%;
  align-items: center;
}

.path_search::after {
  content: " \276F";
  font-size: 0.9em;
}

.show_all_questions {
  font-size: var(--font_large);
  font-weight: var(--fontweight_heavy);
  color: var(--Purple);
  line-height: 24px;
  font-family: var(--fontInter);
}

.main_title h1 {font-size: var(--font_header);color: var(--textMain);line-height: 30px; font-weight:var(--fontweight_heavy);}

.question_title h1 {
      /* padding: 3px 6px; */
    /* background: rgb(191 153 255 / 67%); */
    border-radius: 7.5px 2px;
    /* color: var(--color1); */
    /* width: max-content; */
    font-size: var(--font_header);
    /* max-width: 95%; */
    font-weight: var(--fontweight_heavy);
}

.main_title {
  font-size: var(--font_header); /* because of h1*/
  font-weight: var(--fontweight_heavy);
  color: var(--color_ribblr);
}

.question_title {
  font-size: var(--font_second); /* because of h1*/
  width: 90%;
}

.sub-main-title h2 {
  font-weight: var(--fontweight_heavy);
  font-size: var(--font_title);
  line-height: 20px;
}
.sub-main-title,
.path_item {
  transition: var(--transition);
}

.questions_list {
  font-size: var(--font_second);
  list-style: none;
}

.answer_container {
  display: flex;
  flex-direction: column;
}

.answer_main {
  flex: 2;
  font-size: var(--font_main);
  white-space: pre-line;
  text-align: justify;
  max-width: 700px;
  font-family: var(--fontInter);
}

.answer_main a {
  text-decoration: underline;
}

.image_main {
  flex: 3;
}

#ytplayer {
  width: 400px;
  height: 225px;
  display: block;
  margin: 10px 0;
  border-radius: 16px;
  box-shadow: var(--box-shadow-img);
}

.image_main img {
  width: 80%;
  display: block;
  margin: 10px 0;
  border-radius: 16px;
  box-shadow: var(--box-shadow-img);
  max-width: 350px;
}

.image_main_empty {
  flex: 0 !important;
}

.special_text {
  font-size: var(--font_main) !important;
    background: rgba(206, 178, 255, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
}

.questions_list {
  gap: 20px;
  display: flex
;
  flex-direction: column;
}

table td {
  border-bottom: 1px solid #ccc;
  padding: 5px;
}

.search_result {
  color: var(--color1);
}

.no_results {
  font-size: var(--font_large);
}

.search_location {
  display: block;
  font-size: var(--font_second);
  color: var(--color2);
}

.nav_close {
  display: none;
}
/*----------------------------*/
.wait4it {
  position: relative;
  margin: auto;
  height: 60px;
  width: 300px;
  text-align: center;
  background: var(--background);
  border-radius: 10px;
  z-index: 10099; /* above overlay 10002 */
  align-items: center;
    padding: 16px;
    justify-content: center;
    gap: 16px;
    flex-direction: column;
}
.wait4it svg {
  width: 30px;
  height: 30px;
  transform: rotateY(-180deg) rotateZ(-90deg);
}
.wait4it svg circle {
  stroke-dasharray: 113px;
  stroke-dashoffset: 0px;
  stroke-linecap: round;
  stroke-width: 3px;
  stroke: var(--Purple);
  fill: none;
  animation: countdown 10s linear infinite forwards;
}

@keyframes countdown {
  from {
    stroke-dashoffset: 0px;
  }
  to {
    stroke-dashoffset: 113px;
  }
}

div#my-shop svg {
  fill: none;
}

.title_header {
  background: linear-gradient(90.92deg, #B69CEA -8.14%, #9C76EB -8.13%, #E542FF 99.74%, #F2377A 114.68%);
  width: calc(100% - 112px);
  border-radius: 24px;
  padding: 44px 56px;
  color: var(--White-500);
}

h1#faqtitle {
  font-size: var(--font_about_title);
  font-weight: var(--fontweight_500);
  text-align: center;
}



@media screen and (max-width: 767px) and (max-aspect-ratio: 119/90) {
  /* portrait */

  .title_header {
    width: calc(100% - 32px);
    padding:16px;
  }

  h1#faqtitle {
    font-size:var(--font_header);
  }

  #ytplayer {
    width: 320px;
    height: 180px;
    margin: 20px auto;
  }
}

@media screen and (max-width: 767px) and (min-aspect-ratio: 119/90) {
  /* landscape */
  #ytplayer {
    width: 320px;
    height: 180px;
    margin: 20px auto;
  }
}

@media screen and (max-width: 767px) {
  .stitch-controls {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .stitch-view-toggle {
    width: fit-content;
    align-self: center;
  }

  .stitch-feed,
  .stitch-index {
    height: 60vh;
  }
}

@media screen and (max-width: 1024px) {
  .faq_menu {
    display:none;
   /* position: absolute;
    background: var(--White);
    padding: 16px;
    border-radius: 24px;
    left: -12em;
    margin: 0;
    width: 10em;
    border: 1px solid var(--background); */
  }

  .nav_close {
    position: absolute;
    display: block;
    right: -15px;
    top: -10px;
    z-index: 3;
    font-size: 2em;
    font-weight: 600;
    width: 20px;
    padding: 0px 6px 2px 6px;
    text-align: center;
    cursor: pointer;
    background: var(--background);
    border-radius: 20px;
    box-shadow: var(--box-shadow-img);
    transition: all 0.2s ease-in-out;
    fill: var(--textSupport);
    width: 18px;
    border: 1px solid var(--White);
    height: 30px;
  }

  .image_main_empty {
    flex: 0;
  }

  .stitch-layout {
    grid-template-columns: 1fr;
  }

  .stitch-search-row,
  .stitch-feed,
  .stitch-index {
    grid-column: 1;
    grid-row: auto;
  }

  .stitch-layout[data-view="feed"] .stitch-index {
    display: none;
  }

  .stitch-layout[data-view="index"] .stitch-feed {
    display: none;
  }

  .stitch-feed,
  .stitch-index {
    height: 65vh;
  }
}

@media screen and (min-width: 1200px)  {
    .image_main {
        flex: 2;
    }
}

@media only screen and (max-width: 1024px) {
  .Menucraft_Class {
    display: none; /*hide this just in case people pull to refresh */
  }
}

/*Bigger screens*/
@media screen and (min-width: 1024px) {
  .faq-categories {
    display: grid;
    gap: 16px;
  }

  .faq_center {
    padding: 24px;
  }
}
