/* prx-tour.css -- [prx_tour] on the WordPress page (TM #295.36). Own class names only, so the theme's
   rules and these do not meet; the colours are the tour's (the dashboard's accent). The pop-up box is
   moved onto <body> by prx-tour.js, so it carries its own variables. */
.prx-tour, .prx-tour-box {
  --prx-tour-accent: #3f3190;
  --prx-tour-ink: #171b1a;
  --prx-tour-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
  font-family: var(--prx-tour-font);
}
.prx-tour *, .prx-tour-box * { box-sizing: border-box; }
/* A theme's `button { display: … }` must not show what the plugin hid. */
.prx-tour [hidden], .prx-tour-box[hidden], .prx-tour-box [hidden] { display: none !important; }

/* mode="button" */
.prx-tour--button .prx-tour-trigger {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 12px 22px;
  border: 0; border-radius: 10px; background: var(--prx-tour-accent); color: #fff;
  font: 600 16px/1.2 var(--prx-tour-font); letter-spacing: 0; text-transform: none; cursor: pointer;
}
.prx-tour--button .prx-tour-trigger:hover { filter: brightness(1.12); }
.prx-tour-box--popup {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(23, 27, 26, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* mode="inline" */
.prx-tour--inline {
  position: relative; width: 100%; min-height: 360px; max-height: 90vh; margin: 0 0 1.5em;
  border: 1px solid #e3e5e4; border-radius: 16px; overflow: hidden; background: #E7EEF9;
}
.prx-tour--inline .prx-tour-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  width: 100%; height: 100%; margin: 0; padding: 24px; border: 0; border-radius: 0;
  background: linear-gradient(135deg, #f6f7f6 0%, #ebe8f7 100%); color: var(--prx-tour-ink);
  font: 600 20px/1.3 var(--prx-tour-font); letter-spacing: 0; text-transform: none; cursor: pointer;
}
.prx-tour-play {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--prx-tour-accent); box-shadow: 0 12px 32px rgba(63, 49, 144, 0.35); transition: transform 0.2s;
}
.prx-tour-play::after { content: ''; margin-left: 6px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.prx-tour--inline .prx-tour-cover:hover .prx-tour-play { transform: scale(1.06); }
.prx-tour-box--inline { position: absolute; inset: 0; }

/* the frame, and what shows over it until the tour says it is ready. Until then the frame stays hidden:
   a page that is not the tour (a site's white 404 page) must not cover the message and its Close. */
.prx-tour-box:not(.is-ready) .prx-tour-frame { visibility: hidden; }
/* !important on the frame's box only: themes size embeds (`.entry-content iframe { height: auto }`), which
   would leave a replaced element at 300x150. */
.prx-tour-box .prx-tour-frame {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important; min-height: 0 !important; margin: 0 !important;
  border: 0; background: transparent; color-scheme: light;
}
.prx-tour-wait {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; color: #fff; font: 500 16px/1.4 var(--prx-tour-font); text-align: center;
}
.prx-tour-box--inline .prx-tour-wait { color: var(--prx-tour-ink); }
.prx-tour-wait p { margin: 0; }
.prx-tour-box.is-ready .prx-tour-wait, .prx-tour-failed, .prx-tour-box.is-failed .prx-tour-loading { display: none; }
.prx-tour-box.is-failed .prx-tour-failed { display: block; }
/* data-autoplay: while a self-started tour loads, the cover stands underneath (prx-tour.js keeps it), so
   the wait words sit the load out; a failure brings them -- and Close -- back over the cover. */
.prx-tour-box.is-autoplay:not(.is-ready):not(.is-failed) .prx-tour-wait { display: none; }
.prx-tour-quit {
  margin: 0; padding: 10px 20px; border: 1px solid currentColor; border-radius: 10px; background: transparent;
  color: inherit; font: 600 15px/1.2 var(--prx-tour-font); cursor: pointer;
}
.prx-tour-trigger:focus-visible, .prx-tour-quit:focus-visible { outline: 3px solid var(--prx-tour-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .prx-tour-play { transition: none; } }
