/* Portal campaign slots — class names avoid adblock triggers (AB#31993). */

.frontend-notifications-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Sit fully below fixed .header-top (see striking-dash/custom.css page-contents padding-top). */
.frontend-notifications-site-strip {
  position: relative;
  z-index: 0;
  padding-top: 0.25rem;
}

.frontend-notifications {
  width: 100%;
  max-width: 100%;
}

.frontend-notifications.horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Fixed-size card frame (CardFrame.tsx). The outer takes the available width up to the card's width
   (set inline) and its height is the card's height times the scale. The inner is the card's exact
   size; on a narrower column it is scaled down from the top left, so the layout never changes. */
.frontend-notifications-fit {
  position: relative;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Absolute: the inner's fixed pixel width must not become the frame's min-content width, or a
   narrow column's flex ancestors refuse to shrink and the banner overflows instead of scaling. The
   outer frame carries the (scaled) height, so the layout is unchanged. */
.frontend-notifications-fit-inner {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

/* Box creative card. Container queries switch layout by card width, not viewport. Rules that
   restyle the shared disclosure / frame classes are scoped to the card: the base rules come later. */
.frontend-notifications-box-card,
.frontend-notifications-leaderboard,
.frontend-notifications-billboard-root,
.frontend-notifications-rectangle-root,
.frontend-notifications-custom-root,
.frontend-notifications-strip-root {
  --fn-box-accent: #647a67;
  --fn-box-accent-hover: #536654;
  /* The pill is filled sage with white text (4.64:1, passes AA). */
  --fn-box-accent-ink: #ffffff;
  --fn-box-accent-tint: var(--fn-box-accent);
  --fn-box-border: #e5e7eb;
  --fn-box-title: #111827;
  --fn-box-text: #4b5563;
  --fn-box-muted: #6b7280;
  /* Muted text on the grey page (the leaderboard disclaimer sits outside its card): AA on #f2f3f5. */
  --fn-box-muted-on-page: #5f6673;
  --fn-box-footer-bg: #f8fafc;
  --fn-box-footer-border: #eef0f3;
  --fn-box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.14), 0 1px 2px rgba(15, 23, 42, 0.04);
  --fn-box-button-shadow: 0 8px 20px -6px rgba(100, 122, 103, 0.45);
}

.frontend-notifications-box-card {
  container-type: inline-size;
  container-name: fn-box;
  width: 100%;
  max-width: 690px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fn-box-border);
  border-radius: 16px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
}

.frontend-notifications-box-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  padding: 14px 14px 20px;
}

.frontend-notifications-box-media {
  width: 100%;
}

.frontend-notifications-box-image-link {
  display: block;
  line-height: 0;
}

.frontend-notifications-box-card .frontend-notifications-box-frame {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 300 / 250;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.frontend-notifications-box-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.frontend-notifications-box-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.frontend-notifications-box-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 6px;
  min-width: 0;
}

.frontend-notifications-box-copy > :last-child {
  margin-bottom: 0;
}

.frontend-notifications-box-card .frontend-notifications-box-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--fn-box-accent-tint);
  color: var(--fn-box-accent-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.frontend-notifications-disclosure-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: currentColor;
  flex-shrink: 0;
}

.frontend-notifications-box-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fn-box-title);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.frontend-notifications-box-html {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fn-box-text);
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}

.frontend-notifications-box-html p {
  margin: 0 0 0.5em;
}

.frontend-notifications-box-html p:last-child {
  margin: 0;
}

