/* Single voucher entry and amount selection. No account or redemption logic here. */
#rw-voucher-home { margin-top: 20px; }
#rw-app .rw-voucher-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid #687699; border-radius: 20px; background: #172039;
  color: var(--rw-text); font: inherit; cursor: pointer;
}
#rw-app .rw-voucher-card:hover { border-color: #b6a7ff; background: #202943; }
#rw-app .rw-voucher-card:focus-visible { outline: 3px solid var(--rw-gold); outline-offset: 5px; }
.rw-voucher-art { display: grid; place-items: center; min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #f3f5fa; }
.rw-voucher-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rw-voucher-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-width: 0; padding: clamp(24px, 3.5vw, 40px); }
.rw-voucher-logo { display: block; width: 52px; height: 52px; object-fit: contain; flex: none; }
.rw-voucher-copy .rw-voucher-title { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.rw-voucher-description { margin: 0; color: #c8d1e6; font-size: 1rem; line-height: 1.65; }
#rw-voucher-from { color: var(--rw-gold); font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.rw-voucher-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: 8px; padding: 12px 20px; border-radius: 10px; background: #b6a7ff; color: #17112c; font-size: 1rem; font-weight: 700; line-height: 1.5; }
#rw-voucher-detail { margin-top: 20px; scroll-margin-top: 24px; }
#rw-app[data-voucher-detail='true'] > :is(.rw-dashboard-head, .rw-overview, .rw-guide, #rw-mode-nav, #rw-withdraw, .rw-info) { display: none; }
.rw-voucher-back { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 22px; padding: 10px 16px; border: 1px solid #5e6d8a; border-radius: 10px; background: #1d263a; color: #e6eaff; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.rw-voucher-back:hover { border-color: #b6a7ff; background: #303853; }
.rw-voucher-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.rw-voucher-detail-head img, .rw-voucher-detail-head svg { width: 52px; height: 52px; object-fit: contain; flex: none; }
.rw-voucher-detail-head > div { min-width: 0; }
.rw-voucher-detail-head h3 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.rw-voucher-detail-head p { margin: 6px 0 0; color: var(--rw-muted); font-size: .9375rem; line-height: 1.65; }
.rw-voucher-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); gap: 24px; align-items: start; }
.rw-amount-options { min-width: 0; }
#rw-app .rw-amount-options .rw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#rw-app .rw-amount-options .rw-denom {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  min-height: 144px; height: 100%; gap: 10px; padding: 20px 16px;
  border: 2px solid #57647f; border-radius: 14px; background: #1a243a;
  color: #f5f7ff; text-align: left; font: inherit; cursor: pointer;
}
#rw-app .rw-amount-options .rw-denom > span:first-child { font-size: 1.75rem; line-height: 1.25; font-weight: 700; }
#rw-app .rw-amount-options .rw-denom-cost { font-size: .9375rem; line-height: 1.5; color: #ffda94; font-weight: 600; }
#rw-app .rw-amount-options .rw-denom-status { width: 100%; font-size: .875rem; line-height: 1.5; color: #afdcca; font-weight: 500; }
#rw-app .rw-amount-options .rw-denom:hover:not(:disabled) { border-color: #b6a7ff; background: #2c2b49; }
#rw-app .rw-amount-options .rw-denom[aria-pressed='true'] { border-color: #c4b3ff; background: #352b54; }
#rw-app .rw-amount-options .rw-denom[aria-pressed='true']::after { content: 'Selected ✓'; display: block; padding: 3px 8px; border-radius: 6px; background: #c4b3ff; color: #201634; font-size: .875rem; line-height: 1.5; font-weight: 700; }
#rw-app .rw-amount-options .rw-denom:disabled { border-color: #45516b; background: #151e31; cursor: not-allowed; }
#rw-app .rw-amount-options .rw-denom:disabled .rw-denom-cost { color: #d0d8e8; }
#rw-app .rw-amount-options .rw-denom:disabled .rw-denom-status { color: #bdc8de; }
.rw-selection { position: sticky; top: 24px; min-width: 0; padding: 24px; border: 1px solid #71638d; border-radius: 16px; background: #242038; }
.rw-selection h4 { margin: 0 0 18px; font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.rw-selection > p { margin: 12px 0; color: #cdd4e7; font-size: .9375rem; line-height: 1.65; }
.rw-selection dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; margin: 20px 0; padding-block: 18px; border-block: 1px solid #544866; }
.rw-selection dt { color: #ccd2e4; font-size: .875rem; line-height: 1.5; }
.rw-selection dd { margin: 0; text-align: right; font-size: .9375rem; line-height: 1.5; font-weight: 600; color: #f5f7ff; overflow-wrap: anywhere; }
#rw-detail-balance { color: var(--rw-gold); font-weight: 700; overflow-wrap: anywhere; }
#rw-selection-cost { color: #f5f7ff; font-weight: 600; overflow-wrap: anywhere; }
#rw-selection-after { color: #b8e0cf; font-weight: 600; overflow-wrap: anywhere; }
#rw-selection-note { color: #d4cbea; font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
#rw-request-code { display: block; width: 100%; min-height: 48px; margin-top: 18px; padding: 12px 16px; border: 1px solid #b6a7ff; border-radius: 10px; background: #b6a7ff; color: #17112c; font: inherit; font-weight: 700; cursor: pointer; }
#rw-request-code:hover:not(:disabled) { background: #cabdff; border-color: #cabdff; }
#rw-request-code:disabled { background: #313044; color: #c6cad9; border-color: #64647d; cursor: not-allowed; }
.rw-delivery-note { margin: 18px 0 0; padding: 16px 18px; border: 1px solid #3e4b68; border-radius: 12px; background: #151d30; color: #c5cfe3; font-size: .875rem; line-height: 1.75; }
.rw-delivery-note b { color: #eef0fb; font-weight: 600; }
@media (max-width: 960px) {
  .rw-voucher-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rw-selection { position: static; }
  .rw-selection dl { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 700px) {
  #rw-app .rw-voucher-card { grid-template-columns: minmax(0, 1fr); }
  .rw-voucher-copy { gap: 10px; padding: 24px; }
  .rw-voucher-logo { width: 44px; height: 44px; }
  .rw-voucher-copy .rw-voucher-title { font-size: 1.875rem; }
  .rw-voucher-cta { width: 100%; margin-top: 10px; }
  #rw-app .rw-amount-options .rw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-voucher-detail-head { gap: 12px; align-items: flex-start; }
  .rw-voucher-detail-head img, .rw-voucher-detail-head svg { width: 44px; height: 44px; }
  .rw-voucher-detail-head h3 { font-size: 1.375rem; }
  .rw-selection { padding: 20px; }
  .rw-selection dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 359px) {
  #rw-app .rw-amount-options .rw-grid { grid-template-columns: minmax(0, 1fr); }
  #rw-app .rw-amount-options .rw-denom { min-height: 136px; }
  .rw-voucher-copy { padding: 20px; }
  .rw-voucher-detail-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  #rw-voucher-home *, #rw-voucher-detail * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
