/*
 * HD Door Designer — Architectural Mono design system
 * ------------------------------------------------------------------
 * Scoped under .hd-dd — no styles leak to or from the host theme.
 * Layout C: progress bar + back → stage canvas → step title →
 *           horizontal carousel tiles → sticky CTA → review list.
 * Typography inherited from theme. Tokens drive everything.
 *
 * Sections
 *   1. Token block
 *   2. App shell
 *   3. Progress bar + back button
 *   4. Stage area (door preview canvas)
 *   5. Step title
 *   6. Carousel + tiles
 *   7. CTA (continue button)
 *   8. Review summary list
 *   9. Enquiry form (carried + restyled)
 *  10. Success state
 *  11. Notice / loading states
 *  12. Honeypot
 *  13. Responsive
 */


/* ==========================================================================
   1. TOKEN BLOCK
   ========================================================================== */

.hd-dd {
  --ink:    #161616;
  --paper:  #fff;
  --line:   #e6e6e6;
  --muted:  #8a8e96;
  --stage:  #f3f3f1;
  --brand:  #1d4f3f;   /* TODO: replace with sampled Hertfordshire Doors accent */
  --radius: 6px;
  --gap:    16px;

  color: var(--ink);
  background: var(--paper);
  font-family: inherit;
  line-height: 1.45;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Force border-box across the whole scoped widget. The host theme (Thrive) resets
   box-sizing to content-box on our nodes via a higher-specificity rule — which made the
   app's horizontal padding ADD to its width:100% and overflow the viewport on phones.
   !important + the .hd-dd scope keeps our layout self-consistent without leaking out. */
.hd-dd,
.hd-dd *,
.hd-dd *::before,
.hd-dd *::after { box-sizing: border-box !important; }

.hd-dd [hidden] { display: none !important; }


/* ==========================================================================
   2. APP SHELL — Layout C wrapper
   ========================================================================== */

.hd-dd__app {
  width: 100%;
  max-width: 600px;        /* mobile / narrow — full-width up to a comfortable column */
  margin: 0 auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

.hd-dd__wizhead { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; }
.hd-dd__wizhead .hd-dd__progress { flex: 1; padding: 0; }
.hd-dd__body { display: flex; flex-direction: column; }


/* ==========================================================================
   3. PROGRESS BAR + BACK BUTTON
   ========================================================================== */

.hd-dd__progress {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px 8px;
}

.hd-dd__seg {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
}

.hd-dd__seg.is-on { background: var(--ink); }

.hd-dd__back {
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  padding: 0 6px 0 0;
}

.hd-dd__back:hover { opacity: .7; }


/* ==========================================================================
   4. STAGE AREA — door preview canvas
   ========================================================================== */

.hd-dd__stage {
  background: var(--stage);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
}

.hd-dd__canvas {
  width: 100%;
  height: auto;
  max-width: 360px;
  display: block;
}

/* Hero image shown on the opening screen before a door type is chosen. */
.hd-dd__hero {
  width: 100%;
  height: auto;
  max-width: 360px;
  display: block;
  border-radius: 4px;
}

/* Friendly one-liner above the first question. */
.hd-dd__intro {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 16px 16px 0;
}


/* ==========================================================================
   5. STEP TITLE
   ========================================================================== */

.hd-dd__steptitle {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 16px 16px 4px;
  letter-spacing: -.01em;
}

/* Plain-English explainer under the title — demystifies door jargon. */
.hd-dd__stephint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 16px 4px;
}

/* "‹ Change" link back to the group picker (Frame Design progressive disclosure). */
.hd-dd__change {
  display: block;
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  margin: 0 16px 6px;
  padding: 0;
}
.hd-dd__change:hover { text-decoration: underline; }


/* ==========================================================================
   6. CAROUSEL + TILES
   ========================================================================== */

/* A responsive wrapping grid — tiles fill the available width and wrap onto new
   rows as needed, so options are NEVER clipped on any screen size. */
.hd-dd__carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
  padding: 8px 16px 4px;
}

/* Door-design picker: roomier tiles so the whole design (and, on double doors, both
   leaves) reads clearly — no guessing from a category name. */
.hd-dd__carousel--doors {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Choice tile */
.hd-dd__tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-family: inherit;
  transition: box-shadow .15s, border-color .15s;
}

.hd-dd__tile:hover { border-color: var(--muted); }

.hd-dd__tile.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

/* A handle that doesn't come in the chosen finish — greyed, not selectable, with a note
   of the finishes it does come in. */
.hd-dd__tile.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
.hd-dd__tile.is-disabled .hd-dd__tile-media,
.hd-dd__tile.is-disabled .hd-dd__swatch { filter: grayscale(1); }
.hd-dd__tile.is-disabled:hover { border-color: var(--line); }

