/* A breadcrumb above a channel's page title (Widgets / this widget, Emails / this email) whose name
   opens a searchable list to switch (channel-ui.js), and the Customer emails page's heading. */
/* C: breadcrumb switcher above the page title */
.swc-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px -6px;
  font-size: var(--text-sm);
  color: var(--muted);
  position: relative;
}
.swc-crumbs a.swc-root {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color 0.15s var(--ease);
}
/* Pointing at a part of the breadcrumb turns it blue: no box around it. */
.swc-crumbs a.swc-root:hover {
  color: var(--blue);
}
html[data-theme="dark"] .swc-crumbs a.swc-root:hover {
  color: #8fb0ff;
}
.swc-sep {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  user-select: none;
  padding: 0 1px;
}
.swc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 6px 0 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}
.swc-btn:hover,
.swc-btn[aria-expanded="true"] {
  color: var(--blue);
}
html[data-theme="dark"] .swc-btn:hover,
html[data-theme="dark"] .swc-btn[aria-expanded="true"] {
  color: #8fb0ff;
}
.swc-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.swc-btn .swc-ud {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}
.swc-btn:hover .swc-ud,
.swc-btn[aria-expanded="true"] .swc-ud {
  color: inherit;
}
.swc-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--x, 60px);
  z-index: 40;
  width: 380px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow:
    0 12px 32px -8px rgb(0 0 0/0.45),
    0 2px 6px rgb(0 0 0/0.18);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.16s var(--ease),
    transform 0.18s var(--ease),
    visibility 0s linear 0.18s;
}
:root[data-theme="light"] .swc-pop {
  box-shadow:
    0 12px 32px -10px rgb(15 23 42/0.18),
    0 2px 6px rgb(15 23 42/0.06);
}
.swc-pop[data-open] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.16s var(--ease),
    transform 0.18s var(--ease),
    visibility 0s;
}
.swc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.swc-search svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.swc-search input {
  flex: 1;
  height: 24px;
  min-height: 0;
  box-shadow: none;
  border-radius: 0;
  appearance: none;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  outline: none;
  padding: 0;
}
.swc-search input::placeholder {
  color: var(--muted);
}
.swc-search kbd {
  font: inherit;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 17px;
}
.swc-list {
  list-style: none;
  margin: 0;
  padding: 2px 4px 4px;
  max-height: 280px;
  overflow: auto;
}
.swc-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--ink);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color 0.1s var(--ease);
}
.swc-opt[data-active] {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.swc-opt .swc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swc-badge {
  flex: none;
  font-size: 11px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}
.swc-check {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--blue);
  visibility: hidden;
}
.swc-opt[aria-selected="true"] .swc-check {
  visibility: visible;
}
.swc-none {
  padding: 10px 12px 12px;
  font-size: var(--text-sm);
  color: var(--muted);
}
.swc-foot {
  border-top: 1px solid var(--line);
  padding: 4px;
}
.swc-new {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition:
    background-color 0.1s var(--ease),
    color 0.1s var(--ease);
}
.swc-new svg {
  width: 14px;
  height: 14px;
  margin: 0 2px;
}
.swc-new:hover,
.swc-new[data-active] {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .swc-pop {
    transition: none;
  }
}
/* Unpublished widget changes: a label on that widget in the list. */
.swc-warn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  color: var(--warning);
  font-size: 11.5px;
  font-weight: 550;
}
.swc-warn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Customer emails: the page heading names it, so its block only keeps its button. */
.ed-head.is-actions:empty {
  display: none;
}