/* Underlined: a link must not be told apart from the text by colour alone (axe link-in-text-block). */
.frontend-notifications-box-html a {
  color: var(--fn-box-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Element-qualified selector beats legacy unlayered link styles. */
a.frontend-notifications-box-button,
.frontend-notifications-box-button {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: var(--fn-box-button-shadow);
  transition: background-color 150ms;
}

a.frontend-notifications-box-button:hover,
a.frontend-notifications-box-button:focus,
.frontend-notifications-box-button:hover,
.frontend-notifications-box-button:focus {
  background: var(--fn-box-accent-hover);
  color: #fff;
  text-decoration: none;
}

a.frontend-notifications-box-button:focus-visible,
.frontend-notifications-box-button:focus-visible {
  outline: 2px solid var(--fn-box-accent);
  outline-offset: 2px;
}

.frontend-notifications-box-button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frontend-notifications-box-footer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 20px;
  background: var(--fn-box-footer-bg);
  border-top: 1px solid var(--fn-box-footer-border);
  color: var(--fn-box-muted);
}

.frontend-notifications-box-footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-box-card .frontend-notifications-box-footer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

@container fn-box (min-width: 560px) {
  .frontend-notifications-box-layout {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 20px;
  }

  .frontend-notifications-box-media {
    flex: 0 0 300px;
    width: 300px;
  }

  .frontend-notifications-box-card .frontend-notifications-box-frame {
    width: 300px;
    height: 250px;
    max-width: none;
    aspect-ratio: 300 / 250;
  }

  .frontend-notifications-box-copy {
    flex: 1;
    padding: 0;
  }

  .frontend-notifications-box-title {
    font-size: 32px;
  }

  a.frontend-notifications-box-button,
  .frontend-notifications-box-button {
    display: inline-flex;
    align-self: flex-start;
    min-height: 46px;
  }
}

/* Large leaderboard card: a fixed-size dark card, 970x90 on desktop and 320x100 on phones, inside a
   CardFrame (the frame scales the whole card down uniformly on a narrower column). The layout is
   chosen by the frame's size attribute, not by a container query. Both sizes use one pattern: copy
   (pill, title, underlined text link) on the left over the dark background, the image on the right
   fading in from the left. The pill rules are scoped to the card because the base disclosure rules
   come later in this file. */
/* The carousel centres its slide in a flex column, which would shrink it to the container's zero
   intrinsic width: the leaderboard slide takes the full width instead. */
.frontend-notifications.large_leaderboard > .frontend-notifications-slide {
  width: 100%;
}

.frontend-notifications-leaderboard {
  --fn-dark-card: #1a211c;
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  text-align: left;
}

/* The disclaimer under the card lines up with the narrower phone card. */
.frontend-notifications-leaderboard:has([data-fn-size='mobile']) {
  max-width: 320px;
}

.frontend-notifications-leaderboard-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  background: var(--fn-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

/* The image sits on the right, full height, and fades into the dark card from its left edge. */
.frontend-notifications-leaderboard-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%);
}

.frontend-notifications-leaderboard-image-link {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}

.frontend-notifications-leaderboard-media picture {
  display: block;
  height: 100%;
}

.frontend-notifications-leaderboard-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.frontend-notifications-leaderboard-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

/* The copy column stays left of the faded image, fills the card height and clips. useFitText
   measures its overflow. Auto margins centre the stack vertically yet collapse to zero when the
   text overflows. */
.frontend-notifications-leaderboard-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  align-self: stretch;
  align-items: flex-start;
  /* Tight vertical rhythm: pill + a two-line title at the 14px floor + the link fit the 90px card. */
  gap: 3px;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px 0 6px 30px;
}

.frontend-notifications-leaderboard-card .frontend-notifications-leaderboard-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: none;
  gap: 6px;
  padding: 2px 10px;
  border: 0;
  border-radius: 9999px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-notifications-leaderboard-copy > .frontend-notifications-leaderboard-pill {
  margin-top: auto;
}

.frontend-notifications-leaderboard-copy > :last-child {
  margin-bottom: auto;
}

.frontend-notifications-leaderboard-title {
  flex: none;
  margin: 0;
  /* 20px desktop / 16px phone: one line typical on desktop, two lines fit the phone card. */
  font-size: calc(20px * var(--fn-fit, 1));
  font-weight: 700;
  line-height: calc(1.15 - 0.2 * (1 - var(--fn-fit, 1)));
  letter-spacing: -0.01em;
  color: #fff;
  overflow-wrap: anywhere;
}

/* Still too long at the smallest size: trim with an ellipsis. The full text stays in the DOM. */
.frontend-notifications-leaderboard-copy[data-fn-clamped='true']
  .frontend-notifications-leaderboard-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* The link is a text link under the title. Element-qualified selectors beat legacy unlayered link
   styles. Only the label is underlined, not the arrow icon. */
a.frontend-notifications-leaderboard-button,
.frontend-notifications-leaderboard-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  flex: none;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  transition: opacity 150ms;
}

