.wallet-page-body,
.coupon-detail-page-body {
  background:#f3f5f4;
  color:#17211f;
}

.wallet-main,
.coupon-detail-main {
  width:100%;
  min-width:0;
}

.wallet-page,
.wallet-page *,
.coupon-detail-page,
.coupon-detail-page * {
  box-sizing:border-box;
}

.wallet-page {
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
  padding:42px 0 72px;
}

.wallet-hero {
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items:end;
  gap:42px;
  padding:36px 38px;
  border:1px solid #d8dedb;
  border-radius:22px;
  background:#fffcf7;
  box-shadow:0 14px 32px rgba(23, 33, 31, .07);
}

.wallet-eyebrow,
.coupon-detail-eyebrow {
  margin:0 0 8px;
  color:#b93424;
  font-size:.78rem;
  font-weight:900;
  line-height:1.4;
  letter-spacing:0;
}

.wallet-hero h1 {
  margin:0;
  font-size:2.45rem;
  line-height:1.15;
  letter-spacing:0;
}

.wallet-hero-copy > p:last-child {
  margin:16px 0 0;
  color:#5d6864;
  line-height:1.7;
  word-break:keep-all;
}

.wallet-summary {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  min-width:0;
  margin:0;
  padding:0;
  border-top:1px solid #d9dfdc;
  border-bottom:1px solid #d9dfdc;
}

.wallet-summary-item {
  min-width:0;
  padding:15px 10px;
  border-right:1px solid #d9dfdc;
  text-align:center;
}

.wallet-summary-item:last-child {
  border-right:0;
}

.wallet-summary-item dt {
  color:#6e7874;
  font-size:.72rem;
  font-weight:800;
  line-height:1.35;
  word-break:keep-all;
}

.wallet-summary-item dd {
  margin:5px 0 0;
  font-size:1.35rem;
  font-weight:900;
  line-height:1;
}

.wallet-summary-item--available dd {
  color:#147d68;
}

.wallet-summary-item--upcoming dd {
  color:#315e9b;
}

.wallet-summary-item--used dd {
  color:#66716d;
}

.wallet-storage-note {
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:14px 4px 0;
  color:#66716d;
  font-size:.82rem;
  line-height:1.55;
  word-break:keep-all;
}

.wallet-storage-note span {
  color:#315e9b;
  font-weight:900;
}

.wallet-collection {
  margin-top:44px;
}

.wallet-collection-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}

.wallet-collection-heading h2 {
  margin:0;
  font-size:1.55rem;
  line-height:1.3;
  letter-spacing:0;
}

.wallet-sort-note {
  margin:7px 0 0;
  color:#65706b;
  font-size:.82rem;
  font-weight:800;
}

.wallet-tabs {
  display:flex;
  max-width:100%;
  padding:4px;
  border:1px solid #d4dbd8;
  border-radius:10px;
  background:#e9edeb;
}

.wallet-tab {
  min-height:44px;
  padding:9px 13px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#53605b;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  line-height:1.35;
  white-space:nowrap;
  cursor:pointer;
}

.wallet-tab span {
  display:inline-grid;
  min-width:20px;
  height:20px;
  margin-left:3px;
  place-items:center;
  border-radius:10px;
  background:#d8dfdc;
  font-size:.68rem;
}

.wallet-tab[aria-selected="true"] {
  background:#fff;
  color:#17211f;
  box-shadow:0 2px 6px rgba(23, 33, 31, .09);
}

.wallet-tab[aria-selected="true"] span {
  background:#e4f1ee;
  color:#126653;
}

.wallet-tab:focus-visible,
.wallet-primary-action:focus-visible,
.wallet-detail-link:focus-visible,
.wallet-empty-action:focus-visible,
.wallet-retry:focus-visible,
.store-promotion-link:focus-visible,
.coupon-detail-back a:focus-visible,
.coupon-detail-staff summary:focus-visible,
.coupon-detail-use-button:focus-visible,
.coupon-detail-staff input:focus-visible {
  outline:3px solid #b93424;
  outline-offset:3px;
}

