/*
  Preview shell (B04). Stands in for what theme/layout/theme.liquid renders inline in Shopify:
  Dawn root variables (default scheme, body scale 100) and the html/body rules, plus the
  --tec-brand-ratio that tec-brand writes in an inline style the preview CSP does not allow.
  Presentation only; no TEC component is restyled here.
*/
:root {
  --font-body-scale: 1;
  --font-heading-scale: 1;
  --color-foreground: 18, 18, 18;
  --color-background: 255, 255, 255;
  --gradient-background: #ffffff;
  --color-link: 18, 18, 18;
  --page-width: 120rem;
  --page-width-margin: 0rem;
  --buttons-radius: 0px;
  --inputs-radius: 0px;
  --focused-base-outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: calc(var(--font-body-scale) * 62.5%);
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0.06rem;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
  color: rgba(var(--color-foreground), 0.75);
  background-color: rgb(var(--color-background));
}

@media screen and (min-width: 750px) {
  body {
    font-size: 1.6rem;
  }
}

[data-tec-brand='LOG-02'] { --tec-brand-ratio: 1216 / 898; }
[data-tec-brand='LOG-03'] { --tec-brand-ratio: 1859 / 517; }
[data-tec-brand='LOG-04'] { --tec-brand-ratio: 1216 / 539; }

/* The E0 search and bag dialogs use the theme's .tec-commercial-dialog; only preview-only blocks live here. */
.tec-kit-review {
  padding-block: var(--tec-s8);
  font-family: var(--tec-font-sans);
  color: var(--tec-text-primary);
}

.tec-kit-review h2 {
  margin-block: 0 var(--tec-s3);
  font: 400 var(--tec-type-h3)/1.2 var(--tec-font-serif);
}

.tec-kit-review .tec-action {
  margin-inline-end: var(--tec-s5);
}

/* Reserve the first viewport while the E0 route mounts its local fixture. */
[data-preview-commerce] { min-block-size: calc(100vh - 72px); }
@media (min-width: 1024px) {
  [data-preview-commerce] { min-block-size: calc(100vh - 84px); }
}