a.frontend-notifications-leaderboard-button:hover,
a.frontend-notifications-leaderboard-button:focus,
.frontend-notifications-leaderboard-button:hover,
.frontend-notifications-leaderboard-button:focus {
  background: none;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

a.frontend-notifications-leaderboard-button:focus-visible,
.frontend-notifications-leaderboard-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.frontend-notifications-leaderboard-button-label {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.frontend-notifications-leaderboard-button-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.frontend-notifications-leaderboard-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
  color: var(--fn-box-muted-on-page);
}

.frontend-notifications-leaderboard-disclaimer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-leaderboard .frontend-notifications-leaderboard-disclaimer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

/* Phone 320x100: the image takes 45%, the copy stays left of it. */
.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  .frontend-notifications-leaderboard-card {
  border-radius: 12px;
}

.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  .frontend-notifications-leaderboard-media {
  width: 45%;
}

.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  .frontend-notifications-leaderboard-copy {
  max-width: 55%;
  padding: 10px 0 10px 14px;
}

.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  .frontend-notifications-leaderboard-card
  .frontend-notifications-leaderboard-pill {
  padding: 1px 8px;
  font-size: 10px;
}

.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  .frontend-notifications-leaderboard-title {
  font-size: calc(16px * var(--fn-fit, 1));
}

.frontend-notifications-leaderboard
  [data-fn-size='mobile']
  a.frontend-notifications-leaderboard-button {
  font-size: 12px;
}

/* Billboard card: a fixed-size card, 970x250 on desktop and 300x250 on phones, inside a CardFrame
   (the frame scales the whole card down uniformly on a narrower column). The image fills the card
   behind a dark scrim, white text on top. The layout is chosen by the frame's size attribute, not
   by a container query. The carousel centres its slide in a flex column, which would shrink it to
   zero width: the slide is full width. */
.frontend-notifications.billboard > .frontend-notifications-slide {
  width: 100%;
}

.frontend-notifications-billboard-root {
  width: 100%;
  max-width: 970px;
  margin: 0 auto;
  text-align: left;
}

/* The disclaimer under the card lines up with the narrower phone card. */
.frontend-notifications-billboard-root:has([data-fn-size='mobile']) {
  max-width: 300px;
}

.frontend-notifications-billboard-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f2a24;
  border-radius: 16px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

/* The image link sits under the text layer, so its focus ring is drawn on the card. */
.frontend-notifications-billboard-card:has(
  .frontend-notifications-billboard-image-link:focus-visible
) {
  outline: 2px solid var(--fn-box-accent);
  outline-offset: 2px;
}

.frontend-notifications-billboard-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.frontend-notifications-billboard-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.frontend-notifications-billboard-media picture {
  display: block;
  height: 100%;
}

.frontend-notifications-billboard-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.frontend-notifications-billboard-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

/* Phone: bottom-up scrim. Desktop (below): left-to-right. */
.frontend-notifications-billboard-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 20, 15, 0.92) 0%,
    rgba(12, 20, 15, 0.78) 45%,
    rgba(12, 20, 15, 0.4) 100%
  );
}

/* Clicks on the text fall through to the image link; only the button takes them. The content fills
   the card and clips; useFitText measures its overflow. Auto margins place the pill and the body
   yet collapse to zero when the text overflows (a plain centre would push the overflow above the
   top, where it cannot be measured). Phone: pill on top, title, text and a full-width button at
   the bottom. */
.frontend-notifications-billboard-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
}

.frontend-notifications-billboard-card .frontend-notifications-billboard-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: none;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-notifications-billboard-body {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}

/* Title and text scale with --fn-fit (set by useFitText), each down to its own readable floor. */
.frontend-notifications-billboard-title {
  flex: none;
  margin: 0;
  font-size: max(14px, calc(24px * var(--fn-fit, 1)));
  font-weight: 700;
  line-height: calc(1.1 - 0.2 * (1 - var(--fn-fit, 1)));
  letter-spacing: -0.015em;
  color: #fff;
  overflow-wrap: anywhere;
}

