/* ReInk: from designer-preview/css/tour.css @ 827d893 (oldDesigner-redesign). Everything below this line is that file,
   unchanged. When the prototype changes it, carry the change across: docs/syncing.md. */
/*
	designer-preview/css/tour.css

	The guided tour (js/tour.js): a dimmed page with the current part lit, a card beside it, and the
	"Take a tour" button in the top bar.
*/
.smTour { position: fixed; z-index: 1200; inset: 0; }   /* above the page, the top bar and the preview's menu; the engine's own overlays are not up during a tour */
.smTour[hidden] { display: none; }
.smTourSpot { position: fixed; border-radius: 8px; box-shadow: 0 0 0 9999px rgb(4 0 0 / 0.55), 0 0 0 2px rgb(255 255 255 / 0.9); pointer-events: none; }
.smTourSpot[hidden] { display: none; }
.smTour.smTourCentred::before { content: ""; position: fixed; inset: 0; background: rgb(4 0 0 / 0.55); }
.smTourCard { position: fixed; z-index: 1; box-sizing: border-box; width: 340px; max-width: calc(100vw - 16px); padding: 14px 18px 16px; border-radius: 12px;
  background: rgb(255 255 255); color: var(--sp-ink-2, rgb(31 28 28)); font: 14px/20px Arial, Helvetica, sans-serif;
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 16px 48px rgb(16 24 40 / 0.28); outline: none; }
.smTour.smTourCentred .smTourCard { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 400px; }
.smTourHead { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px 2px 0; }
.smTourCount { font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sp-ink-3, rgb(84 87 92)); }
.smTourClose { width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sp-ink-3, rgb(84 87 92)); cursor: pointer; }
.smTourClose svg { display: block; width: 20px; height: 20px; margin: 6px; }
.smTourClose:hover { background: rgb(16 24 40 / 0.06); color: var(--sp-ink, rgb(4 0 0)); }
.smTourTitle { margin: 0 0 6px; font: 700 18px/24px Arial, Helvetica, sans-serif; color: var(--sp-ink, rgb(4 0 0)); }
.smTourText { margin: 0; }
.smTourRemember { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--sp-ink-3, rgb(84 87 92)); cursor: pointer; }
.smTourRemember[hidden] { display: none; }
.smTourRemember input { margin: 0; width: 16px; height: 16px; accent-color: var(--sm-red, rgb(234 0 41)); }
.smTourActions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.smTourActions .mui-btn { margin: 0; }
.smTourActions [hidden] { display: none; }
.smTourGrow { flex: 1 1 0; }
.smTourClose:focus-visible, .smTourActions .mui-btn:focus-visible, .smTourRemember input:focus-visible { outline: 2px solid var(--sm-focus, rgb(4 0 0)); outline-offset: 2px; }
/* a phone: the card is a sheet at the bottom, the lit part still shows above it */
.smTour.smTourNarrow .smTourCard, .smTour.smTourNarrow.smTourCentred .smTourCard { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; max-width: none; transform: none; }
.smTour.smTourNarrow.smTourSheetTop .smTourCard { top: 8px; bottom: auto; }   /* the lit part is in the lower half (the panel is the bottom 40% on a phone): the sheet goes to the top */
.smTourStatus { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }   /* read out, not seen */
/* the top bar's button: a circled ? and "Take a tour"; the words go on a phone */
.smTourButton { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0 10px 0 0; padding: 0 12px 0 10px; border: 1px solid var(--sp-line, var(--sm-divider, rgb(218 220 224))); border-radius: 999px;
  background: var(--sp-surface, rgb(255 255 255)); color: var(--sp-ink-2, var(--sm-ink-2, rgb(31 28 28))); font: 700 13px/34px Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: 0; box-shadow: none; cursor: pointer; }
.smTourButton svg { width: 18px; height: 18px; flex: none; }
.smTourButton:hover { border-color: var(--sp-ink-3, rgb(84 87 92)); background: var(--sp-surface, rgb(255 255 255)); color: var(--sp-ink, rgb(4 0 0)); }
.smTourButton:focus-visible { outline: 2px solid var(--sm-focus, rgb(4 0 0)); outline-offset: 2px; }
html.sm-bar-red .smTourButton { border-color: rgb(255 255 255 / 0.6); background: transparent; color: rgb(255 255 255); }
html.sm-bar-red .smTourButton:hover { border-color: rgb(255 255 255); background: rgb(255 255 255 / 0.14); color: rgb(255 255 255); }
@media (max-width: 700px) { .smTourButton { width: 36px; padding: 0; justify-content: center; margin-right: 8px; } .smTourButton span { display: none; } }
@media (max-width: 359px) { .smTourButton { display: none; } }   /* the narrowest phones: Add To Cart keeps its room; the tour still opens on a first visit */
@media (forced-colors: active) { .smTourSpot { box-shadow: none; outline: 3px solid Highlight; } .smTourCard { border: 1px solid CanvasText; } }
