/* ===================== Support ===================== */
/* The page is Polaris web components; this is only its FAQ accordion. */
.support-faq .faq {
  margin-top: 6px;
}

.support-faq details {
  border-top: 1px solid var(--line-soft);
}

.support-faq details:first-child {
  border-top: 0;
}

.support-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

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

.support-faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--faint);
  border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
  margin-right: 3px;
}

.support-faq details[open] summary::after {
  transform: rotate(-135deg);
}

.support-faq details p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 90%;
}

.preview-card {
  padding: 14px;
}

.preview-card h3 {
  font-size: 14px;
  font-weight: 760;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.split-layout > .section-card {
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.invoice-editor-shell {
  gap: 16px;
}

/* Group the editor accordions into a few labelled clusters (Design / Content /
   Line items / Layout) so the panel reads as 4 groups, not a wall of sections. */
.editor-group {
  display: grid;
  gap: 8px;
}

/* The invoice and packing editor sections: <details name="editor">, so the
   browser keeps one open at a time. */
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: var(--text);
}

.acc-header:focus-visible {
  outline: 2px solid var(--accent-weak);
  outline-offset: 4px;
  border-radius: 4px;
}

.acc-header::-webkit-details-marker {
  display: none;
}

.acc-body {
  margin-top: 12px;
}

/* One-row, horizontally scrollable layout filter (was a 3-row wrap). */
.preset-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.preset-filter::-webkit-scrollbar {
  display: none;
}

.preset-chip {
  flex: none;
  font: inherit;
  font-size: 11px;
  font-weight: 640;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Palette filter chips carry their own colour dot, so a merchant picks a
   palette by eye rather than by name. */

.preset-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* A palette the plan doesn't include still filters (so the locked cards can be
   found and their upgrade badge read), but reads as unavailable. */
.preset-chip.is-locked {
  opacity: 0.55;
}

/* The other filter rows hold a handful of chips and scroll sideways. The palette
   row holds 21, which is unusable as a scroll strip, so it wraps instead. */

.lib-preset-more {
  align-self: center;
  margin-top: 10px;
}

.preset-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--line-strong);
  border-color: var(--line-strong);
}

