.location-wallet {
    box-sizing: border-box;
    width: min(calc(100% - 24px), 34rem);
    max-width: 34rem;
    max-height: min(88dvh, 48rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #3a3a41;
    border-radius: 18px;
    background: #111113;
    color: #f7f4ee;
    box-shadow: 0 24px 80px rgb(0 0 0 / 70%);
}

.location-wallet::backdrop { background: rgb(7 7 9 / 86%); }

.location-wallet-shell {
    box-sizing: border-box;
    max-height: min(88dvh, 48rem);
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.location-wallet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-block-end: 1px solid #303035;
    padding-block-end: 12px;
}

.location-wallet-header h1 { margin: 2px 0 0; color: #fff; font-size: clamp(1.65rem, 8vw, 2.2rem); }
.location-wallet-header .screen-eyebrow { margin: 0; color: var(--ap-blue, #45d9ff); }
.location-wallet #location-wallet-intro { margin: 14px 0 0; color: #a9a8af; font-size: 0.8125rem; line-height: 1.7; }

.location-wallet-close {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #45454d;
    border-radius: 50%;
    background: #1b1b1f;
    color: #fff;
    font: 400 1.7rem/1 sans-serif;
}

.location-wallet-status {
    min-height: 1.5em;
    margin: 14px 0;
    color: #d9d7d2;
    font-size: 0.875rem;
    line-height: 1.7;
}

.location-wallet-list { display: grid; gap: 12px; }

.location-wallet-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #34343a;
    border-inline-start: 4px solid var(--ap-blue, #45d9ff);
    border-radius: 12px;
    background: #19191d;
}

.location-wallet-card[data-status="redeemed"],
.location-wallet-card[data-status="expired"] { border-inline-start-color: #75757d; }

.location-wallet-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.location-wallet-card h2 { min-width: 0; margin: 0; color: #fff; font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
.location-wallet-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #24383b; color: #74ead9; font-size: 0.6875rem; }
.location-wallet-card[data-status="redeemed"] .location-wallet-badge,
.location-wallet-card[data-status="expired"] .location-wallet-badge { background: #29292d; color: #b1b0b5; }
.location-wallet-place { margin: 8px 0 0; color: #c8c6c0; font-size: 0.75rem; line-height: 1.65; overflow-wrap: anywhere; }
.location-wallet-offer { margin: 14px 0 0; color: #fff; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.location-wallet-policy,
.location-wallet-validity,
.location-wallet-issued { margin: 7px 0 0; color: #a7a6ad; font-size: 0.75rem; line-height: 1.65; overflow-wrap: anywhere; }
.location-wallet-terms { margin: 12px 0 0; padding-block-start: 12px; border-block-start: 1px solid #313137; color: #d7d5cf; font-size: 0.8125rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }

.location-wallet-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 14px; }
.location-wallet-code {
    min-width: 0;
    padding: 10px;
    overflow-wrap: anywhere;
    border: 1px dashed #66666f;
    border-radius: 8px;
    background: #0e0e10;
    color: #fff;
    font: 700 0.82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: 0.035em;
    text-align: start;
}
.location-wallet-copy { min-height: 44px; padding: 8px 12px; white-space: normal; }
.location-wallet-copy-status { grid-column: 1 / -1; min-height: 1.35em; margin: 0; color: #74ead9; font-size: 0.7rem; line-height: 1.5; }

.location-wallet-actions { margin-top: 14px; }
.location-wallet-actions > button { width: 100%; min-height: 44px; }
.location-wallet-pages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.location-wallet-pages button { min-height: 44px; min-width: 0; padding-inline: 10px; }
.location-wallet-pages span { color: #bdbbc0; font-size: 0.75rem; direction: ltr; unicode-bidi: isolate; }
.location-wallet-notice { margin: 16px 0 0; padding-block-start: 12px; border-block-start: 1px solid #303035; color: #8e8d94; font-size: 0.7rem; line-height: 1.7; }

@media (max-width: 360px) {
    .location-wallet { width: calc(100% - 12px); }
    .location-wallet-shell { padding: 13px; }
    .location-wallet-card { padding: 12px; }
    .location-wallet-card-header { display: block; }
    .location-wallet-badge { display: inline-block; margin-top: 7px; }
    .location-wallet-code-row { grid-template-columns: minmax(0, 1fr); }
    .location-wallet-copy { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .location-wallet, .location-wallet * { scroll-behavior: auto !important; }
}