.frontend-notifications-billboard-text {
  flex: none;
  margin: 0;
  font-size: max(12px, calc(14px * var(--fn-fit, 1)));
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Still too long at the smallest size: trim with an ellipsis. The full text stays in the DOM. */
.frontend-notifications-billboard-content[data-fn-clamped='true']
  :is(.frontend-notifications-billboard-title, .frontend-notifications-billboard-text) {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Element-qualified selector beats legacy unlayered link styles. */
a.frontend-notifications-billboard-button,
.frontend-notifications-billboard-button {
  display: flex;
  flex: none;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 10px;
  height: 40px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: var(--fn-box-button-shadow);
  transition: background-color 150ms;
  pointer-events: auto;
}

a.frontend-notifications-billboard-button:hover,
a.frontend-notifications-billboard-button:focus,
.frontend-notifications-billboard-button:hover,
.frontend-notifications-billboard-button:focus {
  background: var(--fn-box-accent-hover);
  color: #fff;
  text-decoration: none;
}

a.frontend-notifications-billboard-button:focus-visible,
.frontend-notifications-billboard-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.frontend-notifications-billboard-button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frontend-notifications-billboard-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
  color: var(--fn-box-muted-on-page);
}

.frontend-notifications-billboard-disclaimer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-billboard-root .frontend-notifications-billboard-disclaimer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

/* Desktop 970x250: the text column (pill, title, text) is inset 56px and at most 420px wide, so it
   stays over the dark part of the scrim; it is centred vertically. The button is pinned to the
   bottom-right corner and is not part of the column, so it needs no room in the fit. */
.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-scrim {
  background: linear-gradient(
    90deg,
    rgba(12, 20, 15, 0.9) 0%,
    rgba(12, 20, 15, 0.8) 38%,
    rgba(12, 20, 15, 0.35) 62%,
    rgba(12, 20, 15, 0) 82%
  );
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-content {
  width: 100%;
  gap: 14px;
  padding: 24px 0 24px 56px;
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-pill {
  margin-top: auto;
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-body {
  margin-top: 0;
  margin-bottom: auto;
  gap: 12px;
  max-width: 420px;
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-title {
  font-size: max(16px, calc(44px * var(--fn-fit, 1)));
  line-height: calc(1.05 - 0.15 * (1 - var(--fn-fit, 1)));
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  .frontend-notifications-billboard-text {
  font-size: max(12px, calc(16px * var(--fn-fit, 1)));
  line-height: 1.55;
}

.frontend-notifications-billboard-root
  [data-fn-size='desktop']
  a.frontend-notifications-billboard-button {
  position: absolute;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  display: inline-flex;
  align-self: auto;
  height: 36px;
  margin-top: 0;
  padding: 0 18px;
  font-size: 15px;
}

/* Site strip card: a fixed-size card, 728x90 on desktop and 320x100 on phones, inside a CardFrame
   (see CardFrame.tsx: the frame scales the whole card down uniformly on a narrower column). The
   layout is chosen by the frame's size attribute, not by a container query. Desktop: copy and a
   labelled button on the left, image on the right. Phone: thumbnail left, copy, icon-only button
   whose label is visually hidden but stays the accessible name. The carousel centres its slide in a
   flex column, which would shrink it to zero width: the slide is full width. */
.frontend-notifications.horizontal > .frontend-notifications-slide {
  width: 100%;
}

.frontend-notifications-strip-root {
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  text-align: left;
}

/* The disclaimer under the card lines up with the narrower phone card. */
.frontend-notifications-strip-root:has([data-fn-size='mobile']) {
  max-width: 320px;
}

.frontend-notifications-strip-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--fn-box-border);
  border-radius: 14px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.frontend-notifications-strip-card .frontend-notifications-strip-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: none;
  gap: 6px;
  padding: 2px 10px;
  border: 0;
  border-radius: 9999px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The copy fills the card height and clips. useFitText measures its overflow. Auto margins centre
   the pill and title vertically yet collapse to zero when the text overflows (a plain centre would
   push the overflow above the top, where it cannot be measured). */
.frontend-notifications-strip-copy {
  order: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-self: stretch;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px 10px 10px 14px;
}

.frontend-notifications-strip-copy > .frontend-notifications-strip-pill {
  margin-top: auto;
}

.frontend-notifications-strip-copy > .frontend-notifications-strip-title {
  margin-bottom: auto;
}

.frontend-notifications-strip-copy > .frontend-notifications-strip-pill:only-child {
  margin-bottom: auto;
}

.frontend-notifications-strip-title {
  flex: none;
  margin: 0;
  font-size: calc(22px * var(--fn-fit, 1));
  font-weight: 700;
  line-height: calc(1.15 - 0.2 * (1 - var(--fn-fit, 1)));
  letter-spacing: -0.01em;
  color: var(--fn-box-title);
  overflow-wrap: anywhere;
}

/* Still too long at the smallest size: trim with an ellipsis. The full text stays in the DOM. */
.frontend-notifications-strip-copy[data-fn-clamped='true'] .frontend-notifications-strip-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.frontend-notifications-strip-media {
  order: -1;
  flex: 0 0 92px;
  width: 92px;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

.frontend-notifications-strip-image-link {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 0;
}

.frontend-notifications-strip-media picture {
  display: block;
  height: 100%;
}

.frontend-notifications-strip-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.frontend-notifications-strip-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

/* Element-qualified selector beats legacy unlayered link styles. Phone: icon-only button whose
   label is visually hidden but still its accessible name. */
a.frontend-notifications-strip-button,
.frontend-notifications-strip-button {
  order: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 8px;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: 14px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--fn-box-accent);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: var(--fn-box-button-shadow);
  transition: background-color 150ms;
}

a.frontend-notifications-strip-button:hover,
a.frontend-notifications-strip-button:focus,
.frontend-notifications-strip-button:hover,
.frontend-notifications-strip-button:focus {
  background: var(--fn-box-accent-hover);
  color: #fff;
  text-decoration: none;
}

a.frontend-notifications-strip-button:focus-visible,
.frontend-notifications-strip-button:focus-visible {
  outline: 2px solid var(--fn-box-accent);
  outline-offset: 2px;
}

.frontend-notifications-strip-button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frontend-notifications-strip-button-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Without a button nothing follows the copy on the phone card, so it keeps a right padding. */
.frontend-notifications-strip-nobutton .frontend-notifications-strip-copy {
  padding-right: 16px;
}

.frontend-notifications-strip-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 0 2px;
  color: var(--fn-box-muted-on-page);
}

.frontend-notifications-strip-disclaimer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-strip-root .frontend-notifications-strip-disclaimer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

/* Desktop 728x90. */
.frontend-notifications-strip-root [data-fn-size='desktop'] .frontend-notifications-strip-copy {
  padding: 8px 0 8px 22px;
}

.frontend-notifications-strip-root [data-fn-size='desktop'] .frontend-notifications-strip-title {
  font-size: calc(24px * var(--fn-fit, 1));
}

.frontend-notifications-strip-root [data-fn-size='desktop'] a.frontend-notifications-strip-button {
  width: auto;
  height: 40px;
  margin: 0 20px 0 16px;
  padding: 0 20px;
  font-size: 15px;
}

.frontend-notifications-strip-root
  [data-fn-size='desktop']
  .frontend-notifications-strip-button-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

.frontend-notifications-strip-root [data-fn-size='desktop'] .frontend-notifications-strip-media {
  order: 2;
  flex: 0 0 34%;
  width: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 25%);
  mask-image: linear-gradient(to right, transparent 0, #000 25%);
}

.frontend-notifications-strip-root [data-fn-size='desktop'] .frontend-notifications-strip-img {
  object-position: right center;
}

/* Without a button the copy meets the image: keep a gap before it. */
.frontend-notifications-strip-root
  [data-fn-size='desktop']
  .frontend-notifications-strip-nobutton
  .frontend-notifications-strip-copy {
  padding-right: 22px;
}

/* Large rectangle card: a fixed-size card, 336x280 on desktop and 300x250 on phones, inside a
   CardFrame (the frame scales the whole card down uniformly on a narrower column). One layout at
   both sizes. The image fills the card under a bottom-up scrim, white text on top. The carousel
   centres its slide in a flex column, which would shrink it to zero width: the slide is full width. */
.frontend-notifications.large_rectangle > .frontend-notifications-slide {
  width: 100%;
}

.frontend-notifications-rectangle-root {
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  text-align: left;
}

/* The disclaimer under the card lines up with the narrower phone card. */
.frontend-notifications-rectangle-root:has([data-fn-size='mobile']) {
  max-width: 300px;
}

.frontend-notifications-rectangle-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f2a24;
  border-radius: 16px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

/* The image link sits under the text layer, so its focus ring is drawn on the card. */
.frontend-notifications-rectangle-card:has(
  .frontend-notifications-rectangle-image-link:focus-visible
) {
  outline: 2px solid var(--fn-box-accent);
  outline-offset: 2px;
}

.frontend-notifications-rectangle-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.frontend-notifications-rectangle-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.frontend-notifications-rectangle-media picture {
  display: block;
  height: 100%;
}

.frontend-notifications-rectangle-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.frontend-notifications-rectangle-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.frontend-notifications-rectangle-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 20, 15, 0.9) 0%,
    rgba(12, 20, 15, 0.72) 40%,
    rgba(12, 20, 15, 0.25) 100%
  );
}

/* Clicks on the text fall through to the image link; only the button takes them. The content fills
   the card and clips; useFitText measures its overflow. The pill is on top, the title and button at
   the bottom (the body's auto top margin collapses to zero when the title overflows). */
.frontend-notifications-rectangle-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
}