.wallet-panel {
  min-width:0;
}

.wallet-panel:focus {
  outline:none;
}

.wallet-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:start;
  gap:22px;
  min-width:0;
}

.wallet-coupon {
  --wallet-status:#66716d;
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid #d4dad7;
  border-top:5px solid var(--wallet-status);
  border-radius:20px;
  background:#fffcf7;
  box-shadow:0 13px 28px rgba(23, 33, 31, .08);
}

.wallet-coupon--available {
  --wallet-status:#147d68;
}

.wallet-coupon--not_yet_usable {
  --wallet-status:#315e9b;
}

.wallet-coupon--expired,
.wallet-coupon--cancelled,
.wallet-coupon--used {
  color:#59635f;
  background:#f7f8f7;
  box-shadow:0 8px 20px rgba(23, 33, 31, .05);
}

.wallet-coupon--expired,
.wallet-coupon--cancelled {
  --wallet-status:#8b8e8c;
}

.wallet-coupon-header {
  display:flex;
  min-height:46px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 22px 10px;
}

.wallet-status-badge {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:14px;
  background:#e7ecea;
  color:#4f5c57;
  font-size:.74rem;
  font-weight:900;
  line-height:1.25;
}

.wallet-coupon--available .wallet-status-badge {
  background:#e1f2ed;
  color:#0f6856;
}

.wallet-coupon--not_yet_usable .wallet-status-badge {
  background:#e5edf8;
  color:#294f84;
}

.wallet-expiry-badge {
  color:#a33a2b;
  font-size:.76rem;
  font-weight:900;
}

.wallet-coupon-brand {
  display:grid;
  grid-template-columns:62px minmax(0, 1fr);
  align-items:center;
  gap:13px;
  padding:8px 22px 16px;
}

.wallet-store-photo,
.wallet-store-photo-fallback {
  width:62px;
  height:62px;
  border-radius:12px;
}

.wallet-store-photo {
  object-fit:cover;
  border:1px solid #d9dedc;
}

.wallet-store-photo-fallback {
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #d5a63f;
  background:#f7e7b8;
}

.wallet-store-photo-fallback::before,
.wallet-store-photo-fallback::after,
.wallet-store-photo-fallback i {
  position:absolute;
  content:"";
}

.wallet-store-photo-fallback::before {
  width:36px;
  height:24px;
  transform:rotate(-8deg);
  border:2px solid #9a6e1c;
  border-radius:3px;
  background:#fff7dc;
}

.wallet-store-photo-fallback::after {
  width:13px;
  height:13px;
  border-radius:50%;
  background:#e84a32;
}

.wallet-store-copy {
  min-width:0;
}

