/* No webfont import here. app.css is loaded by every CMS.Host site, so importing Rubik downloaded the
   MSV theme's font on sites that do not use it - MSVR included. The font ships with the theme that
   asks for it, through External Resources. */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMz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    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%,-30%);
    font-family: 'Rubik', sans-serif;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.loading-progress-text {
    font-size: 3rem;
    margin-top: 20px;
    text-transform: uppercase;
    color: black;
    font-weight: 400;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-progress-text.finshed:after {
    content: '';
}

/* Preview mode banner. Fixed and high contrast on purpose: a preview must never be mistaken for the
   live site. Only rendered when the url carries an ebespreview token. */
.cms-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #b8860b;
  color: #fff;
  text-align: center;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* The circuit homepage's full-screen video (.video-container, z-index 1) must sit under <main>
   (z-index 2) so the page scrolls up over it. V1 got that from its <app> wrapper: the msv-2021 theme
   makes app a flex column, and a flex item's z-index applies without positioning. The V4 circuit layout
   has no <app> - adding one would restyle every site on that layout - so a <main> following a hero
   rendered before it (the ported circuit homepage, full-screen and event-landing pages - the only
   pages that put .video-container directly under <body>) is positioned instead. The footer after it
   needs the same: the theme gives footer z-index 2 as well, and later in the page it then paints over
   main and the video, as in V1 - unpositioned, the video showed through the partners and site map. */
body > .video-container ~ main,
body > .video-container ~ footer {
  position: relative;
}

/* Same missing <app>, other symptom. The theme gives .video-container both height: 84vh and
   min-height: -webkit-fill-available. Inside V1's flex <app> the min-height had no effect, so the hero
   was 84vh; as a direct child of <body>, which is where the circuit homepage's before-main section puts
   it, the min-height stretches it to the full window and leaves a grey band under the video. */
body > .video-container {
  min-height: 0;
}

/* The circuit header always renders the basket's side panel, but only the newer themes (msv-2024,
   ps-2024, mn-2025...) style it. Under a theme that does not - the V1 msv-2021 build a migrated circuit
   site loads - the panel sat in the page flow as a 340px block, pushing the homepage hero down and
   leaving a grey band under it. This is msv-2024's own base rule, so the panel is off-canvas until
   opened everywhere; the themes load after this file and still win where they set it. */
.basket-side-menu {
  position: fixed;
  top: 48px;
  right: 0;
  height: calc(100dvh - 48px);
  background-color: white;
  z-index: 11;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

.basket-side-menu.show {
  transform: translateX(0);
}

.basket-overlay {
  position: fixed;
  display: none;
}
