/* The preview uses the storefront hero's full canvas dimensions, even beside the admin sidebar. */
.hero-button-field { min-width: 0; }
.hero-button-label-field { display: flex; align-items: stretch; }
.hero-button-label-field .field { min-width: 0; flex: 1; border-radius: 14px 0 0 14px; }
.hero-button-color-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 0 0 56px; border: 1px solid var(--line); border-left: 0; border-radius: 0 14px 14px 0; background: #f4f6f2; color: var(--green); cursor: pointer; }
.hero-button-color-toggle:hover,.hero-button-color-toggle[aria-expanded="true"] { background: #e5ede4; }
.hero-button-color-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hero-button-color-toggle svg { width: 20px; height: 20px; }
.hero-button-color-toggle span { width: 12px; height: 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 50%; }
.hero-button-options { display: grid; gap: 9px; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; }
.hero-button-options label { margin: 0; font-size: .78rem; }
.hero-button-options .field { font-size: .8rem; }
.hero-button-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.hero-button-colors label { display: grid; gap: 7px; }
.hero-button-colors input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.hero-button-opacity { display: flex; justify-content: space-between; align-items: center; }
.hero-button-opacity output { color: var(--green); font-variant-numeric: tabular-nums; }
.hero-button-options input[type="range"] { width: 100%; margin: 3px 0; accent-color: var(--green); }
.hero-button-options small { font-size: .72rem; }
.settings-form .form-group.full { min-width: 0; }
.hero-preview-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}
.hero-preview-hint { display: block; margin-top: 5px; }
.hero-preview-scroll .hero-image-preview {
  flex: none;
  max-width: none;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
}
.hero-preview-scroll .hero-image-preview::after {
  background-image: linear-gradient(0deg, rgba(18,25,21,.88), rgba(18,25,21,.12) 72%),
    linear-gradient(90deg, rgba(72,98,82,.3), transparent);
}
.hero-preview-scroll .admin-preview-content h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(45.12px, 6vw, 80.46px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-preview-scroll .admin-preview-copy {
  max-width: min(680px, 50%);
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(14.74px, 1.75vw, 17.15px);
  font-weight: 300;
  line-height: 1.55;
}
.hero-preview-scroll .admin-preview-eyebrow {
  margin: 0;
  padding: 7px 14px;
  font-size: 10.23px;
  font-weight: 600;
  letter-spacing: .14em;
}
.hero-preview-scroll .admin-preview-actions { gap: 10px; }
.hero-preview-scroll .admin-preview-actions span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  font-size: 10.83px;
  font-weight: 600;
  letter-spacing: .1em;
}
@media (max-width: 700px) {
  .hero-preview-scroll .hero-image-preview { border-radius: 0; }
  .hero-preview-scroll .hero-image-preview::after {
    background-image: linear-gradient(0deg, rgba(25,29,27,.92), rgba(25,29,27,.08) 72%);
  }
  .hero-preview-scroll .admin-preview-content h3 {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
    text-transform: none;
  }
  .hero-preview-scroll .admin-preview-copy { font-size: 14.08px; white-space: normal; }
}

/* The shared switcher shows the storefront's 390px phone canvas at any admin viewport width. */
.home-editor-mobile .hero-preview-scroll .hero-image-preview {
  height: 400px;
  min-height: 400px;
  border-radius: 0;
}
.home-editor-mobile .hero-preview-scroll .hero-image-preview::after {
  background-image: linear-gradient(0deg, rgba(25,29,27,.92), rgba(25,29,27,.08) 72%);
}
.home-editor-mobile .hero-image-preview .admin-preview-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
}
.home-editor-mobile .hero-image-preview [data-hero-drag] {
  position: static;
  left: auto;
  top: auto;
  max-width: 100%;
  touch-action: auto;
  cursor: default;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-eyebrow {
  gap: 6px;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffdad9;
  font-size: 10.08px;
  text-transform: uppercase;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-eyebrow:not([hidden])::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffdad9;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-content h3 {
  margin: 0 0 5px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-copy {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 330px;
  margin: 0 0 17px;
  font-size: 14.08px;
  line-height: 1.5;
  white-space: normal;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-actions {
  flex-wrap: nowrap;
  width: 100%;
  gap: 8px;
  overflow-x: auto;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-actions span {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  font-size: 10.72px;
  letter-spacing: .06em;
}
.home-editor-mobile .hero-preview-scroll .admin-preview-glass,
.home-editor-mobile .hero-preview-scroll .admin-preview-rose {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(35,38,36,.65);
  color: white;
}
