/* ==========================================================
   FAQ PAGE STYLES
   Uses global typography, reset, buttons, containers, header,
   footer, and basket styles from core.css and basket-new.css.
   ========================================================== */

/* ================= HEADER ================= */

.main-nav .nav-wrapper {
  border-bottom: 1px solid var(--border-color);
}

/* ================= FAQ HERO ================= */
.faq-hero {
  padding-top: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(27px, 4vw, 60px);
  text-align: center;
} 

/* ================= TAB AREA ================= */
.tab-area {
  padding: 0 0 8rem;
}

.tab-area .container {
  max-width: 1200px;
  margin: auto;
  padding-inline: 15px;
}

.tab-main {
  margin-top: 24px;
}

#tab-wrap {
  max-width: 1100px;
  margin: auto;
}

.skltbs-tab-group {
  max-width: 1050px;
  display: flex;
  justify-content: space-around;
  margin: auto;
  padding: 0;
  list-style: none;
}

.skltbs-tab-item {
  width: 100%;
  margin: 0 5px;
}

.skltbs-tab {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  background: #e5f6fc;
  cursor: pointer;
  width: 100%;
  height: 60px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 4px;
  position: relative;
  z-index: 3;
}

.skltbs-tab.active,
.skltbs-tab.skltbs-active,
.skltbs-tab-group__link.active,
.skltbs-tab-group__link.skltbs-active {
  font-weight: 700;
  z-index: 4;
}

.skltbs-tab-group li:nth-child(2) button {
  background: #fff5dd;
}

.skltbs-tab-group li:nth-child(3) button {
  background: #f1eaf3;
}

.skltbs-tab-group li:nth-child(4) button {
  background: #edf6e5;
}

.skltbs-panel-group {
  position: relative;
  z-index: 2;
  background: #fff;
}

.skltbs-panel {
  padding: 30px 0;
  border-radius: 10px;
  margin-top: -5px;
  position: relative;
  z-index: 0;
}

.skltbs-panel:focus,
.skltbs-panel:focus-visible {
  outline: 0;
}

.skltbs-panel1 {
  background: #5ccaeb29;
}

.skltbs-panel2 {
  background: #fdbf2b29;
}

.skltbs-panel3 {
  background: #a67ab629;
}

.skltbs-panel4 {
  background: #8fc85d29;
}

.wraper-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.tab-cnt-item {
  padding-right: 25px;
}

.tab-cnt-item3 {
  width: 100%;
  padding-right: 0;
}

.tab-cnt-item p {
  padding-right: 0;
}

.tab-cnt-item p a,
.accordion-content a {
  text-decoration: underline;
  color: inherit;
}

/* ================= FAQ ACCORDION ================= */
.faq {
  width: 100%;
}

.faq .container {
  max-width: 900px;
  margin: auto;
  padding-inline: 15px;
}

.accordion-main {
  width: 100%;
}

.accordion-container .accordion-title {
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #c7c5c5;
  padding-block: 18px;
  margin: 0;
}

.accordion-container .accordion-title::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 15px;
  height: 13px;
  transition: transform 0.3s;
  z-index: 2;
  background: url(/static/img/angle.webp) no-repeat center/contain;
  transform: translateY(-50%) rotate(0);
}

.accordion-container .accordion-title.open::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Category question rows in Product Information tab */
.sticker-right-item {
  display: flex;
  align-items: center;
  margin-top: 0;
  padding-right: 30px;
  position: relative;
  line-height: 1.25;
}

/* All FAQ questions use the same font, size and weight */
.sticker-item-inner h2,
.accordion details summary {
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #000;
}

.sticker-item-inner h2 {
  margin-left: 0;
}

.sticker-item-inner.icon {
  position: absolute;
  right: 20px;
}

.sticker-item-inner.icon img {
  opacity: 0;
}

.accordion-content {
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 30px;
}

.accordion details {
  border-bottom: 1px solid #c7c5c5;
  padding-block: 18px;
}

.accordion details summary {
  transition: margin 150ms ease-out;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 30px;
}

.accordion details summary::-webkit-details-marker {
  display: none;
}

.accordion details summary::after {
  content: "";
  position: absolute;
  right: 0;
  width: 15px;
  height: 13px;
  background: url(/static/img/angle.webp) no-repeat center/contain;
  transition: 0.3s;
  transform: rotate(0);
}

.accordion details[open] summary {
  margin-bottom: 15px;
  user-select: none;
}

.accordion details[open] summary::after {
  transform: rotate(180deg);
}

.accordion details p {
  position: relative;
}

.accordion details p[itemprop="text"] {
  padding-inline: 20px;
}

/* Removed blue answer line */
.accordion details p[itemprop="text"]::before {
  display: none;
  content: none;
}