.hd-dd__tile-note {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
  font-style: italic;
}

/* Media element inside tile (image or video still) */
.hd-dd__tile-media {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--stage);
  display: block;
  margin-bottom: 6px;
}

/* Composited door tile (style picker): assemble layers placed absolutely as a % of the
   stage box, so the design — both leaves, apertures — shows without a per-tile canvas. */
.hd-dd__tile-media--door {
  position: relative;
  width: 100%;
  height: auto; /* override the base tile-media's fixed 90px so aspect-ratio sets the height */
  background: var(--stage);
  border-radius: 4px;
  margin-bottom: 6px;
  overflow: hidden;
}
.hd-dd__tile-media--door .hd-dd__layer {
  position: absolute;
  object-fit: fill;
  pointer-events: none;
}

/* Colour swatch (background applied by JS; no image) */
.hd-dd__swatch {
  width: 100%;
  height: 90px;
  border-radius: 4px;
  display: block;
  margin-bottom: 6px;
}

.hd-dd__tile-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

/* ---- Page-1 door-type chooser: richer tiles with a silhouette + description ---- */
.hd-dd__typegrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hd-dd__typetile { padding: 12px 10px 14px; }
/* The silhouettes are line drawings — sit them directly on the tile (no grey stage
   panel behind them, which otherwise reads as a box floating over the door frame). */
.hd-dd__typetile .hd-dd__tile-media { height: 132px; padding: 6px; background: transparent; border-radius: 0; }
.hd-dd__typetile .hd-dd__tile-label { color: var(--ink); font-weight: 600; font-size: 14px; }
.hd-dd__tile-desc { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 3px; }

/* Style-neutral door silhouettes (the type-chooser visuals). Tokenised so they track
   the brand + ink palette; no specific door style is implied. */
