/* ==========================================================================
   SUPPORT & POLICIES PAGE STYLES
   ========================================================================== */

/* ── Sidebar Navigation Tabs (Desktop Baseline) ── */
.support-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
}

.support-tab {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.support-tab .material-symbols-outlined {
  font-size: 1.25rem;
  opacity: 0.75;
  transition: color 0.18s ease, opacity 0.18s ease;
  flex-shrink: 0;
}

.support-tab .tab-label {
  line-height: 1.25;
  white-space: normal;
}

/* ── Hover: Purple Tint ── */
.support-tab:hover {
  background: rgba(79, 70, 229, 0.06);
  color: #4f46e5;
}

.support-tab:hover .material-symbols-outlined {
  color: #4f46e5;
  opacity: 1;
}

/* ── Active Tab State ── */
.support-tab.active {
  background: rgba(79, 70, 229, 0.09);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.18);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.support-tab.active .material-symbols-outlined {
  color: #4f46e5;
  opacity: 1;
  font-variation-settings: 'FILL' 1;
}

/* ── Content Typography (Desktop Baseline) ── */
.policy-section {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.policy-section.hidden {
  display: none;
}

.policy-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.875rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.policy-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 750;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.policy-section p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.875rem;
}

.policy-section strong {
  color: #0f172a;
  font-weight: 700;
}

.policy-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.policy-list.list-decimal {
  list-style-type: decimal;
}

.policy-list li {
  margin-bottom: 0.375rem;
}

/* Regular inline links */
.policy-section a:not(.cart-btn-glass) {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.policy-section a:not(.cart-btn-glass):hover {
  color: #4338ca;
}

.policy-section a.cart-btn-glass {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ── Policy Timestamp Pill ── */
.policy-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.policy-timestamp .material-symbols-outlined {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ── Help Center Search Input ── */
.support-search-input {
  outline: none !important;
  -webkit-appearance: none;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.support-search-input:focus {
  outline: none !important;
  border-color: #4f46e5 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   HELP CENTER — TOPIC ACCORDION (category cards → article list)
   ═══════════════════════════════════════════════════════════════════ */
.help-topics {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.help-topic-item {
  border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.7);
}

.help-topic-item:last-child {
  border-bottom: none;
}

.help-topic-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: background-color 0.2s ease;
}

.help-topic-trigger:hover {
  background: rgba(79, 70, 229, 0.04);
}

.help-topic-item.open .help-topic-trigger {
  background: rgba(79, 70, 229, 0.045);
}

.help-topic-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: rgba(79, 70, 229, 0.09);
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.25s ease;
}

.help-topic-icon .material-symbols-outlined {
  font-size: 1.375rem;
}

.help-topic-trigger:hover .help-topic-icon {
  transform: scale(1.07);
}

.help-topic-item.open .help-topic-icon {
  background: rgba(79, 70, 229, 0.16);
}

.help-topic-text {
  flex: 1;
  min-width: 0;
}

.help-topic-text h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0f172a;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.help-topic-text p {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.help-topic-chevron {
  font-size: 1.5rem !important;
  color: #94a3b8;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), color 0.2s ease;
  flex-shrink: 0;
}

.help-topic-trigger:hover .help-topic-chevron {
  color: #4f46e5;
}

.help-topic-item.open .help-topic-chevron {
  transform: rotate(180deg);
  color: #4f46e5;
}

.help-topic-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.help-topic-faqs {
  padding: 0 1.25rem 0.25rem;
  border-top: 0.0625rem solid rgba(226, 232, 240, 0.6);
}

/* Nested questions read one notch smaller than the corporate page originals,
   to keep a clear category → question → answer hierarchy. */
.help-topic-faqs .faq-trigger {
  padding: 0.875rem 0;
  font-size: 0.8125rem;
}

.help-topic-faqs .faq-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.help-topic-faqs .faq-icon .material-symbols-outlined {
  font-size: 0.875rem;
}

.help-topic-faqs .faq-body p,
.help-topic-faqs .faq-body ul {
  font-size: 0.8125rem;
}

#help-no-results {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
}

#help-no-results.hidden {
  display: none;
}

#help-no-results a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   FAQ ACCORDION — ported from the Corporate page for design consistency
   (identical look & feel; height is JS-driven here to fit variable-length
   answers instead of the corporate page's fixed max-height).
   ═══════════════════════════════════════════════════════════════════ */
.faq-item {
  border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.7);
  overflow: visible;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  text-align: left;
  gap: 1rem;
  transition: color 0.3s ease;
}

.faq-trigger:hover {
  color: #4f46e5;
}

.faq-trigger .faq-icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.25),
    0 0.125rem 0.25rem rgba(0, 0, 0, 0.18),
    0 0.25rem 0.75rem rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-trigger .faq-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100% 45% at 50% 0%,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.12) 45%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.faq-trigger .faq-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 30% at 50% 100%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.faq-trigger .faq-icon .material-symbols-outlined {
  font-size: 1rem;
  color: #4f46e5;
  position: relative;
  z-index: 2;
}

.faq-trigger:hover .faq-icon {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.35),
    0 0.25rem 0.5rem rgba(0, 0, 0, 0.20),
    0 0.5rem 1.25rem rgba(79, 70, 229, 0.18);
}

