/*
 * Single professional ad placement above the menu. It uses the same centered
 * content width as the public navigation and does not create side rails.
 */
:root {
  --bw-ad-bar-height: 64px;
}

body {
  padding-top: 0;
}

body.bw-ad-placement-active {
  padding-top: var(--bw-ad-bar-height);
}

#bw-ad-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1001;
  display: none;
  height: var(--bw-ad-bar-height);
  color: #17233f;
  background: #fff;
  border-bottom: 1px solid #dbe4ee;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#bw-ad-shell.bw-ad-shell--active {
  display: block;
}

.bw-ad-shell__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1400px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.bw-ad-shell__placement {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100% - 8px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 35%, rgba(94, 234, 212, .16), transparent 25%),
    linear-gradient(105deg, #111c39 0%, #173b55 56%, #122742 100%);
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 3px;
}

.bw-ad-shell__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 130px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .18s ease;
}

.bw-ad-shell__stage.is-visible {
  opacity: 1;
}

.bw-ad-shell__size {
  position: absolute;
  left: 12px;
  color: #bae6fd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bw-ad-shell__remove {
  position: absolute;
  right: 0;
  top: 0;
  color: #64748b;
  font-size: 10px;
  text-decoration: underline;
  white-space: nowrap;
}

.bw-ad-card {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 24px;
  color: #e2e8f0;
}

.bw-ad-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-right: 14px;
  color: #122742;
  background: #b9df27;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 900;
}

.bw-ad-card__copy {
  min-width: 0;
  text-align: left;
}

.bw-ad-card__eyebrow {
  color: #a5f3fc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.bw-ad-card__title {
  margin-top: 3px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.1;
}

.bw-ad-card__text {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-ad-card__cta {
  margin-left: auto;
  padding: 8px 12px;
  color: #122742;
  background: #b9df27;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.bw-ad-live {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #17233f;
  font-size: 11px;
}

.bw-ad-live iframe,
.bw-ad-live img,
.bw-ad-live ins {
  max-width: 100%;
  max-height: 100%;
}

/* The app menu stays in its normal flow when the placement is disabled. */
#root header.bw-public-header {
  top: 0 !important;
}

body.bw-ad-placement-active #root header.bw-public-header {
  top: var(--bw-ad-bar-height) !important;
}

#root header.bw-public-header > div:first-child {
  max-width: min(1400px, calc(100% - 32px)) !important;
}

#root header.bw-public-header nav {
  gap: 5px !important;
}

body.bw-ad-placement-active #root main > .sticky.top-0,
body.bw-ad-placement-active #root main > .sticky.top-0.z-20,
body.bw-ad-placement-active #root main > .sticky.top-0.z-10 {
  top: var(--bw-ad-bar-height) !important;
}

@media (max-width: 640px) {
  :root {
    --bw-ad-bar-height: 56px;
  }

  .bw-ad-shell__inner {
    width: calc(100% - 16px);
  }

  .bw-ad-shell__stage {
    padding: 0 75px 0 48px;
  }

  .bw-ad-card {
    padding: 0 8px;
  }

  .bw-ad-card__mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    margin-right: 8px;
    font-size: 14px;
  }

  .bw-ad-card__title {
    font-size: 13px;
  }

  .bw-ad-card__text {
    font-size: 10px;
  }

  .bw-ad-card__cta {
    padding: 6px 7px;
    font-size: 8px;
  }

  .bw-ad-shell__size {
    left: 5px;
    font-size: 7px;
  }

  .bw-ad-shell__remove {
    right: 0;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-ad-shell__stage {
    transition: none;
  }
}