html.jem-welcome-open,
html.jem-welcome-open body {
  overflow: hidden;
}

#jem-welcome-flyer {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 52px 12px 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #1b3a5c;
  overflow: visible;
  overscroll-behavior: contain;
  box-shadow: 0 24px 100px rgb(7 19 36 / 35%);
}

#jem-welcome-flyer:not([open]) {
  display: none;
}

#jem-welcome-flyer::backdrop {
  background: rgb(11 25 45 / 75%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#jem-welcome-flyer .jem-welcome__close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe2e9;
  border-radius: 50%;
  background: #fff;
  color: #1b3a5c;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

#jem-welcome-flyer .jem-welcome__close:hover {
  background: #f5eff8;
  color: #63367e;
  border-color: #9b6bb0;
}

#jem-welcome-flyer .jem-welcome__close:focus-visible,
#jem-welcome-flyer .jem-welcome__full-size:focus-visible,
#jem-welcome-flyer .jem-welcome__contact:focus-visible {
  outline: 3px solid #7b4b94;
  outline-offset: 3px;
}

#jem-welcome-flyer .jem-welcome__close svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

#jem-welcome-flyer .jem-welcome__full-size {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  cursor: zoom-in;
}

#jem-welcome-flyer .jem-welcome__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 48px), 760px);
  max-height: calc(100vh - 156px);
  max-height: calc(100dvh - 156px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  object-fit: contain;
}

#jem-welcome-flyer .jem-welcome__actions { margin-top: 12px; }

#jem-welcome-flyer .jem-welcome__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(135deg, #f4c542, #c9956b);
  color: #1b3a5c;
  font: 700 15px/1.4 var(--jem-font, system-ui, sans-serif);
  text-align: center;
  text-decoration: none;
}
#jem-welcome-flyer .jem-welcome__contact:hover { background: #f4c542; color: #142c45; }

#jem-welcome-banner {
  position: relative;
  display: none;
  width: calc(100% - 24px);
  max-width: 700px;
  margin: 12px auto;
  padding: 0;
  border: 1px solid #e4e9ef;
  border-left: 4px solid #7b4b94;
  border-radius: 12px;
  background: #fff9f2;
  color: #1b3a5c;
  box-shadow: 0 3px 12px rgb(27 58 92 / 5%);
}
#jem-welcome-banner[hidden], html.jem-welcome-dismissed #jem-welcome-banner { display: none; }

#jem-welcome-banner .jem-welcome-banner__open {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 80px;
  margin: 0;
  padding: 10px 50px 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
#jem-welcome-banner .jem-welcome-banner__thumbnail {
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 54px;
  margin: 0;
  border-radius: 4px;
  object-fit: contain;
}
#jem-welcome-banner .jem-welcome-banner__text {
  display: grid;
  gap: 4px;
  min-width: 0;
  font: 600 14px/1.35 var(--jem-font, system-ui, sans-serif);
}
#jem-welcome-banner .jem-welcome-banner__text strong { font-weight: 700; }
#jem-welcome-banner .jem-welcome-banner__action { color: #7b4b94; font-size: 13px; font-weight: 700; }
#jem-welcome-banner .jem-welcome-banner__close {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1b3a5c;
  cursor: pointer;
  box-shadow: none;
}
#jem-welcome-banner .jem-welcome-banner__close svg { display: block; width: 20px; height: 20px; }
#jem-welcome-banner .jem-welcome-banner__open:hover,
#jem-welcome-banner .jem-welcome-banner__close:hover { background: #f5eff8; }
#jem-welcome-banner a:focus-visible,
#jem-welcome-banner button:focus-visible { outline: 3px solid #7b4b94; outline-offset: 2px; }
@media (max-width: 899.98px) { #jem-welcome-banner { display: flex; } }
html.jem-welcome-fallback #jem-welcome-banner:not([hidden]) { display: flex; }

#jem-welcome-flyer .jem-welcome__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