.hd-dd__sil { height: 100%; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.hd-dd__sil-frame { fill: #fff; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.hd-dd__sil-frame--slim { stroke-width: 2; }
.hd-dd__sil-panel { fill: none; stroke: #cfcfcf; stroke-width: 1.6; }
.hd-dd__sil-line { stroke: #cfcfcf; stroke-width: 1.6; }
.hd-dd__sil-split { fill: #eee; stroke: var(--ink); stroke-width: 2.2; }
.hd-dd__sil-glass { fill: #dbe7ee; stroke: #bcd0da; stroke-width: 1.6; }
.hd-dd__sil-mullion { stroke: #cfdde4; stroke-width: 1.4; }
.hd-dd__sil-kick { fill: #eef0f1; stroke: #cfcfcf; stroke-width: 1.4; }
.hd-dd__sil-handle { fill: var(--brand); }


/* ==========================================================================
   7. CTA — continue / proceed button
   ========================================================================== */

.hd-dd__cta {
  display: block;
  width: calc(100% - 32px);
  margin: 16px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s;
  text-align: center;
}

.hd-dd__cta:hover { opacity: .85; }
.hd-dd__cta:disabled { opacity: .45; cursor: default; }


/* ==========================================================================
   8. REVIEW SUMMARY LIST
   ========================================================================== */

.hd-dd__review {
  margin: 8px 16px 0;
}

/* One self-contained row per choice → an entry without an Edit button can't shift
   the columns (the cause of the earlier misaligned summary). */
.hd-dd__review-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.hd-dd__review-label {
  color: var(--muted);
  font-size: 13px;
}

.hd-dd__review-value {
  font-size: 13px;
  font-weight: 600;
}

/* Reassurance line above the review CTA — sits clear of the options table above it. */
.hd-dd__review-note {
  margin: 24px 16px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Preview-accuracy disclaimer — sets expectations that the rendered door is an
   impression, not an exact representation. */
.hd-dd__disclaimer {
  margin: 8px 16px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
  font-style: italic;
}

/* "Things changed since you saved this design" banner when a reload link is opened. */
.hd-dd__reload-note {
  position: relative;
  margin: 12px 16px 4px;
  padding: 12px 36px 12px 14px;
  border: 1px solid #e7d8a8;
  background: #fdf6e3;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.45;
  color: #5b4b16;
}
.hd-dd__reload-title { margin: 0 0 4px; font-weight: 600; }
.hd-dd__reload-list { margin: 4px 0; padding-left: 18px; }
.hd-dd__reload-list li { margin: 2px 0; }
.hd-dd__reload-foot { margin: 4px 0 0; }
.hd-dd__reload-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: #5b4b16;
  cursor: pointer;
  padding: 2px 4px;
}
.hd-dd__reload-close:hover { opacity: .7; }

/* Inline edit button next to each review row */
.hd-dd__edit {
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.hd-dd__edit:hover { text-decoration: underline; }


/* ==========================================================================
   9. ENQUIRY FORM  (carried from previous sheet, restyled to new tokens)
   ========================================================================== */

.hd-dd__form {
  margin: 10px 16px 16px;
  padding: calc(var(--gap) * 1.25);
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Reassurance copy: above the fields and below the submit button. */
.hd-dd__form-reassure {
  margin: 6px 16px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.hd-dd__form-trust {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.hd-dd__form-title {
  margin-top: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.hd-dd__form-row {
  display: block;
  margin-bottom: 14px;
}

.hd-dd__form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hd-dd__form-input {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.hd-dd__form-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.hd-dd__form-error {
  display: block;
  color: #b00020;
  font-size: 12px;
  min-height: 1em;
  margin-top: 3px;
}

.hd-dd__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
  line-height: 1.4;
}

.hd-dd__form-status {
  margin-top: 8px;
  min-height: 1.2em;
  color: var(--muted);
  font-size: 13px;
}

/* Form submit button — styled to match .hd-dd__cta */
.hd-dd__submit {
  display: inline-block;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .15s;
}

.hd-dd__submit:hover { opacity: .85; }
.hd-dd__submit:disabled { opacity: .45; cursor: default; }


/* ==========================================================================
   10. SUCCESS STATE
   ========================================================================== */

.hd-dd__success {
  padding: 24px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
}

/* Engaged post-submission screen: confirm, frame price, invite another design. */
.hd-dd__thanks { padding: 18px 16px; text-align: center; }
.hd-dd__thanks-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.hd-dd__thanks-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 auto 14px;
  max-width: 440px;
}
.hd-dd__thanks-price {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 auto 18px;
  max-width: 440px;
  padding: 10px 14px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hd-dd__thanks-again {
  display: inline-block;
  padding: 13px 24px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .15s;
}
.hd-dd__thanks-again:hover { opacity: .85; }
.hd-dd__thanks-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  margin: 10px auto 0;
  max-width: 440px;
}
.hd-dd__thanks-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px;
  text-decoration: underline;
}
.hd-dd__thanks-link:hover { opacity: .8; }


/* ==========================================================================
   11. NOTICE / LOADING STATES
   ========================================================================== */

.hd-dd__loading,
.hd-dd__notice {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}


/* ==========================================================================
   12. HONEYPOT — hidden from humans, visible to bots
   ========================================================================== */

.hd-dd__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ==========================================================================
   13. RESPONSIVE — laptop / desktop two-pane layout
   --------------------------------------------------------------------------
   At >=820px the configurator becomes two columns: the door preview sticks on
   the left while the customer scrolls options on the right. Uses the available
   width instead of pinning everything to a phone-width column.
   ========================================================================== */

@media (min-width: 820px) {
  .hd-dd__app {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
      "stage head"
      "stage body"
      "stage cta";
    align-items: start;
    column-gap: 36px;
    padding: 12px 24px 28px;
  }

  .hd-dd__wizhead { grid-area: head; padding: 6px 0 4px; }
  .hd-dd__body    { grid-area: body; }

  /* Sticky preview panel beside the controls. */
  .hd-dd__stage {
    grid-area: stage;
    position: sticky;
    top: 16px;
    align-self: start;
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
  }
  .hd-dd__canvas { max-width: 460px; }

  /* Left-align the step title + options now they sit in their own column. */
  .hd-dd__steptitle { text-align: left; margin: 8px 0 2px; font-size: 20px; }
  .hd-dd__stephint  { text-align: left; margin: 0 0 8px; }
  .hd-dd__carousel  { padding-left: 0; padding-right: 0; }

  /* CTA fills its column and sticks to the foot of the viewport, so with a long option
     list the customer can always see how to proceed without scrolling to the bottom. */
  .hd-dd__cta {
    grid-area: cta;
    width: 100%;
    margin: 18px 0 0;
    position: sticky;
    bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  }
  /* Room for the last option to clear the floating button. */
  .hd-dd__body { padding-bottom: 64px; }

  /* Review + form align to the controls column. */
  .hd-dd__review dl { margin-left: 0; margin-right: 0; }
  .hd-dd__form { margin-left: 0; margin-right: 0; }
}

/* Roomier preview on very large screens. */
@media (min-width: 1200px) {
  .hd-dd__canvas { max-width: 520px; }
}


/* ==========================================================================
   14. RESPONSIVE — phone layout (< 820px)
   --------------------------------------------------------------------------
   The earlier stacked layout buried the question and options beneath a full-height
   door, and pinning the preview to the very top hid the Back button + progress
   behind it. Fixes here:
     • The header (Back + progress) is pinned at the top in EVERY phase, so the
       customer can always step back and see how far through they are.
     • A wizard STEP becomes two columns — a compact sticky door preview on the
       left, the title + options scrolling on the right — so the door is always in
       view AND the choices sit beside it (mirrors the desktop two-pane, scaled down).
     • The type chooser, review and enquiry form stay single-column / full-width
       (the form needs the room); review/form keep a compact sticky preview so the
       door is visible right up to submission.
     • The Continue action is pinned to the bottom.
   --hd-head-h is published by the app from the header's measured height, so the
   sticky preview always sits exactly beneath the pinned header.
   Desktop (>=820px, section 13) is untouched — these rules only match below the
   two-pane breakpoint.
   ========================================================================== */

@media (max-width: 819px) {
  /* Header pinned at the very top in every phase. */
  .hd-dd__wizhead {
    position: sticky;
    top: 0;
    z-index: 7;
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line);
  }

  /* Compact sticky preview for the single-column phases (review + form) — pinned just
     below the header, never more than ~40% tall so the content below stays reachable.
     Excluded on the type chooser (a tall hero needn't pin) and overridden for steps. */
  .hd-dd__app:not(.hd-dd__app--type) .hd-dd__stage {
    position: sticky;
    top: var(--hd-head-h, 44px);
    z-index: 5;
    max-height: 40vh;
    padding: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .06);
  }
  .hd-dd__canvas,
  .hd-dd__hero {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(40vh - 16px);
  }

  /* Pin the primary action near the bottom so the next step is always on screen — as a
     floating, rounded, inset button (not a full-bleed bar, which didn't read as a button),
     sitting clear of the phone's home indicator / browser bottom bar. */
  .hd-dd__cta {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 6;
    width: auto;
    margin: 10px 12px 0;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  }

  /* Clearance so the last option can scroll clear of the pinned action bar (which
     overlays the foot of the scroll area). */
  .hd-dd__body { padding-bottom: 64px; }

  /* ---- Wizard STEP: preview-left two-column ------------------------------- */
  .hd-dd__app--step {
    display: grid;
    grid-template-columns: minmax(112px, 40%) minmax(0, 1fr);
    grid-template-areas:
      "head  head"
      "stage body"
      "cta   cta";
    column-gap: 12px;
    align-items: start;
    padding: 0 12px;
  }
  .hd-dd__app--step .hd-dd__wizhead { grid-area: head; }
  .hd-dd__app--step .hd-dd__body    { grid-area: body; }
  /* The grid already insets 12px, so drop the button's side margins (avoids 24px inset). */
  .hd-dd__app--step .hd-dd__cta     { grid-area: cta; margin-left: 0; margin-right: 0; }

  /* The preview is now bounded by its column width, so drop the 40vh cap and let the
     door fill the left column. Still sticky beneath the pinned header. */
  .hd-dd__app--step .hd-dd__stage {
    grid-area: stage;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
  }
  .hd-dd__app--step .hd-dd__canvas,
  .hd-dd__app--step .hd-dd__hero {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  /* Title + options left-aligned in their own column; tighter tiles so two fit across
     the narrower right column on a phone. */
  .hd-dd__app--step .hd-dd__steptitle { text-align: left; margin: 6px 0 2px; font-size: 17px; }
  .hd-dd__app--step .hd-dd__stephint  { text-align: left; margin: 0 0 8px; }
  .hd-dd__app--step .hd-dd__carousel  { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); padding: 4px 0 4px; }
  /* Door designs stay legible on a phone — two across, not many tiny ones. */
  .hd-dd__app--step .hd-dd__carousel--doors { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hd-dd__app--step .hd-dd__change    { margin-left: 0; margin-right: 0; }
}


/* ==========================================================================
   15. TERMINAL THANK-YOU SCREEN (after submit)
   --------------------------------------------------------------------------
   A self-contained, centred card shown identically on every screen size: the
   door image, then the whole message read from the top. The wizard's sticky
   preview / header / action bar are hidden in this phase so nothing competes
   for space or gets cut off (the bug this fixes). Two-class selector so it wins
   over both the desktop two-pane grid and the mobile sticky rules regardless of
   source order.
   ========================================================================== */

.hd-dd__app.hd-dd__app--done {
  display: block;
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}
.hd-dd__app--done .hd-dd__wizhead,
.hd-dd__app--done .hd-dd__stage,
.hd-dd__app--done .hd-dd__cta { display: none; }
.hd-dd__app--done .hd-dd__body { padding: 0; }

/* Their designed door, sized as a tidy confirmation visual (not a 40vh band). */
.hd-dd__thanks-img {
  display: block;
  margin: 4px auto 16px;
  width: auto;
  max-width: 168px;
  max-height: 42vh;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage);
}