.frontend-notifications-rectangle-root
  [data-fn-size='mobile']
  .frontend-notifications-rectangle-content {
  padding: 18px;
}

.frontend-notifications-rectangle-card .frontend-notifications-rectangle-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: none;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.frontend-notifications-rectangle-body {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  min-width: 0;
}

/* The title scales with --fn-fit (set by useFitText) down to a 16px floor. */
.frontend-notifications-rectangle-title {
  flex: none;
  margin: 0;
  font-size: max(16px, calc(30px * var(--fn-fit, 1)));
  font-weight: 700;
  line-height: calc(1.1 - 0.2 * (1 - var(--fn-fit, 1)));
  letter-spacing: -0.015em;
  color: #fff;
  overflow-wrap: anywhere;
}

.frontend-notifications-rectangle-root
  [data-fn-size='mobile']
  .frontend-notifications-rectangle-title {
  font-size: max(16px, calc(26px * var(--fn-fit, 1)));
}

/* Still too long at the smallest size: trim with an ellipsis. The full text stays in the DOM. */
.frontend-notifications-rectangle-content[data-fn-clamped='true']
  .frontend-notifications-rectangle-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Element-qualified selector beats legacy unlayered link styles. */
a.frontend-notifications-rectangle-button,
.frontend-notifications-rectangle-button {
  display: flex;
  flex: none;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: var(--fn-box-button-shadow);
  transition: background-color 150ms;
  pointer-events: auto;
}

