/* Pro store builder layout */
.st-body .st-main {
  padding-top: 4.25rem;
  padding-bottom: 2rem;
}
.st-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.st-toc a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  border-radius: 0.25rem;
}
.st-toc a:hover {
  background: rgba(37, 99, 235, 0.08);
}
.st-subh {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}
.st-colorgrid--3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 520px) {
  .st-colorgrid--3 {
    grid-template-columns: 1fr !important;
  }
}

.st-hero-h {
  padding: 0.5rem 0 1.25rem;
  max-width: 46rem;
}
.st-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin: 0 0 0.5rem;
}
.st-hero-h h1 {
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.st-hero-h > p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

.st-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .st-body .st-main {
    padding-top: 3.9rem;
  }
  .st-hero-h h1 {
    font-size: 1.45rem;
  }
  .st-hero-h > p {
    font-size: 0.9rem;
  }
  .st-builder {
    gap: 0.75rem;
  }
  .st-acc {
    padding: 0.85rem 0.85rem 0.95rem;
  }
  .st-previewbar {
    align-items: stretch;
  }
  .st-previewbar__actions {
    width: 100%;
  }
  .st-preview-modes {
    width: 100%;
  }
  .st-preview-modes .btn--outline {
    flex: 1 1 0;
    min-width: 0;
  }
  .st-iframe-wrap {
    height: min(62vh, 560px);
  }
}
@media (max-width: 480px) {
  .st-colorgrid {
    grid-template-columns: 1fr;
  }
  .st-row {
    flex-direction: column;
    align-items: stretch;
  }
  .st-file,
  .st-grow {
    width: 100%;
  }
  .st-sticky-actions .btn {
    width: 100%;
  }
  .st-iframe-wrap {
    min-height: 300px;
    height: min(56vh, 470px);
  }
}
@media (min-width: 1100px) {
  .st-builder {
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 0;
  }
  .st-builder__left {
    position: sticky;
    top: 3.5rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    margin-right: 0.5rem;
    padding-right: 1rem;
  }
}

.st-builder__right {
  min-width: 0;
  padding: 0 0 0 0.25rem;
}
@media (min-width: 1100px) {
  .st-builder__right {
    padding: 0 0 0 0.5rem;
  }
}

.st-previewbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}
.st-previewbar h2 {
  margin: 0 0 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.st-previewbar__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}
.st-previewbar__status {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.st-previewbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.st-preview-modes {
  display: inline-flex;
  gap: 0.4rem;
}
.st-preview-modes .btn--outline {
  min-width: 6rem;
}
.st-preview-modes .btn--outline.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.st-dot {
  color: #22c55e;
  font-size: 0.6rem;
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.st-form {
  padding-bottom: 2rem;
}
.st-acc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.st-acc__h {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 800;
  margin: 0 0 0.9rem;
}
.st-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  font: inherit;
  background: #fff;
}
.st-colorgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
}
.st-colorgrid .form-field {
  margin-bottom: 0;
}
.st-colorgrid input[type="color"] {
  width: 100%;
  height: 2.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  padding: 0.1rem;
  cursor: pointer;
}
.st-range {
  width: 100%;
  margin: 0.35rem 0 0.2rem;
  accent-color: #2563eb;
}
.st-range__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}
.st-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.st-grow {
  flex: 1 1 10rem;
  min-width: 0;
}
.st-file {
  max-width: 100%;
  font-size: 0.75rem;
}

.st-sticky-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
  position: sticky;
  bottom: 0.5rem;
  background: linear-gradient(180deg, #f8fafc00 0%, #f8fafc 20%);
  padding: 0.75rem 0 0.25rem;
}
@media (min-width: 500px) {
  .st-sticky-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.st-saved {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: #059669;
  margin: 0.4rem 0 0;
}

.st-iframe-wrap {
  height: min(72vh, 720px);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  box-shadow: 0 12px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.st-iframe-wrap.is-mobile .st-iframe {
  width: min(390px, 100%);
  border-inline: 1px solid #cbd5e1;
}
.st-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
  transition: opacity 0.2s;
}

.st-form .form-field label {
  font-size: 0.8rem;
}
.st-form .form-field small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Embedded in seller dashboard: full-width visual builder, no app chrome */
.st-body--embed .site-header,
.st-body--embed .site-footer,
.st-body--embed .st-hero-h {
  display: none !important;
}
.st-body--embed {
  min-height: 100vh;
  background: #f1f5f9;
}
.st-body--embed .st-main {
  padding-top: 0.5rem !important;
  padding-bottom: 0.75rem !important;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}
.st-body--embed .st-builder.container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
@media (min-width: 1100px) {
  .st-body--embed .st-builder__left {
    top: 0.5rem;
    max-height: calc(100vh - 1rem);
  }
}
.st-body--embed .st-iframe-wrap {
  min-height: 360px;
  height: min(80vh, 860px);
}
.st-body--embed .st-sticky-actions {
  background: linear-gradient(180deg, #f8fafc00 0%, #f1f5f9 18%);
}

/* Full dashboard layout: content sits under global header; no extra offset for a second top bar */
body.app-dashboard.app-dashboard--settings .st-main {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.st-body--embed .dashboard-layout {
  display: block;
}
.st-body--embed .dashboard-sidebar,
.st-body--embed .site-header--dashboard,
.st-body--embed .site-footer--dashboard,
.st-body--embed #st-sidebar-public {
  display: none !important;
}
.st-body--embed .dashboard-main,
.st-body--embed.app-dashboard .dashboard-main {
  padding: 0 !important;
  padding-inline-start: 0 !important;
  width: 100%;
  max-width: 100%;
}
.st-body--embed #sidebar-user-slot,
.st-body--embed #sidebar-logout-slot {
  display: none !important;
}
