.aswp-surface, .aswp-surface * { box-sizing: border-box; }
.aswp-surface {
  --aswp-ink: #0a2338; --aswp-blue: #165f9d; --aswp-line: #d8e5ef;
  position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 0; right: 0;
  z-index: 10000; padding: 0 12px; pointer-events: none;
  font: 15px/1.4 system-ui, sans-serif; color: var(--aswp-ink);
}
.aswp-bar {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  width: min(100%, 860px); margin: 0 auto; padding: 12px 14px;
  border: 1px solid var(--aswp-line); border-radius: 14px; background: #fff;
  box-shadow: 0 8px 28px rgba(10, 35, 56, .18);
}
.aswp-summary { flex: 1 1 auto; min-width: 0; }
.aswp-surface .aswp-title { display: block; color: var(--aswp-ink); overflow-wrap: anywhere; }
.aswp-surface .aswp-kicker {
  display: block; font-size: 12px; font-weight: 700; color: #24557c; margin-bottom: 2px;
}
.aswp-surface .aswp-message { margin: 4px 0 0; color: #344c62; white-space: pre-line; overflow-wrap: anywhere; }
.aswp-surface .aswp-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  flex: 0 0 auto; border: 0; border-radius: 8px; padding: 8px 13px; background: var(--aswp-blue);
  color: #fff; font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.aswp-surface .aswp-action:hover { background: #104b7e; color: #fff; }
.aswp-surface .aswp-dismiss {
  flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 8px;
  color: var(--aswp-ink); background: transparent; cursor: pointer; padding: 0; font: 26px/1 system-ui, sans-serif;
}
.aswp-surface .aswp-dismiss:hover { background: #edf5fb; }
.aswp-surface :is(a, button):focus-visible { outline: 3px solid #1978b7; outline-offset: 3px; }
@media (max-width: 640px) {
  .aswp-bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 8px; padding: 9px 10px; }
  .aswp-summary { grid-column: 1; grid-row: 1; }
  .aswp-bar > .aswp-action { grid-column: 1; grid-row: 2; justify-self: start; }
  .aswp-bar > .aswp-dismiss { grid-column: 2; grid-row: 1; align-self: start; }
}

/* Card anchors do not create a backdrop, trap focus, or lock the page. */
.aswp-surface-card {
  --aswp-card-inset: clamp(12px, 2vw, 28px);
  display: flex; align-items: flex-end;
  padding-inline: max(var(--aswp-card-inset), env(safe-area-inset-left)) max(var(--aswp-card-inset), env(safe-area-inset-right));
  bottom: max(var(--aswp-card-inset), env(safe-area-inset-bottom));
}
.aswp-surface-card.aswp-position-bottom-left { justify-content: flex-start; }
.aswp-surface-card.aswp-position-bottom-right { justify-content: flex-end; }
.aswp-surface-card.aswp-position-bottom-center { justify-content: center; }
/* Dark card only. The banner and details dialog use their own styles. */
.aswp-surface .aswp-card {
  pointer-events: auto; position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  width: min(100%, 326px); max-height: min(390px, 74vh); max-height: min(390px, 74dvh); overflow: auto;
  border: 1px solid #345675; border-radius: 16px; padding: 10px 15px 14px;
  background: radial-gradient(ellipse at 100% 0%, #25365f 0%, #102a43 52%, #0a2136 100%);
  box-shadow: 0 16px 36px rgba(4, 18, 32, .35);
  color: #f4f8fe; font-family: "IBM Plex Sans", system-ui, sans-serif;
  scrollbar-width: thin; scrollbar-color: #6286ae #102a43;
}
.aswp-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.aswp-surface .aswp-card-header .aswp-kicker {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; margin: 0; padding: 5px 8px;
  background: #243858; border: 1px solid #4f6292; border-radius: 6px;
  color: #e1e9ff; font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .015em;
}

.aswp-surface .aswp-card .aswp-card-dismiss { position: static; flex: 0 0 44px; width: 44px; height: 44px; margin: -4px -5px -4px 0; color: #e6effc; background: transparent; }
.aswp-surface .aswp-card .aswp-card-dismiss:hover { background: #2b4764; color: #fff; }
.aswp-card-body { min-width: 0; width: 100%; }
.aswp-surface .aswp-card .aswp-title { margin: 0; color: #f8fbff; font-size: 21px; line-height: 1.18; font-weight: 650; }
.aswp-surface .aswp-card .aswp-message { margin: 8px 0 0; color: #d9e5f4; font-size: 13px; line-height: 1.4; }
.aswp-surface .aswp-media { aspect-ratio: 16 / 9; width: 100%; margin: 0 0 12px; border-radius: 8px; overflow: hidden; background: #eef5fb; }
.aswp-surface .aswp-media-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.aswp-surface .aswp-card .aswp-media { aspect-ratio: 2.5 / 1; margin: 8px 0 0; border: 1px solid #3b587a; background: #142e49; }
.aswp-surface .aswp-card > .aswp-action {
  text-align: center; max-width: 100%; min-height: 44px; overflow-wrap: anywhere;
}
.aswp-surface .aswp-card > .aswp-action:not(.aswp-action-secondary) {
  background: linear-gradient(103deg,#1e5795,#504396); border: 1px solid #6988c7; border-radius: 8px; color: #fff;
}
.aswp-surface .aswp-card > .aswp-action:not(.aswp-action-secondary):hover { background: linear-gradient(103deg,#16467c,#42337e); }
.aswp-surface .aswp-card :is(a,button):focus-visible { outline-color: #b1cfff; outline-offset: 2px; }
@media (max-width: 640px) {
  .aswp-surface-card.aswp-position-bottom-left, .aswp-surface-card.aswp-position-bottom-right { justify-content: center; }
  .aswp-surface .aswp-card { gap: 8px; width: min(100%, 338px); max-height: min(340px, 62vh); max-height: min(340px, 62dvh); padding: 8px 12px 12px; }
  .aswp-surface .aswp-card .aswp-media { aspect-ratio: 2.8 / 1; }
}

/* Standard bar: a full-width page-flow placement, never a viewport overlay. */
.aswp-surface.aswp-surface-inline {
  position: static; inset: auto; z-index: auto; display: block;
  width: 100%; max-width: none; margin: 0; padding: 0;
  pointer-events: auto; color: var(--aswp-ink); background: #edf5fb;
  border-block: 1px solid var(--aswp-line);
}
.aswp-surface-inline .aswp-bar {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px clamp(14px, 3vw, 28px);
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.aswp-surface-inline .aswp-summary { align-self: center; }

@media (max-width: 640px) {
  .aswp-surface-inline .aswp-bar { gap: 5px 8px; padding: 7px 14px 10px; }
  .aswp-surface-inline .aswp-bar > .aswp-dismiss { align-self: start; }
}

/* Accounting Seed: apply the theme's CTA tokens without styling other site buttons. */
.aswp-surface {
  --aswp-orange: var(--color-button-primary, #e8864d);
  --aswp-orange-hover: var(--color-button-primary-hover, #f29c70);
  --aswp-orange-active: var(--color-button-primary-active, #d67539);
  --aswp-panel: color-mix(in srgb, var(--color-dark-bg, #0d1f3a) 77%, #14283e);
  --aswp-border: #34506f;
  font-family: var(--font-primary, "IBM Plex Sans", system-ui, sans-serif);
}
.aswp-surface a.aswp-action:not(.aswp-action-secondary), .aswp-surface .aswp-card > a.aswp-action:not(.aswp-action-secondary) {
  background: var(--aswp-orange); color: #050a12; border: 0; border-radius: 8px;
  font-size: .95rem; font-weight: 600; line-height: 1.35; padding: 8px 16px;
  box-shadow: none; text-align: center; max-width: 100%; white-space: normal;
  overflow-wrap: anywhere; text-decoration: none;
}
.aswp-surface a.aswp-action:not(.aswp-action-secondary):hover, .aswp-surface .aswp-card > a.aswp-action:not(.aswp-action-secondary):hover {
  background: var(--aswp-orange-hover); color: #050a12;
}
.aswp-surface a.aswp-action:not(.aswp-action-secondary):active, .aswp-surface .aswp-card > a.aswp-action:not(.aswp-action-secondary):active {
  background: var(--aswp-orange-active); color: #050a12;
}
.aswp-surface .aswp-action-secondary, .aswp-surface .aswp-action-secondary:hover {
  background: #253b58; color: #f4f8fe; border: 1px solid #567499;
  font-weight: 600; padding-inline: 16px;
}
.aswp-surface .aswp-action-secondary:hover { background: #324d70; }
.aswp-surface .aswp-action-arrow { gap: 9px; text-align: center; }
.aswp-surface .aswp-cta-arrow { flex: 0 0 auto; line-height: 1; }
.aswp-surface .aswp-bar {
  background: #14283e; background: var(--aswp-panel);
  color: #eef4fc; border-color: var(--aswp-border);
}
.aswp-surface .aswp-title { color: #f7faff; }
.aswp-surface .aswp-kicker { color: #b1d5fd; }
.aswp-surface .aswp-message { color: #d2dfef; }
.aswp-surface .aswp-dismiss { color: #e7f1ff; }
.aswp-surface .aswp-dismiss:hover { background: #253b58; color: #fff; }
.aswp-surface :is(a, button):focus-visible { outline-color: #b1cfff; }
.aswp-surface.aswp-surface-inline {
  color: #eef4fc; background: #14263e; border-block-color: #34506f;
}
.aswp-surface.aswp-surface-inline .aswp-bar {
  background: transparent; gap: 8px 12px; padding-block: 5px;
}
.aswp-surface-inline .aswp-summary { line-height: 1.25; }

.aswp-surface.aswp-surface-inline .aswp-inline-content > a.aswp-text-link {
  display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; min-height: 32px;
  max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none;
  color: #c9e3ff; font-size: 14px; font-weight: 600; line-height: 20px;
  gap: 6px; text-decoration: none; overflow-wrap: anywhere;
}
.aswp-surface-inline .aswp-link-label { text-decoration: underline; text-underline-offset: .18em; }
.aswp-surface.aswp-surface-inline .aswp-inline-content > a.aswp-text-link:is(:hover, :active) {
  background: transparent; color: #fff;
}
.aswp-surface .aswp-card { width: min(100%, 308px); gap: 8px; padding: 8px 12px 12px; }
.aswp-surface .aswp-card .aswp-title { font-size: 18px; line-height: 1.2; font-weight: 600; }
.aswp-surface .aswp-card .aswp-media {
  aspect-ratio: auto; overflow: visible; border: 0; background: transparent;
  margin-block: 14px 6px;
}
.aswp-surface .aswp-card .aswp-media-image {
  max-height: 105px; height: auto; width: auto; max-width: 100%;
  margin-inline: auto; border-radius: 8px;
}
@media (max-width: 640px) {
  .aswp-surface.aswp-surface-inline .aswp-bar { padding-block: 7px; }
  .aswp-surface .aswp-card .aswp-title { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .aswp-surface .aswp-card > .aswp-action { margin-block-start: 4px; }
  .aswp-surface .aswp-card .aswp-media { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aswp-surface .aswp-action, .aswp-surface .aswp-action:hover { transition: none; transform: none; }
}

/* The menu strip reads as one announcement; the dismiss control stays at the edge. */
.aswp-surface.aswp-surface-inline {
  background: #13263e;
  border-block-start: 0;
  border-block-end-color: #2b4663;
}
.aswp-surface.aswp-surface-inline .aswp-bar {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  column-gap: 10px; row-gap: 0; padding-block: 6px;
}
.aswp-inline-content {
  grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-self: center;
  gap: 6px 14px; flex-wrap: wrap; min-width: 0; max-width: 100%; padding-block: 6px;
}
.aswp-surface-inline .aswp-summary {
  display: flex; align-items: baseline; min-width: 0;
  flex: 0 1 auto; gap: 4px 10px; flex-wrap: wrap;
}
.aswp-surface.aswp-surface-inline :is(.aswp-title, .aswp-kicker) {
  font-size: 14px; font-weight: 600; line-height: 20px; margin: 0;
}
.aswp-surface-inline .aswp-kicker {
  display: block; position: relative; padding-inline-start: 14px; white-space: nowrap;
}
.aswp-surface-inline .aswp-kicker::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
}
.aswp-surface-inline .aswp-message { flex-basis: 100%; }
.aswp-surface-inline .aswp-bar > .aswp-dismiss {
  grid-row: 1; grid-column: 3; align-self: center; font-size: 21px;
}
@media (min-width: 641px) {
  .aswp-surface-floating:is(.aswp-position-bottom-left, .aswp-position-bottom-right) .aswp-bar {
    width: fit-content; max-width: min(100%, 860px);
  }
  .aswp-surface-floating.aswp-position-bottom-left .aswp-bar { margin-inline: 0 auto; }
  .aswp-surface-floating.aswp-position-bottom-right .aswp-bar { margin-inline: auto 0; }
}
@media (min-width: 900px) {
  .aswp-inline-content { flex-wrap: nowrap; }
  .aswp-surface-inline .aswp-summary {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
  }
  .aswp-surface-inline .aswp-title {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .aswp-surface-inline .aswp-message { grid-column: 1 / -1; }
  .aswp-surface.aswp-surface-inline .aswp-inline-content > a.aswp-text-link {
    flex: 0 0 auto; white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .aswp-surface.aswp-surface-inline .aswp-bar {
    /* Reserve equal space on both sides so the close button doesn't shift the center. */
    grid-template-columns: 44px minmax(0, 1fr) 44px; column-gap: 4px; padding-block: 7px;
  }
  .aswp-surface-inline .aswp-inline-content {
    grid-column: 2; justify-self: stretch; flex-direction: column;
    align-items: center; gap: 0; padding-block: 3px;
  }
  .aswp-surface-inline .aswp-summary { display: block; flex: 0 0 auto; width: 100%; }
  .aswp-surface.aswp-surface-inline .aswp-title { margin-block-start: 2px; }
  .aswp-surface-inline .aswp-bar > .aswp-dismiss { grid-column: 3; align-self: start; }
}

/* Live-style status indicator for both registration and on-demand promos. */
.aswp-surface:not(.aswp-surface-inline) .aswp-kicker {
  display: inline-flex; align-items: center; gap: 7px;
}
.aswp-surface .aswp-kicker::before {
  content: ""; display: inline-block; flex: 0 0 6px; width: 6px; height: 6px;
  border-radius: 50%; background: #56e5a0;
  animation: aswp-status-pulse 1.5s ease-out infinite;
}
@keyframes aswp-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(86, 229, 160, .65); }
  75%, 100% { box-shadow: 0 0 0 5px rgba(86, 229, 160, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .aswp-surface .aswp-kicker::before { animation: none; }
}

/* Fade at the footer without moving the bar or leaving hidden controls clickable. */
.aswp-surface-floating > .aswp-bar,
.aswp-surface-card > .aswp-card {
  opacity: 1;
  transition: opacity 160ms ease-out, visibility 0s;
}
.aswp-surface-floating.aswp-footer-clear:not(:focus-within) > .aswp-bar,
.aswp-surface-card.aswp-footer-clear:not(:focus-within) > .aswp-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease-in, visibility 0s linear 160ms;
}
.aswp-surface-floating:focus-within > .aswp-bar,
.aswp-surface-card:focus-within > .aswp-card {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .aswp-surface-floating > .aswp-bar,
  .aswp-surface-card > .aswp-card,
  .aswp-surface-floating.aswp-footer-clear:not(:focus-within) > .aswp-bar,
  .aswp-surface-card.aswp-footer-clear:not(:focus-within) > .aswp-card {
    transition: none;
  }
}

.aswp-surface .aswp-card .aswp-card-dismiss { margin-inline-start: auto; }

.aswp-surface.aswp-title-left .aswp-title, .aswp-surface.aswp-message-left .aswp-message { text-align: left; }
.aswp-surface.aswp-title-center .aswp-title, .aswp-surface.aswp-message-center .aswp-message { text-align: center; }
@media (min-width: 900px) {
  .aswp-surface-inline .aswp-summary-no-badge { grid-template-columns: minmax(0, 1fr); }
}

/* A page-flow bar can sit above the fixed menu without overlaying it. */
.aswp-fixed-menu-offset { top: var(--aswp-fixed-menu-top); }
.aswp-surface.aswp-no-status-dot .aswp-kicker::before { content: none; }
