/* BeaMiiLocal Driftsbesked v1.0.1
   The app uses a fixed topbar. JS moves this banner into .topbar-inner and
   adds a flow spacer to .app so it never sits behind the fixed navigation. */
html.bm-sn-was-dismissed #beamii-site-notice { display: none !important; }
#beamii-site-notice.bm-sn--pending {
  position: absolute !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#beamii-site-notice.bm-sn {
  --bm-sn-bg: #f8edcd;
  --bm-sn-fg: #514b40;
  box-sizing: border-box;
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bm-sn-bg);
  color: var(--bm-sn-fg);
  font: 400 13px/1.48 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  pointer-events: auto;
  isolation: isolate;
}
#beamii-site-notice.bm-sn--blue { --bm-sn-bg: #e6f2fa; --bm-sn-fg: #224b65; }
#beamii-site-notice.bm-sn--amber { --bm-sn-bg: #fff0c1; --bm-sn-fg: #604719; }
#beamii-site-notice .bm-sn__inner {
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 9px 45px 10px 15px;
  min-height: 48px;
}
#beamii-site-notice .bm-sn__copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
#beamii-site-notice .bm-sn__title {
  display: block;
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
  color: inherit;
}
#beamii-site-notice .bm-sn__message {
  margin: 0;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.48;
}
#beamii-site-notice .bm-sn__more {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 3px 0 0;
  padding: 0 2px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#beamii-site-notice .bm-sn__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 31px;
  height: 31px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(0, 0, 0, .035);
  color: inherit;
  cursor: pointer;
  opacity: .85;
  font: inherit;
}
#beamii-site-notice .bm-sn__close-icon {
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
}
#beamii-site-notice .bm-sn__close-icon::before,
#beamii-site-notice .bm-sn__close-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 1px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
#beamii-site-notice .bm-sn__close-icon::before { transform: rotate(45deg); }
#beamii-site-notice .bm-sn__close-icon::after { transform: rotate(-45deg); }
#beamii-site-notice .bm-sn__close:hover { opacity: 1; background: rgba(0,0,0,.08); }
#beamii-site-notice .bm-sn__close:focus-visible,
#beamii-site-notice .bm-sn__more:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* In the app shell the notice lives beneath the actual header search row.
   The .topbar is measured by the theme itself, including this extra row. */
.app .topbar-inner > #beamii-site-notice.bm-sn {
  width: min(100%, 920px);
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid rgba(83,72,48,.10);
  border-radius: 11px;
  box-shadow: 0 3px 12px rgba(37,52,65,.035);
}
.app > .bm-sn__layout-spacer {
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 0;
  width: 100%;
  pointer-events: none;
}

@media (max-width: 760px) {
  .app .topbar-inner > #beamii-site-notice.bm-sn {
    width: calc(100% - 16px);
    border-radius: 10px;
  }
  #beamii-site-notice .bm-sn__inner { padding: 8px 39px 8px 12px; min-height: 42px; }
  #beamii-site-notice .bm-sn__title { font-size: 12px; }
  #beamii-site-notice .bm-sn__message { font-size: 12px; }
  #beamii-site-notice:not(.bm-sn--expanded) .bm-sn__message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  #beamii-site-notice .bm-sn__close { right: 5px; width: 29px; height: 29px; }
}