.wallet-store-copy h2 {
  margin:0;
  font-size:1.04rem;
  line-height:1.35;
  letter-spacing:0;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.wallet-store-copy p {
  margin:5px 0 0;
  color:#78817e;
  font-size:.78rem;
  line-height:1.45;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.wallet-coupon-body {
  padding:22px;
  border-top:1px solid #e4e8e6;
}

.wallet-coupon-title {
  margin:0;
  color:#74807b;
  font-size:.8rem;
  font-weight:800;
  line-height:1.4;
}

.wallet-coupon-benefit {
  margin:8px 0 0;
  color:#17211f;
  font-size:1.65rem;
  line-height:1.25;
  letter-spacing:0;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.wallet-coupon--used .wallet-coupon-benefit,
.wallet-coupon--expired .wallet-coupon-benefit,
.wallet-coupon--cancelled .wallet-coupon-benefit {
  color:#5f6965;
}

.wallet-coupon-availability {
  margin:16px 0 0;
  color:var(--wallet-status);
  font-size:.9rem;
  font-weight:900;
  line-height:1.5;
  word-break:keep-all;
}

.wallet-coupon-condition,
.wallet-coupon-expiry,
.wallet-coupon-used-at {
  color:#606b67;
  font-size:.82rem;
  line-height:1.55;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.wallet-coupon-condition {
  display:-webkit-box;
  margin:12px 0 0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.wallet-coupon-expiry,
.wallet-coupon-used-at {
  margin:7px 0 0;
}

.wallet-primary-action,
.wallet-empty-action,
.wallet-retry,
.coupon-detail-use-button {
  display:inline-flex;
  width:100%;
  min-height:48px;
  align-items:center;
  justify-content:center;
  margin-top:20px;
  padding:11px 16px;
  border:0;
  border-radius:9px;
  background:#147d68;
  color:#fff;
  font:inherit;
  font-weight:900;
  line-height:1.35;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  word-break:keep-all;
}

.wallet-primary-action--upcoming {
  background:#315e9b;
}

.wallet-primary-action--muted {
  background:#66716d;
}

.wallet-primary-action strong,
.wallet-primary-action span {
  display:inline;
  color:inherit;
}

.wallet-primary-action span {
  display:none;
}

.wallet-detail-link {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:8px;
  color:#53605b;
  font-size:.8rem;
  font-weight:800;
}

.wallet-coupon-promotion {
  position:relative;
  padding:20px 22px 22px;
  border-top:2px dashed #d7ddda;
}

.wallet-coupon-promotion::before,
.wallet-coupon-promotion::after {
  position:absolute;
  top:-11px;
  width:20px;
  height:20px;
  border:1px solid #d4dad7;
  border-radius:50%;
  background:#f3f5f4;
  content:"";
}

.wallet-coupon-promotion::before {
  left:-11px;
}

.wallet-coupon-promotion::after {
  right:-11px;
}

.wallet-coupon-promotion h4 {
  margin:0 0 10px;
  color:#6a746f;
  font-size:.78rem;
  line-height:1.4;
  letter-spacing:0;
}

.store-promotion-links {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.store-promotion-link {
  display:flex;
  min-width:0;
  min-height:48px;
  flex-direction:column;
  justify-content:center;
  padding:9px 11px;
  border:1px solid #d5dcda;
  border-radius:8px;
  background:#fff;
  color:#28342f;
  text-decoration:none;
}

.store-promotion-link strong,
.store-promotion-link span {
  overflow-wrap:break-word;
  word-break:keep-all;
}

.store-promotion-link strong {
  font-size:.77rem;
  line-height:1.35;
}

.store-promotion-link span {
  margin-top:3px;
  color:#7a8480;
  font-size:.66rem;
  line-height:1.35;
}

.wallet-used-stamp {
  position:absolute;
  right:24px;
  bottom:24px;
  transform:rotate(-9deg);
  padding:6px 9px;
  border:2px solid rgba(102, 113, 109, .45);
  border-radius:4px;
  color:rgba(102, 113, 109, .62);
  font-size:.72rem;
  font-weight:900;
  pointer-events:none;
}

.wallet-skeleton {
  min-height:420px;
  padding:24px;
  border:1px solid #dfe4e2;
  border-radius:20px;
  background:#fff;
}

.wallet-skeleton span {
  display:block;
  height:18px;
  margin-bottom:18px;
  border-radius:6px;
  background:#e6ebe9;
  animation:wallet-skeleton-pulse 1.4s ease-in-out infinite alternate;
}

.wallet-skeleton span:nth-child(1) {
  width:28%;
}

.wallet-skeleton span:nth-child(2) {
  width:62%;
  height:54px;
  margin-top:50px;
}

.wallet-skeleton span:nth-child(3) {
  width:86%;
}

.wallet-skeleton span:nth-child(4) {
  width:100%;
  height:48px;
  margin-top:90px;
}

.wallet-loading-label {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}

@keyframes wallet-skeleton-pulse {
  from { opacity:.48; }
  to { opacity:1; }
}

.wallet-empty,
.wallet-error,
.wallet-filter-empty {
  grid-column:1 / -1;
  margin:0;
  padding:58px 24px;
  border:1px dashed #b8c2be;
  border-radius:18px;
  background:#fffcf7;
  text-align:center;
}

.wallet-empty h3,
.wallet-error h3,
.wallet-empty p {
  margin:0;
}

.wallet-empty p {
  margin-top:10px;
  color:#68736e;
}

.wallet-empty-action,
.wallet-retry {
  width:auto;
  min-width:180px;
  margin-top:22px;
}

.wallet-filter-empty {
  color:#68736e;
}

.coupon-detail-page {
  width:min(920px, calc(100% - 40px));
  margin:0 auto;
  padding:30px 0 72px;
}

.coupon-detail-back {
  margin-bottom:14px;
}

.coupon-detail-back a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  color:#53605b;
  font-size:.84rem;
  font-weight:800;
  text-decoration:none;
}

.coupon-detail-store {
  display:grid;
  grid-template-columns:190px minmax(0, 1fr);
  gap:28px;
  padding:28px;
  border:1px solid #d8dedb;
  border-radius:22px;
  background:#fffcf7;
}

.coupon-detail-store-media,
.coupon-detail-store-media img,
.coupon-detail-store-fallback {
  width:100%;
  min-width:0;
  aspect-ratio:4 / 3;
  border-radius:14px;
}

.coupon-detail-store-media img {
  display:block;
  object-fit:cover;
}

.coupon-detail-store-fallback {
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid #d5a63f;
  background:#f7e7b8;
}

.coupon-detail-store-fallback::before,
.coupon-detail-store-fallback::after,
.coupon-detail-store-fallback i {
  position:absolute;
  content:"";
}

.coupon-detail-store-fallback::before {
  top:50%;
  left:50%;
  width:82px;
  height:50px;
  transform:translate(-50%, -50%) rotate(-7deg);
  border:3px solid #916817;
  border-radius:6px;
  background:#fff7dc;
}

.coupon-detail-store-fallback::after {
  top:50%;
  left:50%;
  width:24px;
  height:24px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  background:#e84a32;
}

.coupon-detail-store-copy {
  min-width:0;
}

.coupon-detail-store-copy h1 {
  margin:0;
  font-size:1.75rem;
  line-height:1.3;
  letter-spacing:0;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.coupon-detail-store-copy h1 small {
  color:#6f7975;
  font-size:.72em;
  font-weight:700;
}

.coupon-detail-store-copy > p:not(.coupon-detail-eyebrow) {
  margin:8px 0 0;
  color:#65706b;
  line-height:1.55;
}

.store-promotion-links--detail {
  margin-top:18px;
}

.coupon-detail-ticket {
  --coupon-detail-status:#66716d;
  position:relative;
  overflow:hidden;
  margin-top:22px;
  border:1px solid #d5dbd8;
  border-top:6px solid var(--coupon-detail-status);
  border-radius:22px;
  background:#fffcf7;
  box-shadow:0 14px 32px rgba(23, 33, 31, .08);
}

.coupon-detail-ticket--available {
  --coupon-detail-status:#147d68;
}

.coupon-detail-ticket--not_yet_usable {
  --coupon-detail-status:#315e9b;
}

.coupon-detail-ticket--expired,
.coupon-detail-ticket--cancelled {
  --coupon-detail-status:#8b8e8c;
}

.coupon-detail-ticket-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 30px 0;
}

.coupon-detail-status,
.coupon-detail-expiry {
  font-size:.82rem;
  font-weight:900;
}

.coupon-detail-status {
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:5px 11px;
  border-radius:15px;
  background:#e8edeb;
  color:var(--coupon-detail-status);
}

.coupon-detail-expiry {
  color:#a33a2b;
}

.coupon-detail-ticket-body {
  position:relative;
  padding:30px;
}

.coupon-detail-ticket-title {
  margin:0;
  color:#75807c;
  font-size:.86rem;
  font-weight:800;
}

.coupon-detail-ticket-body h2 {
  max-width:720px;
  margin:8px 0 0;
  color:#17211f;
  font-size:2.25rem;
  line-height:1.22;
  letter-spacing:0;
  overflow-wrap:break-word;
  word-break:keep-all;
}

.coupon-detail-availability {
  margin:16px 0 0;
  color:var(--coupon-detail-status);
  font-weight:900;
  line-height:1.5;
}

.coupon-detail-meta {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:0 28px;
  margin:26px 0 0;
  border-top:1px solid #e0e5e3;
}

.coupon-detail-meta > div {
  min-width:0;
  padding:14px 0;
  border-bottom:1px solid #e0e5e3;
}

.coupon-detail-meta dt {
  color:#78827e;
  font-size:.75rem;
  font-weight:800;
}

.coupon-detail-meta dd {
  margin:5px 0 0;
  color:#303b37;
  line-height:1.55;
  overflow-wrap:anywhere;
  word-break:keep-all;
}

.coupon-detail-code {
  font-family:Consolas, monospace;
  font-weight:800;
}

.coupon-detail-stamp {
  position:absolute;
  right:36px;
  bottom:32px;
  transform:rotate(-8deg);
  margin:0;
  padding:9px 13px;
  border:3px solid rgba(102, 113, 109, .42);
  border-radius:5px;
  color:rgba(102, 113, 109, .55);
  font-weight:900;
}

.coupon-detail-snapshot-note {
  margin:0;
  padding:16px 30px;
  border-top:2px dashed #d6ddda;
  color:#75807c;
  font-size:.76rem;
  line-height:1.55;
  word-break:keep-all;
}

.coupon-detail-staff {
  margin-top:22px;
  border:1px solid #d4dbd8;
  border-radius:16px;
  background:#fff;
}

.coupon-detail-staff summary {
  display:flex;
  min-height:56px;
  align-items:center;
  justify-content:space-between;
  padding:14px 20px;
  color:#28342f;
  font-weight:900;
  cursor:pointer;
  list-style:none;
}

.coupon-detail-staff summary::-webkit-details-marker {
  display:none;
}

.coupon-detail-staff summary::after {
  content:"+";
  font-size:1.35rem;
}

.coupon-detail-staff[open] summary::after {
  content:"−";
}

.coupon-detail-staff-panel {
  padding:22px 20px 24px;
  border-top:1px solid #e0e5e3;
}

.coupon-detail-staff-panel h2,
.coupon-detail-staff-panel p {
  margin:0;
}

.coupon-detail-staff-panel h2 {
  font-size:1.18rem;
  letter-spacing:0;
}

.coupon-detail-staff-panel > p:not(.coupon-detail-eyebrow) {
  margin-top:8px;
  color:#65706b;
  line-height:1.5;
}

.coupon-detail-code-line strong {
  font-family:Consolas, monospace;
}

.coupon-detail-staff form {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:8px;
  margin-top:18px;
}

.coupon-detail-staff label {
  grid-column:1 / -1;
  font-size:.8rem;
  font-weight:900;
}

.coupon-detail-staff input {
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #aeb9b5;
  border-radius:8px;
  font:inherit;
}

.coupon-detail-use-button {
  width:auto;
  min-width:150px;
  margin-top:0;
}

.coupon-detail-use-button:disabled,
.wallet-retry:disabled {
  cursor:wait;
  opacity:.58;
}

.coupon-detail-staff-warning,
.coupon-detail-result {
  font-size:.8rem;
}

.coupon-detail-result {
  min-height:1.5em;
  color:#8d291e !important;
  font-weight:800;
}

.coupon-detail-state-note {
  margin-top:22px;
  padding:24px;
  border-left:5px solid #8b8e8c;
  border-radius:10px;
  background:#fff;
}

.coupon-detail-state-note--upcoming {
  border-left-color:#315e9b;
}

.coupon-detail-state-note h2,
.coupon-detail-state-note p {
  margin:0;
}

.coupon-detail-state-note h2 {
  font-size:1.08rem;
  letter-spacing:0;
}

.coupon-detail-state-note p,
.coupon-detail-state-note span {
  display:block;
  margin-top:8px;
  color:#65706b;
  line-height:1.5;
}

@media (max-width: 820px) {
  .wallet-hero {
    grid-template-columns:1fr;
    gap:28px;
  }

  .wallet-collection-heading {
    align-items:flex-start;
    flex-direction:column;
  }

  .wallet-tabs {
    width:100%;
    overflow-x:auto;
    scrollbar-width:thin;
  }

  .wallet-tab {
    flex:1 0 auto;
  }

  .wallet-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px) {
  .wallet-page,
  .coupon-detail-page {
    width:calc(100% - 32px);
    padding-top:22px;
  }

  .wallet-hero {
    padding:26px 22px;
  }

  .wallet-hero h1 {
    font-size:2rem;
  }

  .wallet-summary {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .wallet-summary-item:nth-child(2) {
    border-right:0;
  }

  .wallet-summary-item:nth-child(-n+2) {
    border-bottom:1px solid #d9dfdc;
  }

  .wallet-collection {
    margin-top:36px;
  }

  .wallet-collection-heading h2 {
    font-size:1.32rem;
  }

  .wallet-tabs {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    overflow:visible;
  }

  .wallet-tab {
    min-width:0;
    padding:8px 2px;
    font-size:.84rem;
  }

  .wallet-coupon-header,
  .wallet-coupon-brand,
  .wallet-coupon-body,
  .wallet-coupon-promotion {
    padding-right:18px;
    padding-left:18px;
  }

  .wallet-coupon-benefit {
    font-size:1.5rem;
  }

  .store-promotion-links {
    grid-template-columns:1fr;
  }

  .coupon-detail-store {
    grid-template-columns:1fr;
    gap:18px;
    padding:22px;
  }

  .coupon-detail-store-media {
    max-height:210px;
  }

  .coupon-detail-store-media img,
  .coupon-detail-store-fallback {
    max-height:210px;
  }

  .coupon-detail-ticket-header,
  .coupon-detail-ticket-body,
  .coupon-detail-snapshot-note {
    padding-right:22px;
    padding-left:22px;
  }

  .coupon-detail-ticket-body h2 {
    font-size:1.8rem;
  }

  .coupon-detail-meta {
    grid-template-columns:1fr;
  }

  .coupon-detail-staff form {
    grid-template-columns:1fr;
  }

  .coupon-detail-use-button {
    width:100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-page *,
  .wallet-page *::before,
  .wallet-page *::after,
  .coupon-detail-page *,
  .coupon-detail-page *::before,
  .coupon-detail-page *::after {
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}

/* Warm Local Play brand layer */
.wallet-page-body,
.coupon-detail-page-body {
  background:var(--cg-cream);
  color:var(--cg-navy);
}

.wallet-page-body .wallet-hero {
  border-color:var(--cg-border);
  background:#fff3e8;
  box-shadow:var(--cg-shadow-soft);
}

.wallet-page-body .wallet-eyebrow,
.coupon-detail-page-body .coupon-detail-eyebrow {
  color:var(--cg-coral-dark);
}

.wallet-page-body .wallet-hero h1,
.wallet-page-body .wallet-collection-heading h2,
.coupon-detail-page-body .coupon-detail-store-copy h1 {
  color:var(--cg-navy);
}

.wallet-page-body .wallet-summary {
  border-color:rgba(23,42,67,.14);
}

.wallet-page-body .wallet-summary-item {
  border-color:rgba(23,42,67,.14);
}

.wallet-page-body .wallet-tab {
  min-height:44px;
  border-radius:12px;
}

.wallet-page-body .wallet-tab[aria-selected="true"] {
  border-color:var(--cg-coral);
  background:var(--cg-coral);
  color:#fff;
}

.wallet-page-body .wallet-coupon {
  border-color:var(--cg-border);
  border-radius:20px;
  background:var(--cg-surface);
  box-shadow:var(--cg-shadow-soft);
}

.wallet-page-body .wallet-coupon--available {
  border-left:5px solid var(--cg-green);
}

.wallet-page-body .wallet-coupon--not_yet_usable {
  border-left:5px solid var(--cg-gold);
}

.wallet-page-body .wallet-coupon--used {
  border-left:5px solid #6e9f8e;
}

.wallet-page-body .wallet-coupon--expired,
.wallet-page-body .wallet-coupon--cancelled {
  border-left:5px solid #a7adb5;
}

.wallet-page-body .wallet-coupon-benefit {
  color:var(--cg-navy);
}

.wallet-page-body .wallet-primary-action,
.wallet-page-body .wallet-empty-action,
.wallet-page-body .wallet-retry,
.coupon-detail-page-body .coupon-detail-use-button {
  min-height:46px;
  border-radius:13px;
  background:var(--cg-coral);
}

.wallet-page-body .wallet-coupon-promotion {
  border-color:var(--cg-border);
  border-radius:16px;
  background:#fff8f2;
}

.wallet-page-body .wallet-empty,
.wallet-page-body .wallet-error {
  border-color:var(--cg-border);
  border-radius:22px;
  background:var(--cg-surface);
}

.wallet-page-body .wallet-empty::before {
  display:block;
  width:min(260px, 78vw);
  aspect-ratio:1;
  margin:0 auto 18px;
  background:url("../img/brand/wallet-empty.webp") center / contain no-repeat;
  content:"";
}

.coupon-detail-page-body .coupon-detail-store {
  border-color:var(--cg-border);
  border-radius:22px;
  background:#fff3e8;
  box-shadow:var(--cg-shadow-soft);
}

.coupon-detail-page-body .coupon-detail-ticket {
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  grid-template-areas:
    "header"
    "body"
    "note";
  border-color:var(--cg-border);
  border-radius:22px;
  background:var(--cg-surface);
  box-shadow:var(--cg-shadow);
}

.coupon-detail-page-body .coupon-detail-ticket--available,
.coupon-detail-page-body .coupon-detail-ticket--not_yet_usable,
.coupon-detail-page-body .coupon-detail-ticket--used,
.coupon-detail-page-body .coupon-detail-ticket--expired {
  grid-template-columns:minmax(150px, 190px) minmax(0, 1fr);
  grid-template-areas:
    "header header"
    "visual body"
    "note note";
}

.coupon-detail-page-body .coupon-detail-ticket--available {
  border-top:5px solid var(--cg-green);
}

.coupon-detail-page-body .coupon-detail-ticket--not_yet_usable {
  border-top:5px solid var(--cg-gold);
}

.coupon-detail-page-body .coupon-detail-ticket--used {
  border-top:5px solid #6e9f8e;
}

.coupon-detail-page-body .coupon-detail-ticket--expired,
.coupon-detail-page-body .coupon-detail-ticket--cancelled {
  border-top:5px solid #a7adb5;
}

.coupon-detail-page-body .coupon-detail-ticket-header {
  grid-area:header;
}

.coupon-detail-page-body .coupon-detail-snapshot-note {
  grid-area:note;
}

.coupon-detail-page-body .coupon-detail-status-visual {
  grid-area:visual;
  align-self:start;
  margin:22px 0 22px 22px;
  padding:10px;
  border-radius:18px;
  background:#fff7ef;
}

.coupon-detail-page-body .coupon-detail-status-visual img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  border-radius:13px;
}

.coupon-detail-page-body .coupon-detail-ticket-body {
  grid-area:body;
  min-width:0;
  padding-left:26px;
}

.coupon-detail-page-body .coupon-detail-ticket-body h2 {
  color:var(--cg-navy);
}

.coupon-detail-page-body .coupon-detail-staff,
.coupon-detail-page-body .coupon-detail-state-note {
  border-color:var(--cg-border);
  border-radius:18px;
  background:var(--cg-surface);
  box-shadow:var(--cg-shadow-soft);
}

@media (max-width:700px) {
  .coupon-detail-page-body .coupon-detail-ticket {
    grid-template-columns:1fr;
    grid-template-areas:
      "header"
      "body"
      "visual"
      "note";
  }

  .coupon-detail-page-body .coupon-detail-status-visual {
    width:min(112px, calc(100% - 44px));
    margin:18px auto 0;
  }

  .coupon-detail-page-body .coupon-detail-ticket-body {
    padding-left:22px;
  }
}

@media (max-width:420px) {
  .coupon-detail-page-body .coupon-detail-status-visual {
    width:min(96px, calc(100% - 44px));
  }
}