.faq-item.open .faq-trigger .faq-icon {
  background: rgba(255, 255, 255, 0.16);
  border: 0.15625rem solid rgba(79, 70, 229, 0.70);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.30),
    0 0.125rem 0.375rem rgba(0, 0, 0, 0.16),
    0 0.375rem 1rem rgba(79, 70, 229, 0.28);
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-body p,
.faq-body ul {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}

.faq-body ul {
  padding-left: 1.1rem;
  list-style: disc;
}

.faq-body li {
  margin-bottom: 0.3rem;
}

.faq-body strong {
  color: #0f172a;
  font-weight: 700;
}

.faq-body a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-body > *:last-child {
  margin-bottom: 0;
  padding-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS (Compact, Scaled Down & Balanced for Phones)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  /* Compact Sidebar Tabs */
  .support-nav-list {
    gap: 0.25rem;
  }

  .support-tab {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0.4rem 0.15rem;
    border-radius: 0.625rem;
    gap: 0.15rem;
    min-height: 2.85rem;
  }

  .support-tab .material-symbols-outlined {
    font-size: 1.05rem;
  }

  .support-tab .tab-label {
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Scaled Down Compact Content Typography */
  .policy-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .policy-subtitle {
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
  }

  .policy-section p {
    font-size: 0.72rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
  }

  .policy-list {
    padding-left: 0.95rem;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .policy-list li {
    margin-bottom: 0.25rem;
  }

  .policy-timestamp {
    font-size: 0.58rem;
    padding: 0.15rem 0.45rem;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
  }

  .policy-timestamp .material-symbols-outlined {
    font-size: 0.75rem;
  }

  /* ── Help Center: Topic Accordion (Compact) ── */
  .help-topics {
    border-radius: 1rem;
    margin-bottom: 1rem;
  }

  .help-topic-trigger {
    gap: 0.625rem;
    padding: 0.75rem 0.75rem;
  }

  .help-topic-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.625rem;
  }

  .help-topic-icon .material-symbols-outlined {
    font-size: 1.05rem;
  }

  .help-topic-text h4 {
    font-size: 0.72rem;
  }

  .help-topic-text p {
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .help-topic-faqs {
    padding: 0 0.75rem 0.15rem;
  }

  #help-no-results {
    font-size: 0.68rem;
    padding: 0.65rem 0.75rem;
  }

  /* ── FAQ Accordion (Compact) ── */
  .faq-trigger {
    padding: 0.85rem 0;
    font-size: 0.75rem;
    gap: 0.625rem;
  }

  .faq-trigger .faq-icon {
    width: 1.4rem;
    height: 1.4rem;
  }

  .faq-trigger .faq-icon .material-symbols-outlined {
    font-size: 0.8rem;
  }

  .faq-body p,
  .faq-body ul {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .faq-body > *:last-child {
    padding-bottom: 0.85rem;
  }

  .help-topic-faqs .faq-trigger {
    padding: 0.65rem 0;
    font-size: 0.7rem;
  }

  .help-topic-faqs .faq-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .help-topic-faqs .faq-icon .material-symbols-outlined {
    font-size: 0.7rem;
  }

  .help-topic-faqs .faq-body p,
  .help-topic-faqs .faq-body ul {
    font-size: 0.66rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE MENU DRAWER (LIQUID GLASS) — Matches other pages
   ═══════════════════════════════════════════════════════════════════ */
#mobile-menu {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  visibility: hidden; transition: visibility 0s linear 0.40s;
}
#mobile-menu.open { pointer-events: all; visibility: visible; transition-delay: 0s; }
#mobile-menu.closing { pointer-events: none; visibility: visible; transition-delay: 0s; }

#mobile-menu-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(0.25rem); -webkit-backdrop-filter: blur(0.25rem);
  opacity: 0; transition: opacity 0.40s cubic-bezier(0.25, 1, 0.3, 1);
}
#mobile-menu.open #mobile-menu-backdrop { opacity: 1; }
#mobile-menu.closing #mobile-menu-backdrop { opacity: 0; }

#mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 80%; max-width: 20rem;
  transform: translateX(100%); transition: transform 0.40s cubic-bezier(0.25, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.25rem) saturate(180%); -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border-left: 0.0625rem solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0.0625rem 0 0 rgba(255, 255, 255, 0.1), -0.25rem 0 2rem rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
#mobile-menu-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  pointer-events: none; z-index: 1;
}
#mobile-menu-panel::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
#mobile-menu-panel > * { position: relative; z-index: 2; }
#mobile-menu.open #mobile-menu-panel { transform: translateX(0); }
#mobile-menu.closing #mobile-menu-panel { transform: translateX(100%); }

/* Mobile Menu Links & Icons */
.mobile-nav-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0;
  font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.92);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s; text-decoration: none;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:active { color: #fff; }
.mobile-nav-link .mat-icon {
  font-size: 1.25rem; opacity: 0.7; font-family: 'Material Symbols Outlined';
  font-weight: 300; letter-spacing: normal; text-transform: none;
  white-space: nowrap; word-wrap: normal; font-feature-settings: 'liga';
}

/* Submenu Accordions */
.mobile-nav-group-trigger.mobile-nav-link {
  width: 100%; background: none; border: none; border-bottom: none;
  text-align: left; font-family: inherit; cursor: pointer;
}
.mobile-nav-group-label { flex: 1; }
.mobile-nav-chevron { font-size: 1.25rem !important; opacity: 0.6; transition: transform 0.25s ease; flex-shrink: 0; }
.mobile-nav-group.open .mobile-nav-chevron { transform: rotate(180deg); }

.mobile-nav-submenu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.mobile-nav-group.open .mobile-nav-submenu { grid-template-rows: 1fr; }
.mobile-nav-submenu-inner { overflow: hidden; min-height: 0; }

.mobile-nav-sublink {
  display: flex; flex-direction: column; gap: 0.125rem;
  padding: 0.625rem 0 0.625rem 2.4375rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s;
}
.mobile-nav-sublink:active { color: #fff; }
.mobile-nav-sublink-title { font-weight: 600; }
.mobile-nav-sublink-desc { font-size: 0.75rem; font-weight: 400; line-height: 1.4; color: rgba(255, 255, 255, 0.5); }
.mobile-nav-sublink--desc { padding-top: 0.6875rem; padding-bottom: 0.6875rem; }
.mobile-nav-sublink-section-heading {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.38);
  padding: 0.75rem 0 0.25rem 2.4375rem; font-family: "Outfit", sans-serif; margin: 0;
}
.mobile-nav-submenu-inner .mobile-nav-sublink-section-heading:first-child { padding-top: 0.375rem; }

/* Mobile Search Box */
.mobile-glow-search-wrap { position: relative; border-radius: 6.1875rem; }
.mobile-glow-search-wrap .mobile-glow-inner { position: relative; z-index: 1; border-radius: inherit; }
#mobile-menu-search {
  background: rgba(255, 255, 255, 0.12); border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 6.1875rem; padding: 0.625rem 1rem 0.625rem 2.5rem;
  color: #fff; font-size: 0.875rem; width: 100%; outline: none;
  transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease;
}
#mobile-menu-search::placeholder { color: rgba(255, 255, 255, 0.5); }
#mobile-menu-search:focus {
  border-color: transparent !important;
  box-shadow: 0 0 0 0.0625rem rgba(255, 255, 255, 0.3), 0 0 0.625rem 0.1875rem rgba(255, 255, 255, 0.25), 0 0 1.375rem 0.375rem rgba(70, 70, 175, 0.5);
}

#mobile-menu-panel div::-webkit-scrollbar { display: none; }
#mobile-menu-panel div { -ms-overflow-style: none; scrollbar-width: none; }


/* Ensure mobile menu sign-up button keeps its pill shape */
/* Ensure mobile menu and cart drawer buttons keep their pill shape */
#mobile-menu-panel .cart-btn-glass,
#cart-panel .cart-btn-glass {
  border-radius: 2rem !important;
}