.wallet-body .admission-entry { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid #12305b; border-radius: 16px; background: #12305b; color: white; text-align: left; cursor: pointer; }
.admission-entry img, .admission-detail { display: block; width: 100%; height: auto; border-radius: 14px; }
.admission-entry > img { border-radius: 14px 14px 0 0; }
.admission-entry > span { display: block; padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.admission-entry > .ticket-quantity { position: absolute; top: 12px; left: 2px; display: grid; place-items: center; box-sizing: border-box; width: 48px; height: 48px; padding: 0; border: 1px solid #d3bb82; border-radius: 50%; background: #fff8e8; color: #12305b; text-align: center; font-size: 16px; font-weight: 800; line-height: 1; }
.discount-activity-summary > span { display: block; overflow-wrap: anywhere; }
.admission-entry > .discount-open-hint { padding: 0 18px 14px; text-align: right; font-weight: 600; }
.admission-entry:focus-visible { outline: 3px solid #6aa8ed; outline-offset: 4px; }
.admission-entry > .admission-accessible { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.admission-entry > .admission-expiry { padding: 14px 18px 0; color: #fff8e8; font-size: 14px; line-height: 1.6; }
.wallet-body .discount-item h3 { margin: 0; font-size: 22px; }
.wallet-body .discount-item p { margin: 0; }
.wallet-body .discount-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 20px; }
.wallet-body .discount-item > :not(h3):not(.status-pill) { grid-column: 1 / -1; }
.wallet-body .discount-item h3 { font-size: clamp(19px, 5vw, 22px); line-height: 1.4; }
.wallet-body .discount-item h3:focus-visible { outline: 2px solid #648dc4; outline-offset: 4px; }
.wallet-body .discount-item > .status-pill { width: fit-content; white-space: nowrap; margin-top: 1px; }
.wallet-body .discount-item > .ticket-status-unavailable { background: #eaf0f8; color: #52647d; }
.wallet-body .discount-card-usage { margin-top: 4px; font-size: 15px; }
.wallet-body .discount-operator-note { font-size: 13px; color: var(--wallet-muted); }
.wallet-body .discount-item > .primary { margin-top: -4px; }
.discount-voucher-details { border-top: 1px solid var(--line); margin-top: 4px; font-size: 14px; }
.discount-voucher-details summary { display: list-item; min-height: 44px; padding: 12px 0 0; cursor: pointer; font-weight: 600; }
.wallet-body .discount-voucher-details p { margin-top: 10px; color: var(--wallet-muted); overflow-wrap: anywhere; }
#discount-message:empty, #discount-redeem-message:empty, #admin-discount-message:empty { display: none; }
.wallet-body #discount-redeem-dialog { width: min(480px, calc(100% - 32px)); padding: 24px; }
.wallet-body #discount-redeem-dialog .redeem-summary { padding: 16px; border-radius: 12px; background: #edf3fb; font-weight: 700; }
.discount-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.discount-preview figure { margin: 0; overflow-wrap: anywhere; }
.discount-preview img { display: block; max-width: 100%; height: auto; }
#admin-discount, #admin-discount > *, #admin-discount details > *, #admin-discount .table-wrap { min-width: 0; max-width: 100%; }
#admin-discount-source { overflow-wrap: anywhere; }
#admin-campaign-list button { margin: 4px; }
.wallet-body .claim-receipt { padding: 20px; border: 1px solid #25804d; border-radius: 16px; background: #eef9f1; color: #155a36; text-align: center; }
.claim-receipt-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: #1b7142; color: #fff; }
.wallet-body .claim-receipt-mark svg { width: 32px; height: 32px; stroke-width: 3; }
.wallet-body .claim-receipt h2 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.3; }
.wallet-body .claim-receipt h2:focus { outline: 2px solid #82b99b; outline-offset: 6px; border-radius: 6px; }
.wallet-body .claim-receipt p { margin: 10px 0 0; }
.claim-receipt-summary { font-size: 20px; font-weight: 800; }
#discount-receipt-source { overflow-wrap: anywhere; }
#discount-receipt-source:empty { display: none; }
.claim-receipt-link { display: grid; place-items: center; min-height: 48px; padding: 10px; margin-top: 16px; border-radius: 10px; background: #1b7142; color: white; font-weight: 700; text-decoration: none; }
.claim-receipt-link:focus-visible { outline: 3px solid #12305b; outline-offset: 3px; }
.wallet-body .claim-close-page { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 16px; }
.wallet-body .claim-close-note { font-size: 14px; line-height: 1.5; }
.claim-receipt-unavailable .claim-receipt-link { background: #52647d; }
.wallet-body #discount-receipt-note, .wallet-body #discount-receipt-source { font-size: 14px; line-height: 1.5; }
.discount-intro { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#discount-receipt.hidden ~ :is(.discount-use-brief, .discount-use-steps) { display: none; }
#discount-receipt:not(.hidden) ~ #discount-wallet { display: none; }
.wallet-body:has(#discount:not(.hidden) #discount-receipt:not(.hidden)) :is(.wallet-brand, #ticket-navigation, .wallet-footer) { display: none; }
.wallet-body .discount-use-brief { margin: 0; font-size: 16px; }
[hidden] { display: none !important; }
.wallet-body .claim-receipt-unavailable { border-color: #697487; background: #f0f3f7; color: #35445c; }
.claim-receipt-unavailable .claim-receipt-mark { background: #52647d; }
.discount-use-steps { padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.discount-use-steps summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.discount-use-steps summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.discount-use-steps[open] { padding-bottom: 14px; }
.discount-use-steps[open] summary { margin-bottom: 12px; }
.discount-use-steps ol { display: grid; gap: 16px; padding-left: 24px; margin: 0; }
.discount-use-steps li { padding-left: 4px; }
.discount-use-steps li::marker { font-weight: 800; color: var(--blue); }
.discount-use-steps li strong, .discount-use-steps li span { display: block; }
.discount-use-steps li span { margin-top: 4px; font-size: 14px; color: var(--wallet-muted); }
.wallet-body .discount-use-reminder { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.wallet-body .discount-source-group { min-width: 0; gap: 12px; }
.wallet-body .discount-source-heading { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.discount-source-heading::before { content: '領取活動'; display: block; margin-bottom: 4px; font-size: 13px; font-weight: 400; color: var(--wallet-muted); }
.wallet-body .discount-source-label { display: none; }
@media (max-width: 420px) {
  .wallet-body #discount-redeem-dialog { width: 100%; height: 100dvh; max-width: none; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
}
