/* Pick a style for your site — sample page and option groups. */

.styles-page { padding-bottom: 2.5rem; }
.styles-intro { max-width: 42rem; }
.styles-intro p { color: var(--ink-soft, #3c4a55); }
.styles-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}
.styles-options {
  background: var(--paper, #fffdf8);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 14px;
  padding: 1rem 1rem 1.15rem;
}
.styles-options h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.sp-group { margin: 0 0 1rem; }
.sp-group:last-child { margin-bottom: 0; }
.sp-group h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c6973);
}
.sp-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sp-btns .on-btn { font-size: 0.86rem; }
.styles-hours-meta {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.styles-preview-col { min-width: 0; }
.styles-preview-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c6973);
}
.styles-sample {
  position: relative;
  background-color: var(--cream, #f4efe6);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow, 0 10px 30px rgba(21, 32, 43, 0.08));
}
.styles-sample::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.styles-sample.sb-bg-plain { background-color: var(--cream, #f4efe6); }
.styles-sample.sb-bg-mustang { background-color: #f3efe6; }
.styles-sample.sb-bg-mustang::before {
  background: url("/assets/preview/bg-a-mustang.webp") no-repeat right 2% top 0.6rem;
  background-size: min(70%, 480px) auto;
  opacity: 0.22;
}
.styles-sample.sb-bg-pattern { background-color: #f6f1e6; }
.styles-sample.sb-bg-pattern::before {
  background-image: url("/assets/preview/bg-b-pattern.svg");
  background-repeat: repeat;
  background-size: 120px 120px;
  opacity: 0.28;
}
.styles-sample .on-frame,
.styles-sample-body { position: relative; z-index: 1; }
.styles-sample .on-frame {
  border: 0;
  border-bottom: 1px solid var(--line, #e0d6c6);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.styles-sample-body {
  padding: 1.1rem 1.15rem 1.35rem;
}
.styles-sample-body h2 { margin: 0 0 0.45rem; font-size: 1.35rem; }
.styles-sample-body > p { margin: 0 0 1rem; color: var(--ink-soft, #3c4a55); max-width: 40rem; }

.styles-sample .preview-form-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  margin: 0 0 1.15rem;
}
.styles-sample[data-cards="stacked"] .preview-form-cards {
  grid-template-columns: 1fr;
}
.styles-sample .preview-form-card {
  margin: 0;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--paper, #fffdf8);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 14px;
  box-sizing: border-box;
}
.styles-sample .preview-form-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.styles-sample .preview-form-card p { margin: 0; color: var(--ink-soft, #3c4a55); font-size: 0.95rem; }

.sp-digital-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.55rem;
  min-height: 8.5rem;
}
.sp-digital[hidden] { display: none !important; }
.sp-digital { margin: 0; }
.sp-digital img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 43, 0.12);
  background: #fff;
}
/* Landscape wallet 1050x600 vs portrait phone 1080x1920 — the swap has to be obvious. */
.sp-digital--wallet {
  flex: 1 1 0;
  max-width: 16rem;
  aspect-ratio: 1050 / 600;
}
.sp-digital--phone {
  flex: 0 1 auto;
  width: 22%;
  max-width: 7.2rem;
  aspect-ratio: 1080 / 1920;
}
.sp-digital-wrap[data-card-mode="wallet"] { min-height: 6.5rem; }
.sp-digital-wrap[data-card-mode="phone"] { min-height: 12rem; }

/* On the style picker, slim the header on phones so the preview and options both fit. */
@media (max-width: 860px) {
  body.page-styles .header-card-strip,
  body.page-open-now-signs .header-card-strip,
  body.page-styles > .callbar,
  body.page-open-now-signs > .callbar,
  body.page-styles .header-social,
  body.page-open-now-signs .header-social { display: none; }
}

/* Mobile: compact sticky preview, options stay usable, no sideways scroll. */
@media (max-width: 860px) {
  .styles-page.page-head { padding-top: 0.7rem; padding-bottom: 0; }
  .styles-intro p { margin: 0 0 0.5rem; font-size: 0.95rem; }
  .styles-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.6rem;
  }
  .styles-preview-col {
    position: sticky;
    top: 4.5rem;
    z-index: 30;
    background: var(--cream, #f4efe6);
    padding-bottom: 0.35rem;
  }
  /* Keep the whole sample in view: no inner scroll that hides cards. */
  .styles-sample { max-height: none; overflow: visible; }
  .styles-sample .on-frame-nav { display: none; }
  .styles-sample .on-frame .brand-mark { height: 36px; }
  .styles-sample .callbar-actions { display: none; }
  .styles-sample-body { padding: 0.35rem 0.6rem 0.5rem; }
  .styles-sample-body h2 { font-size: 0.92rem; margin: 0 0 0.2rem; }
  .styles-sample-note { display: none; }
  .styles-sample .preview-form-cards { margin: 0 0 0.4rem; gap: 0.3rem; }
  .styles-sample .preview-form-card { padding: 0.3rem 0.4rem; }
  .styles-sample .preview-form-card h3 { font-size: 0.82rem; margin: 0; }
  .styles-sample .preview-form-card p { display: none; }
  .sp-digital-wrap { gap: 0.35rem; }
  .sp-digital--wallet { max-width: none; }
  .sp-digital--phone { width: 28%; max-width: 5.4rem; }
  .sp-digital-wrap[data-card-mode="wallet"] { min-height: 4.4rem; }
  .sp-digital-wrap[data-card-mode="phone"] { min-height: 8.6rem; }
  .styles-options { order: 2; }
}
@media (max-width: 412px) {
  .styles-page.page-head h1 { font-size: 1.45rem; margin-bottom: 0.3rem; }
}

/* Demos: Try our templates */
.try-templates {
  margin: 0 0 2rem;
  padding: 1.15rem 1.2rem 1.3rem;
  background: var(--paper, #fffdf8);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 14px;
}
.try-templates h2 { margin: 0 0 0.35rem; }
.try-templates > p { margin: 0 0 0.85rem; color: var(--ink-soft, #3c4a55); }
.try-templates-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.55rem 0.85rem;
}
.try-templates-list a {
  display: block;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink, #15202b);
  border: 1px solid var(--line, #e0d6c6);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  box-sizing: border-box;
}
.try-templates-list a:hover,
.try-templates-list a:focus-visible {
  border-color: var(--copper, #b85a28);
  color: var(--copper-dark, #8a3f1a);
}