.frontend-notifications-rectangle-root
  [data-fn-size='mobile']
  a.frontend-notifications-rectangle-button {
  min-height: 44px;
}

a.frontend-notifications-rectangle-button:hover,
a.frontend-notifications-rectangle-button:focus,
.frontend-notifications-rectangle-button:hover,
.frontend-notifications-rectangle-button:focus {
  background: var(--fn-box-accent-hover);
  color: #fff;
  text-decoration: none;
}

a.frontend-notifications-rectangle-button:focus-visible,
.frontend-notifications-rectangle-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.frontend-notifications-rectangle-button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frontend-notifications-rectangle-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
  color: var(--fn-box-muted-on-page);
}

.frontend-notifications-rectangle-disclaimer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-rectangle-root .frontend-notifications-rectangle-disclaimer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

/* Custom size card: a fixed-size card at the campaign's own size, desktop wide and phone below 768px
   like the picture source (CardFrame holds the exact size; a narrower column scales it down whole).
   The image fills the card under a light overall darkening; pill, title and button sit in a frosted
   panel. The panel layout follows the CURRENT size, set by the component as data-fn-layout on the
   card (space-separated tokens): wide = panel on the left, narrow = panel at the bottom, short = a
   single row inside the card (pill and title left, button right). data-fn-button="icon" turns the
   button into an icon-only one whose label stays the accessible name. */
.frontend-notifications.custom > .frontend-notifications-slide {
  width: 100%;
}

.frontend-notifications-custom-root {
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.frontend-notifications-custom-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f2a24;
  border-radius: 16px;
  box-shadow: var(--fn-box-shadow);
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate;
}

/* The image link sits under the text layer, so its focus ring is drawn on the card. */
.frontend-notifications-custom-card:has(.frontend-notifications-custom-image-link:focus-visible) {
  outline: 2px solid var(--fn-box-accent);
  outline-offset: 2px;
}