.accordion-content img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1199px) {
  .skltbs-tab {
    font-size: 16px;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .skltbs-tab {
    font-size: 15px;
  }

  .skltbs-panel {
    padding: 25px 15px;
  }
}

@media screen and (max-width: 767px) {
  .faq-hero {
    padding-top: 32px;
    padding-bottom: 42px;
  }

  .faq-hero img {
    width: min(100%, 200px);
  }

  .accordion-container .accordion-title,
  .accordion details {
    padding-block: 15px;
  }

  .sticker-right-item {
    padding-right: 30px;
    margin-top: 0;
  }

  .sticker-item-inner h2,
  .accordion details summary {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  .accordion-content {
    text-align: left;
    padding-right: 23px;
  }

  .tab-cnt-item3 {
    width: 100%;
    padding-right: 0;
  }

  .skltbs-tab {
    font-size: 13px;
    margin-bottom: 10px;
    height: 47px;
    padding: 0 10px;
  }

  .tab-cnt-item p {
    text-align: left;
  }

  .tab-area {
    padding: 0 0 8rem;
  }

  .skltbs-panel {
    padding: 25px 0;
    margin-top: -12px;
    border-radius: 0;
  }

  .tab-item-wrapper button.skltbs-active,
  .tab-item-wrapper button.active {
    margin-top: -4px;
    height: 50px;
    transition: 0.3s;
  }

  .skltbs-tab-item {
    margin: 0 3px;
  }

  .skltbs-tab-item:first-child {
    margin-left: 0;
  }

  .skltbs-tab-item:last-child {
    margin-right: 0;
  }

  .tab-cnt-item {
    padding: 0 10px;
    margin-bottom: 16px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 575px) {
  .skltbs-tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .skltbs-tab-item {
    margin: 0;
  }

  .skltbs-tab {
    border-radius: 8px;
    margin-bottom: 0;
  }

  .skltbs-panel {
    margin-top: 12px;
    border-radius: 8px;
  }

  .sticker-item-inner h2,
  .accordion details summary {
    font-size: 15px;
  }
}

@media screen and (max-width: 969px) {
  .header-bottom-sm {
    border-bottom: 1px solid var(--border-color);
  }
}

/* ==========================================================
   NEW FAQ LAYOUT (faqn-*)
   Same look as the instructions-for-use page: picker tabs,
   pill toggle for products, beige question cards.
   Without JS every panel and question is shown.
   ========================================================== */

.faq-page {
  --faqn-radius: clamp(10px, 1.2vw, 18px);
}

/* ----- Hero + search ----- */
.faqn-hero {
  padding-top: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(20px, 3vw, 40px);
  text-align: center;
}

.faqn-hero__title {
  margin-bottom: clamp(6px, 0.8vw, 12px);
}

.faqn-hero__intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(14px, 1.11vw, 17px);
  color: var(--text-muted);
}

.faqn-search {
  display: none;
  max-width: 640px;
  margin: clamp(18px, 2vw, 28px) auto 0;
}

.faqn-js-on .faqn-search {
  display: block;
}

.faqn-search__input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 50px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-color);
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234d4d4d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px center;
  border: 2px solid var(--border-color);
  border-radius: var(--faqn-radius);
  outline: none;
  transition: border-color 0.2s ease;
}

.faqn-search__input:focus {
  border-color: var(--button-color);
}

/* ----- Main tabs (like the instructions-for-use picker) ----- */
.faqn-tabs {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 24px);
  max-width: 1100px;
  margin: 0 auto clamp(18px, 2.5vw, 40px);
}

.faqn--js .faqn-tabs {
  display: grid;
}

.faqn-tab {
  padding: clamp(12px, 1.4vw, 20px) clamp(8px, 0.8vw, 12px);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9375rem, 0.8333rem + 0.463vw, 1.25rem);
  color: var(--text-color);
  text-align: center;
  background: var(--color-white);
  border: 2px solid var(--border-color);
  border-radius: var(--faqn-radius);
  transition: border-color 0.2s ease, transform 0.3s ease-in-out;
}

.faqn-tab:hover {
  transform: translateY(-0.2rem);
}

.faqn-tab[aria-selected="true"] {
  border-color: var(--button-color);
}

.faqn-tab:focus-visible,
.faqn-seg__btn:focus-visible {
  outline: 2px solid var(--button-color);
  outline-offset: 3px;
}

.faqn-results {
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-muted);
}

.faqn-results:empty {
  display: none;
}

/* ----- Panels ----- */
.faqn-panel + .faqn-panel {
  margin-top: clamp(30px, 4vw, 60px);
}

.faqn--js .faqn-panel {
  display: none;
  margin-top: 0;
}

.faqn--js .faqn-panel.is-active {
  display: block;
}

.faqn-panel__title,
.faqn-sub__title {
  margin-bottom: 16px;
  font-size: clamp(20px, 1.8vw, 28px);
}

.faqn--js .faqn-panel__title,
.faqn--js .faqn-sub__title {
  display: none;
}

