/* Shared preview navigation: back button (top-left) + template switcher (top-right). */
.preview-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #14101c14;
  background: #fffffff0;
  color: #242124;
  box-shadow: 0 4px 16px #0a061038;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  pointer-events: auto;
  transition:
    transform 0.2s,
    background 0.2s;
}
.preview-back svg {
  width: 20px;
  height: 20px;
}
.preview-back:hover {
  background: #fff;
  transform: scale(1.07);
}
.preview-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.preview-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 99px;
  background: #100c168c;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font:
    12px/1 Arial,
    Helvetica,
    sans-serif;
  box-shadow: 0 4px 16px #0a061038;
  pointer-events: auto;
}
.preview-switcher a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.preview-switcher a:hover {
  background: #ffffff29;
}
.preview-switcher a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.preview-switcher svg {
  width: 16px;
  height: 16px;
}
.preview-switcher span {
  min-width: 34px;
  text-align: center;
  letter-spacing: 0.6px;
  font-variant-numeric: tabular-nums;
}
.preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
/* Birthday has no header bar; pin the back button like the old template-home link. */
#birthday > .preview-back {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 6;
}
@media (max-width: 700px) {
  .preview-back {
    width: 38px;
    height: 38px;
  }
  .preview-switcher {
    padding: 4px 6px;
  }
  .preview-switcher a {
    width: 27px;
    height: 27px;
  }
  .preview-controls {
    gap: 7px;
  }
  #birthday > .preview-back {
    top: 16px;
    left: 16px;
  }
}
/* Inside the app (template editor preview or a recipient's gift link) the marketing navigation is hidden. */
html[data-embed] .preview-back,
html[data-embed] .preview-switcher {
  display: none !important;
}