.frontend-notifications-custom-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.frontend-notifications-custom-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.frontend-notifications-custom-media picture {
  display: block;
  height: 100%;
}

.frontend-notifications-custom-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.frontend-notifications-custom-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.frontend-notifications-custom-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(12, 20, 15, 0.25);
}

/* Clicks on the text fall through to the image link; only the button takes them. The content fills
   the card; the panel is bounded by it (max-height) so useFitText can measure its overflow. Narrow:
   the panel sits at the bottom. */
.frontend-notifications-custom-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  box-sizing: border-box;
  color: #fff;
}

.frontend-notifications-custom-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(14, 20, 16, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.frontend-notifications-custom-panel > * {
  flex: none;
}

.frontend-notifications-custom-card .frontend-notifications-custom-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The title scales with --fn-fit (set by useFitText) down to a 14px floor. */
.frontend-notifications-custom-title {
  margin: 0;
  font-size: max(14px, calc(30px * var(--fn-fit, 1)));
  font-weight: 700;
  line-height: calc(1.1 - 0.2 * (1 - var(--fn-fit, 1)));
  letter-spacing: -0.015em;
  color: #fff;
  /* Words wrap whole, never split mid-word; a word wider than the card is clipped (AB#32613). */
  overflow-wrap: normal;
  word-break: normal;
}

/* Still too long at the smallest size: trim with an ellipsis. The full text stays in the DOM. */
.frontend-notifications-custom-panel[data-fn-clamped='true'] .frontend-notifications-custom-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Element-qualified selector beats legacy unlayered link styles. */
a.frontend-notifications-custom-button,
.frontend-notifications-custom-button {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--fn-box-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: var(--fn-box-button-shadow);
  transition: background-color 150ms;
  pointer-events: auto;
}

a.frontend-notifications-custom-button:hover,
a.frontend-notifications-custom-button:focus,
.frontend-notifications-custom-button:hover,
.frontend-notifications-custom-button:focus {
  background: var(--fn-box-accent-hover);
  color: #fff;
  text-decoration: none;
}

a.frontend-notifications-custom-button:focus-visible,
.frontend-notifications-custom-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.frontend-notifications-custom-button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.frontend-notifications-custom-button-label {
  white-space: nowrap;
}

/* Wide card (>= 560px): the panel sits on the left, vertically centred. */
.frontend-notifications-custom-card[data-fn-layout~='wide'] .frontend-notifications-custom-content {
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
}

.frontend-notifications-custom-card[data-fn-layout~='wide'] .frontend-notifications-custom-panel {
  width: min(340px, 40%);
  padding: 16px 22px;
}

.frontend-notifications-custom-card[data-fn-layout~='wide'] .frontend-notifications-custom-title {
  font-size: max(14px, calc(40px * var(--fn-fit, 1)));
}

.frontend-notifications-custom-card[data-fn-layout~='wide'] a.frontend-notifications-custom-button {
  display: inline-flex;
  align-self: flex-start;
  min-height: 44px;
}

/* Short card (< 160px tall): one row inside the card, pill and title left, button right. The panel
   fills the card height minus the 8px insets. */
.frontend-notifications-custom-card[data-fn-layout~='short']
  .frontend-notifications-custom-content {
  align-items: stretch;
  justify-content: stretch;
  padding: 8px;
}

.frontend-notifications-custom-card[data-fn-layout~='short'] .frontend-notifications-custom-panel {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 4px 10px;
  border-radius: 12px;
}

.frontend-notifications-custom-card[data-fn-layout~='short'] .frontend-notifications-custom-pill {
  align-self: center;
  padding: 2px 10px;
  font-size: 11px;
}

.frontend-notifications-custom-card[data-fn-layout~='short'] .frontend-notifications-custom-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: max(14px, calc(26px * var(--fn-fit, 1)));
}

.frontend-notifications-custom-card[data-fn-layout~='short']
  .frontend-notifications-custom-panel[data-fn-clamped='true']
  .frontend-notifications-custom-title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.frontend-notifications-custom-card[data-fn-layout~='short']
  a.frontend-notifications-custom-button {
  display: inline-flex;
  align-self: center;
  min-height: 0;
  height: min(40px, 100%);
  padding: 0 18px;
  font-size: 15px;
}

