/* Behaviour-level styles shared by every page (site, checkout, admin). Page design lives in site.css. */

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Half-page preview with a fade into the locked remainder */
.dm-preview {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}
.dm-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.dm-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
}
.dm-preview__lock {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(29, 27, 34, 0.88);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.dm-preview__lock svg { width: 14px; height: 14px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