/* ----- Product pill toggle (like the instructions-for-use Clothing / Items toggle) ----- */
.faqn-seg {
  display: none;
  gap: 6px;
  max-width: 820px;
  margin: 0 auto clamp(24px, 3vw, 40px);
  padding: 6px;
  background: var(--accordiansandboxes-color);
  border-radius: clamp(6px, 1vw, 10px);
}

.faqn--js .faqn-seg {
  display: flex;
}

.faqn-seg__btn {
  flex: 1;
  padding: clamp(8px, 1vw, 12px) 10px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
  border-radius: clamp(4px, 1vw, 8px);
  transition: background 0.2s ease, color 0.2s ease;
}

.faqn-seg__btn[aria-selected="true"] {
  color: var(--color-white);
  background: var(--button-color);
}

/* Boxed variant: each option gets its own outline so they don't blend into the tray */
.faqn-seg--boxed .faqn-seg__btn {
  border: 1px solid var(--border-color);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faqn-seg--boxed .faqn-seg__btn:hover {
  border-color: var(--button-color);
}

/* selected: white card with red outline, like the instructions-for-use decor picker */
.faqn-seg--boxed .faqn-seg__btn[aria-selected="true"] {
  color: var(--button-color);
  background: var(--color-white);
  border-color: var(--button-color);
  box-shadow: inset 0 0 0 1px var(--button-color);
}

.faqn-sub + .faqn-sub {
  margin-top: clamp(24px, 3vw, 40px);
}

.faqn--js .faqn-sub {
  display: none;
  margin-top: 0;
}

.faqn--js .faqn-sub.is-active {
  display: block;
}

/* ----- Questions (like the instructions-for-use FAQ cards) ----- */
.faqn-qs {
  display: flex;
  gap: clamp(10px, 1.5vw, 24px);
}

.faqn-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 15px);
  min-width: 0;
}

.faqn-q {
  background-color: var(--accordiansandboxes-color);
  transition: transform 0.3s ease-in-out;
}

.faqn-q:hover {
  transform: translateY(-0.2rem);
}

.faqn-q summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(15px, 1.6vw, 24px) clamp(15px, 2vw, 30px);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.8333rem + 0.35vw, 1.125rem);
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.faqn-q summary::-webkit-details-marker {
  display: none;
}

.faqn-icon {
  flex: none;
  position: relative;
  width: 1rem;
  height: 1rem;
}

.faqn-icon::before,
.faqn-icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-black);
  transition: transform 0.3s var(--curve), opacity 0.3s ease;
}

.faqn-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faqn-icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.faqn-q[open] .faqn-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faqn-q > div {
  padding: 0 clamp(15px, 2vw, 30px) clamp(15px, 1.6vw, 24px);
}

.faqn-q > div p {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  color: var(--text-muted);
}

.faqn-q a {
  color: var(--button-color);
  text-decoration: underline;
}

/* payment logos in the "What payment methods" answer (same as the footer) */
.faqn-q .faqn-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

.faqn-q .faqn-pay img {
  width: auto;
  height: 19px;
}

/* ----- Search mode: show every matching question, hide the tabs ----- */
.faqn--searching .faqn-tabs,
.faqn--searching .faqn-seg {
  display: none;
}

.faqn--searching .faqn-panel,
.faqn--searching .faqn-sub,
.faqn--searching .faqn-panel__title,
.faqn--searching .faqn-sub__title {
  display: block;
}

.faqn--searching .faqn-panel + .faqn-panel,
.faqn--searching .faqn-sub + .faqn-sub {
  margin-top: clamp(24px, 3vw, 40px);
}

.faqn--searching .faqn-panel.is-empty,
.faqn--searching .faqn-sub.is-empty {
  display: none;
}

/* ----- Still need help? (dashed note like the instructions-for-use page,
   email + Copy button like the schools / nursery / PTA page) ----- */
.faqn-help__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(16px, 2vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(14px, 1.6vw, 24px) clamp(15px, 2vw, 32px);
  font-size: clamp(0.875rem, 0.8333rem + 0.1852vw, 1rem);
  background: var(--color-white);
  border: 2px dashed var(--information-color);
  border-radius: var(--faqn-radius);
}

.faqn-help__note p {
  flex: 1 1 320px;
}

.faqn-email {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 46px;
  padding: 6px 6px 6px 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.faqn-email a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faqn-email__copy {
  padding: 7px 16px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-white);
  background: #333333;
  border-radius: 6px;
  transition: background 0.3s;
}

.faqn-email__copy:hover {
  background: #000;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
  /* long labels wrap instead of overflowing */
  .faqn-seg__btn {
    white-space: normal;
  }

  .faqn-qs {
    flex-direction: column;
  }
}

/* Mobile: buttons stack in two columns like the instructions-for-use picker */
@media (max-width: 767px) {
  .faqn-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faqn--js .faqn-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* odd one out (Home Decor) gets its own full-width row */
  .faqn-seg__btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faqn-tab,
  .faqn-q,
  .faqn-icon::before,
  .faqn-icon::after {
    transition: none;
  }
}