/* Icon-only button: the label is visually hidden but stays the accessible name. */
.frontend-notifications-custom-card[data-fn-button='icon'] a.frontend-notifications-custom-button {
  flex: none;
  width: min(40px, 100%);
  height: min(40px, 100%);
  aspect-ratio: 1 / 1;
  padding: 0;
}

.frontend-notifications-custom-card[data-fn-button='icon']
  .frontend-notifications-custom-button-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tiny card (< 200px wide): tight spacing and smaller text. The pill wraps between words, so
   "Paid promotion" shows whole on two lines rather than cut (AB#32613). */
.frontend-notifications-custom-card[data-fn-layout~='tiny'] .frontend-notifications-custom-content {
  padding: 6px;
}

.frontend-notifications-custom-card[data-fn-layout~='tiny'] .frontend-notifications-custom-panel {
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
}

.frontend-notifications-custom-card[data-fn-layout~='tiny'] .frontend-notifications-custom-pill {
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: normal;
  overflow-wrap: normal;
}

.frontend-notifications-custom-card[data-fn-layout~='tiny'] .frontend-notifications-custom-title {
  font-size: max(14px, calc(18px * var(--fn-fit, 1)));
}

/* Micro card (< 120px wide): the label and title are hidden whole, not cut; screen readers still
   read them. */
.frontend-notifications-custom-card[data-fn-layout~='micro'] .frontend-notifications-custom-pill,
.frontend-notifications-custom-card[data-fn-layout~='micro'] .frontend-notifications-custom-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.frontend-notifications-custom-card[data-fn-layout~='micro'] .frontend-notifications-custom-panel {
  align-items: center;
  padding: 6px;
}

.frontend-notifications-custom-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
  color: var(--fn-box-muted-on-page);
}

.frontend-notifications-custom-disclaimer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.frontend-notifications-custom-root .frontend-notifications-custom-disclaimer-text {
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
  max-width: none;
}

/* Creative image frame + text overlay (CSS/runtime; WYSIWYG with admin preview) */
.frontend-notifications-creative-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.frontend-notifications-overlay {
  position: absolute;
  z-index: 1;
  max-width: calc(100% - 0.75rem);
  padding: 0.2rem 0.4rem;
  margin: 0;
  box-sizing: border-box;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 4px rgba(0, 0, 0, 0.45);
}

.frontend-notifications-overlay.no-shadow {
  text-shadow: none;
}

.frontend-notifications-overlay--top-left {
  top: 0.35rem;
  left: 0.35rem;
  text-align: left;
}

.frontend-notifications-overlay--top-center {
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.frontend-notifications-overlay--top-right {
  top: 0.35rem;
  right: 0.35rem;
  text-align: right;
}

.frontend-notifications-overlay--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.frontend-notifications-overlay--bottom-left {
  bottom: 0.35rem;
  left: 0.35rem;
  text-align: left;
}

.frontend-notifications-overlay--bottom-center {
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.frontend-notifications-overlay--bottom-right {
  bottom: 0.35rem;
  right: 0.35rem;
  text-align: right;
}

@media (max-width: 767.98px) {
  .frontend-notifications-overlay {
    font-size: 0.625rem;
    padding: 0.1rem 0.25rem;
  }
}

/* Disclosure label + endorsement disclaimer (HISA placement guidelines). */
.frontend-notifications-creative-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  max-width: 100%;
}

.frontend-notifications-disclosure-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #4b5563;
}

.frontend-notifications-disclosure-disclaimer {
  display: block;
  max-width: 728px;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: #4b5563;
}
.frontend-notifications-creative-frame picture {
  display: block;
}

/* Newer formats: Large leaderboard, Billboard, Large rectangle and Custom size cards. */
.frontend-notifications.large_leaderboard,
.frontend-notifications.billboard,
.frontend-notifications.large_rectangle,
.frontend-notifications.custom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Sign-in page: bigger formats sit under the sign-in form so the form stays first. */
.frontend-notifications-signin-extras {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin: 1.5rem auto 2rem;
  padding: 0 0.75rem;
}

@media (max-width: 767.98px) {
  .frontend-notifications-signin-extras {
    gap: 1rem;
    margin: 1rem auto 1.5rem;
  }
}

/* Signed-out pages other than sign-in (Public Rulings, registration, ...): formats stack above the page. */
.frontend-notifications-signed-out {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

