:root {
  --wcw-brand: #751716;
  --wcw-brand-dark: #4a0d0d;
  --wcw-brand-light: #a73b37;
  --wcw-ink: #221f1f;
  --wcw-muted: #5c4f4f;
  --wcw-surface: #ffffff;
  --wcw-surface-soft: #fbf4f1;
  --wcw-border: #e4d3ce;
}

body.wcw-exchange-popup-open { overflow: hidden; }
.wcw-exchange-popup[hidden] { display: none; }

.wcw-exchange-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Segoe UI", Arial, sans-serif;
  opacity: 0;
  transition: opacity 220ms ease;
}

.wcw-exchange-popup.is-visible { opacity: 1; }
.wcw-exchange-backdrop { position: absolute; inset: 0; background: rgba(25, 20, 28, .72); }

.wcw-exchange-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--wcw-border);
  border-radius: 12px;
  background: var(--wcw-surface);
  box-shadow: 0 18px 48px rgba(20, 13, 23, .28);
  transform: translateY(12px);
  transition: transform 220ms ease;
}

.wcw-exchange-popup.is-visible .wcw-exchange-card { transform: translateY(0); }

.wcw-exchange-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 32px 20px;
  color: #fff;
  background: var(--wcw-brand);
}

.wcw-exchange-brand::before { content: ""; width: 56px; height: 3px; margin-bottom: 8px; background: rgba(255, 255, 255, .7); }
.wcw-exchange-brand span { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.wcw-exchange-brand strong { margin-top: 2px; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; writing-mode: vertical-rl; text-orientation: mixed; }
.wcw-exchange-content { padding: 30px 36px 34px; }

.wcw-exchange-kicker {
  margin: 0 42px 10px 0;
  color: var(--wcw-brand);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wcw-exchange-content h2 { margin: 0 40px 18px 0; color: var(--wcw-ink); font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.05; }
.wcw-exchange-content h2 span, .wcw-exchange-reach strong { color: var(--wcw-brand); }
.wcw-exchange-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.wcw-exchange-details > div { min-height: 70px; padding: 12px 15px; border: 1px solid var(--wcw-border); border-left: 4px solid var(--wcw-brand); border-radius: 6px; background: var(--wcw-surface-soft); }
.wcw-exchange-details small, .wcw-exchange-details strong { display: block; }
.wcw-exchange-details small { margin-bottom: 2px; color: var(--wcw-muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wcw-exchange-details strong { color: var(--wcw-ink); font-size: .92rem; line-height: 1.3; }
.wcw-exchange-intro { margin: 0; color: var(--wcw-muted); font-size: .98rem; line-height: 1.65; }
.wcw-exchange-callout { margin: 17px 0 20px; padding: 10px 0 10px 15px; border-left: 3px solid var(--wcw-brand); color: var(--wcw-ink); font-weight: 650; line-height: 1.45; }
.wcw-exchange-reach { margin: 18px 0 23px; padding: 16px 0; border-top: 1px solid var(--wcw-border); border-bottom: 1px solid var(--wcw-border); }
.wcw-exchange-reach-title { margin: 0 0 11px; color: var(--wcw-ink); font-size: .9rem; font-weight: 800; }
.wcw-exchange-reach ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin: 0; padding: 0; list-style: none; }
.wcw-exchange-reach li { position: relative; padding-left: 16px; color: var(--wcw-muted); font-size: .78rem; line-height: 1.35; }
.wcw-exchange-reach li::before { content: ""; position: absolute; top: .42em; left: 0; width: 7px; height: 7px; background: var(--wcw-brand); }

.wcw-exchange-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 5px;
  color: #fff;
  background: var(--wcw-brand);
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease;
}

.wcw-exchange-cta:hover { color: #fff; background: var(--wcw-brand-dark); }
.wcw-exchange-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 4px; color: #fff; background: var(--wcw-brand); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.wcw-exchange-close:hover, .wcw-exchange-close:focus-visible { background: var(--wcw-brand-dark); outline: 2px solid var(--wcw-brand-light); outline-offset: 2px; }

@media (max-width: 700px) {
  .wcw-exchange-popup { padding: 14px; }
  .wcw-exchange-card { grid-template-columns: 1fr; max-height: calc(100vh - 28px); border-radius: 8px; }
  .wcw-exchange-brand { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 54px; padding: 13px 20px; }
  .wcw-exchange-brand::before { width: 3px; height: 26px; margin: 0; }
  .wcw-exchange-brand strong { margin: 0; font-size: .95rem; writing-mode: horizontal-tb; }
  .wcw-exchange-content { padding: 25px 22px 24px; }
  .wcw-exchange-content h2 { margin-right: 20px; font-size: 1.75rem; }
  .wcw-exchange-intro { font-size: .9rem; }
  .wcw-exchange-details, .wcw-exchange-reach ul { grid-template-columns: 1fr; }
  .wcw-exchange-close { top: 9px; right: 9px; background: rgba(0, 0, 0, .22); }
  .wcw-exchange-cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wcw-exchange-popup, .wcw-exchange-card, .wcw-exchange-cta { transition: none; }
}
