/* Ink Fortress public store preview — author, series, and book pages */

.if-store-preview {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper, #faf7f0);
  padding: 16px 18px 18px;
  margin-bottom: 18px;
}

.if-store-preview-pro {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.if-store-preview-pro.is-unlocked {
  border: 1px solid rgba(213, 170, 98, 0.4);
  background: linear-gradient(135deg, rgba(213, 170, 98, 0.12), rgba(164, 179, 198, 0.08));
}

.if-store-preview-pro.is-locked {
  border: 1px solid var(--rule);
  background: var(--surface, #fffaf3);
}

.if-store-preview-pro-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.if-store-preview-pro h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.if-store-preview-pro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
}

.if-store-preview-pro .wr-btn {
  margin-top: 12px;
}

.if-store-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.if-store-preview-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.if-store-preview-head h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
}

.if-store-preview-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3, #65594e);
  max-width: 52ch;
}

.if-store-preview-device {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
}

.if-store-preview-device button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.if-store-preview-device button.is-active {
  background: var(--ink, #251d16);
  color: var(--paper, #faf7f0);
}

.if-store-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.if-store-preview-tabs button {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.if-store-preview-tabs button.is-active {
  border-color: var(--ink, #251d16);
  background: var(--ink, #251d16);
  color: var(--paper, #faf7f0);
}

.if-store-preview-tabs button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.if-store-preview-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
}

.if-store-preview-picker select {
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.if-store-preview-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3, #65594e);
}

.if-store-preview-stage {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #e8e4dc;
  overflow: hidden;
  min-height: 320px;
}

.if-store-preview-stage.is-desktop {
  min-height: 420px;
}

.if-store-preview-stage.is-mobile {
  max-width: 390px;
  margin: 0 auto;
  min-height: 520px;
}

.if-store-preview-frame {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: none;
  background: #fff;
  display: block;
}

.if-store-preview-stage.is-desktop .if-store-preview-frame {
  min-height: 420px;
}

.if-store-preview-stage.is-mobile .if-store-preview-frame {
  min-height: 520px;
}

.if-store-preview-placeholder {
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: 24px;
  text-align: center;
  color: var(--ink-3, #65594e);
  font-size: 13px;
}

.if-store-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.if-store-preview-url {
  font-size: 12px;
  color: var(--ink-3, #65594e);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mc-store-shell .if-store-preview {
  margin-top: 0;
}

.cy-publish-pane .if-store-preview {
  margin-top: 14px;
}

.apm-books-subtab .if-store-preview {
  margin-top: 20px;
}
