/* eStoreware shared plugin FAQ pages
   Load after esw-site.css and estoreware-refresh.css. */

.esw-faq-page {
  --faq-navy: #081b38;
  --faq-blue: #0757b9;
  --faq-bright: #1682f4;
  --faq-cyan: #39bdf8;
  --faq-gold: #f3c84b;
  --faq-ink: #17233a;
  --faq-muted: #5d6d84;
  --faq-line: #dce6f2;
  --faq-soft: #f4f8fd;
  --faq-white: #fff;
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 72px;
  color: var(--faq-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}

.esw-faq-page,
.esw-faq-page * {
  box-sizing: border-box;
}

.esw-faq-page a {
  text-decoration: none;
}

.esw-faq-switcher {
  position: relative;
  z-index: 20;
  margin-bottom: 18px;
  border: 1px solid #193965;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(22, 130, 244, .28), transparent 35%),
    linear-gradient(135deg, #07172f, #0c2a54);
  box-shadow: 0 14px 34px rgba(8, 27, 56, .13);
}

.esw-faq-switcher__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
}

.esw-faq-switcher__home {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #08172d !important;
  background: var(--faq-gold);
  font-weight: 800;
}

.esw-faq-switcher__label {
  flex: 0 0 auto;
  color: #91bfee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.esw-faq-switcher__links {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.esw-faq-switcher__links > a,
.esw-faq-switcher__more > summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e8f2ff !important;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.esw-faq-switcher__links > a:hover,
.esw-faq-switcher__links > a:focus,
.esw-faq-switcher__more > summary:hover,
.esw-faq-switcher__more > summary:focus {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .09);
}

.esw-faq-switcher__links > a.is-active {
  border-color: #3698ff;
  color: #fff !important;
  background: #0757b9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.esw-faq-switcher__more {
  position: relative;
}

.esw-faq-switcher__more > summary {
  list-style: none;
}

.esw-faq-switcher__more > summary::-webkit-details-marker {
  display: none;
}

.esw-faq-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 225px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--faq-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(5, 22, 48, .22);
}

.esw-faq-switcher__menu a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #193452 !important;
  font-size: 14px;
  font-weight: 700;
}

.esw-faq-switcher__menu a:hover,
.esw-faq-switcher__menu a:focus {
  color: var(--faq-blue) !important;
  background: #eef6ff;
}

.esw-faq-hero {
  position: relative;
  overflow: hidden;
  padding: 50px clamp(24px, 5vw, 64px);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, .07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(56, 189, 248, .07) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 84% 18%, rgba(22, 130, 244, .43), transparent 34%),
    linear-gradient(135deg, #07172f, #0d2a54 62%, #0757b9);
  box-shadow: 0 20px 50px rgba(8, 27, 56, .16);
}

.esw-faq-hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(95, 190, 255, .23);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(95, 190, 255, .06),
    0 0 0 72px rgba(95, 190, 255, .035);
  content: "";
  pointer-events: none;
}

.esw-faq-hero p {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0;
  color: #dcecff;
  font-size: 18px;
}

.esw-faq-eyebrow {
  margin-bottom: 11px !important;
  color: #78c8ff !important;
  font-size: clamp(22px, 3.2vw, 38px) !important;
  font-weight: 850;
  letter-spacing: -.025em !important;
  line-height: 1.18;
  text-transform: none !important;
}

.esw-faq-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 18px 0 30px;
  padding: 10px;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(8, 27, 56, .08);
  scrollbar-width: thin;
}

.esw-faq-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 8px;
  color: #2b4667 !important;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.esw-faq-nav a:hover,
.esw-faq-nav a:focus {
  color: #fff !important;
  background: var(--faq-blue);
}

.esw-faq-section {
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--faq-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(8, 27, 56, .065);
  scroll-margin-top: 85px;
}

.esw-faq-section:nth-of-type(even) {
  background: linear-gradient(145deg, #fff, #f7fbff);
}

.esw-faq-section h2 {
  margin: 0 0 10px;
  color: var(--faq-navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
}

.esw-faq-section-intro {
  margin: 0 0 25px;
  color: var(--faq-muted);
  font-size: 16px;
}

.esw-faq-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 26px;
}

.esw-faq-images:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esw-faq-image-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 27, 56, .07);
}

.esw-faq-image-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 8px;
  background: #eef4fa;
  cursor: zoom-in;
}

.esw-faq-image-card figcaption {
  padding: 12px 14px 14px;
  color: #40536d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.esw-faq-item {
  overflow: hidden;
  margin: 10px 0;
  border: 1px solid var(--faq-line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.esw-faq-item:hover,
.esw-faq-item[open] {
  border-color: #9bc7f3;
  box-shadow: 0 7px 18px rgba(7, 87, 185, .08);
}

.esw-faq-item summary {
  position: relative;
  padding: 16px 52px 16px 18px;
  color: #193452;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}

.esw-faq-item summary::-webkit-details-marker {
  display: none;
}

.esw-faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--faq-blue);
  background: #eaf4ff;
  content: "+";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}

.esw-faq-item[open] summary {
  color: var(--faq-blue);
  background: #f5faff;
}

.esw-faq-item[open] summary::after {
  content: "−";
}

.esw-faq-answer {
  padding: 0 18px 18px;
  border-top: 1px solid #edf2f7;
  color: #4d5f76;
}

.esw-faq-answer p {
  margin: 15px 0 0;
}

.esw-faq-note {
  margin-top: 26px;
  padding: 17px 20px;
  border: 1px solid #f0d68b;
  border-left: 5px solid var(--faq-gold);
  border-radius: 10px;
  color: #5f4c18;
  background: #fffaf0;
}

.esw-faq-note p {
  margin: 0;
}

@media (max-width: 980px) {
  .esw-faq-switcher__inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .esw-faq-switcher__links {
    width: 100%;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .esw-faq-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .esw-faq-page {
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
    font-size: 15px;
  }

  .esw-faq-switcher__inner {
    gap: 8px;
    padding: 9px;
  }

  .esw-faq-switcher__home {
    width: 100%;
    justify-content: center;
  }

  .esw-faq-switcher__label {
    display: none;
  }

  .esw-faq-switcher__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .esw-faq-switcher__links > a,
  .esw-faq-switcher__more > summary {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .esw-faq-switcher__more {
    position: static;
  }

  .esw-faq-switcher__menu {
    top: auto;
    right: 9px;
    left: 9px;
    width: auto;
  }

  .esw-faq-hero {
    padding: 34px 22px;
    border-radius: 14px;
  }

  .esw-faq-hero p {
    font-size: 16px;
  }

  .esw-faq-nav {
    position: static;
    margin-bottom: 20px;
  }

  .esw-faq-section {
    margin-bottom: 18px;
    padding: 23px 17px;
    border-radius: 13px;
  }

  .esw-faq-images,
  .esw-faq-images:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }

  .esw-faq-image-card img {
    height: auto;
    max-height: 330px;
  }
}
