/* The reminder of the spend offer: a card like the site's others (the system's corner, no rule
   down its side), in the type scale of base.css. */
#cw .cw-offer-nudge {
  position: fixed;
  z-index: 800;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(344px, calc(100% - 32px));
  padding: 20px 20px 12px;
  border: 1px solid var(--cw-line-strong);
  border-radius: var(--cw-radius);
  background: var(--cw-cream);
  box-shadow: 0 8px 32px rgb(62 34 9 / 16%);
  color: var(--cw-brown);
}

#cw .cw-offer-nudge__headline {
  padding-inline-end: 28px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

#cw .cw-offer-nudge__headline em {
  font-family: var(--cw-font-accent);
}

#cw .cw-offer-nudge__detail {
  margin-block: 8px 4px;
  color: var(--cw-brown-soft);
  font-size: 14px;
  line-height: 1.45;
}

#cw .cw-offer-nudge__close {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  width: 44px;
  height: 44px;
}

#cw .cw-offer-nudge__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  #cw:has(.cw-buybar[data-shown="true"]) .cw-offer-nudge {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  #cw .cw-offer-nudge { padding: 16px 16px 8px; }
  #cw .cw-offer-nudge__headline { font-size: 18px; }
}
