.wex-promo {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(24px, env(safe-area-inset-right));
  inset-block-end: max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(368px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 8px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #ffffff24;
  border-radius: 20px;
  background: #0c0b10;
  box-shadow: 0 12px 32px #1d102947, 0 2px 6px #00000029;
  color: #fcfaff;
  font: 400 14px/1.35 system-ui, sans-serif;
  text-align: left;
  animation: wex-promo-in 230ms ease-out both;
}

.wex-promo p { margin: 0; }
.wex-promo .wex-promo-art { display: block; box-sizing: border-box; width: 56px; height: 56px; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 12px; }
.wex-promo .wex-promo-copy { min-width: 0; }
.wex-promo .wex-promo-label { color: #d3cad9; font-size: 11px; }
.wex-promo .wex-promo-label a { color: inherit; text-decoration: none; }
.wex-promo .wex-promo-label a:hover { text-decoration: underline; }
.wex-promo .wex-promo-title { margin: 3px 0 2px; font-size: 17px; font-weight: 780; line-height: 1.18; }
.wex-promo .wex-promo-description { color: #e0d6e5; font-size: 12px; }
.wex-promo .wex-promo-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #292530;
  color: #fff;
  font: 400 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.wex-promo .wex-promo-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #caa3ff;
  color: #170e22;
  font-weight: 760;
  text-decoration: none;
}


.wex-promo a:focus-visible, .wex-promo button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body:has(.wex-promo) { padding-block-end: calc(206px + env(safe-area-inset-bottom)); }

@media (max-width: 699px) {
  .wex-promo {
    inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    inset-block-end: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }
  body:has(input:focus, textarea:focus, [contenteditable=true]:focus) .wex-promo {
    visibility: hidden;
  }
}

@keyframes wex-promo-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wex-promo { animation: none; }
}
