.recipient-page { overflow-wrap: anywhere; }
.recipient-heading {
  margin-bottom: 20px;
  padding: 8px 0 12px;
  background: radial-gradient(ellipse at top left, #d3fcf3 0%, transparent 68%) no-repeat;
  background-size: min(100%, 560px) 100%;
}
.recipient-heading p { margin: 0 0 6px; font-size: clamp(16px, 1.5vw, 22px); }
.exchanges-page .recipient-heading h1 { max-width: none; margin: 0; font-size: clamp(27px, 4vw, 52px); }
.recipient-heading-assigned { padding-bottom: 0; background: none; }
.recipient-heading-assigned p { margin-bottom: 12px; }
.recipient-reveal {
  --recipient-icon-size: clamp(26px, 5vw, 56px);
  display: grid;
  grid-template-columns: var(--recipient-icon-size) minmax(0, 1fr) var(--recipient-icon-size);
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  padding: clamp(16px, 2vw, 28px) clamp(12px, 3vw, 44px);
  border-radius: clamp(10px, 1.3vw, 16px);
  background: #04182f;
  text-align: center;
}
.recipient-reveal h1 { grid-column: 2; }
.recipient-reveal-label,
.recipient-reveal-name { display: block; overflow-wrap: anywhere; }
.recipient-reveal-label { color: #cbd4da; font-size: clamp(16px, 2.5vw, 32px); }
.recipient-reveal-name { color: #d3fcf3; font-size: clamp(28px, 5.4vw, 70px); line-height: 1.12; }
.recipient-reveal-icon { grid-column: 3; font-size: var(--recipient-icon-size); line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .recipient-reveal-name { animation: recipient-name-bounce 360ms ease-out; }

  @keyframes recipient-name-bounce {
    0% { transform: translateY(6px) scale(.92); }
    60% { transform: translateY(-2px) scale(1.035); }
    80% { transform: scale(.99); }
    100% { transform: none; }
  }
}

.recipient-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.recipient-card { min-width: 0; padding: clamp(14px, 2vw, 26px); background: #fff; border: 1px solid #cbd4da; border-radius: 10px; }
.exchanges-page .recipient-card h2 { margin: 0 0 4px; font-size: clamp(21px, 2.5vw, 32px); }
.recipient-card h3 { margin: 16px 0 8px; }
.recipient-card p { margin: 0; }
.recipient-card h2 + p { color: #485465; }
.recipient-products, .recipient-external { list-style: none; margin: 0; padding: 0; }
.recipient-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recipient-product { padding: 8px; border: 1px solid #cbd4da; border-radius: 9px; }
.recipient-product h4 { margin: 5px 0 0; line-height: 1.25; }
.recipient-product-image { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 6px; background: #eef3f4; }
.recipient-price { font-weight: 700; }
.recipient-external li { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 0 12px; padding: 4px 0; border-bottom: 1px solid #d9e0e4; }
.recipient-external li div { flex: 1 1 150px; }
.recipient-card .recipient-empty { display: grid; justify-items: center; gap: 12px; padding: 24px 12px; border-radius: 9px; background: #eef3f4; text-align: center; }
.exchanges-page .recipient-purchase form { max-width: none; margin-top: 22px; }
.recipient-purchase p + p { margin-top: 8px; }
.exchanges-page input.recipient-purchase-action { min-height: 48px; background: #04182f; color: #d3fcf3; font-weight: 700; }
.exchanges-page input.recipient-purchase-undo { background: #fff; color: #04182f; border: 1px solid #04182f; }

@media (max-width: 680px) {
  .exchanges-dashboard > main.exchanges-content:has(> .exchange-back-link + .recipient-page) { padding-top: 12px; }
}

@media (max-width: 760px) {
  .recipient-reveal { padding: 28px clamp(12px, 3vw, 44px); }
  .recipient-reveal-name { font-size: clamp(32px, 5.4vw, 70px); line-height: 2; }
  .recipient-layout { grid-template-columns: minmax(0, 1fr); }
  .recipient-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
