/* Save to Wallet: ticket panel, buttons and the Add to Wallet windows */
.itsba-tk-wallet { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid #e4eaf3; border-radius: 14px; background: #fff; }
.itsba-tk-wallet h4 { margin: 0; color: #0b1230; font-size: .98rem; }
.itsba-tk-wallet p { margin: 0; color: #6b7285; font-size: .8rem; line-height: 1.45; }
.itsba-tk-wallet .itsbw-staff { padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #8a5a00; }

.itsbw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; color: #fff !important; font: 600 .9rem/1.2 "Lexend", system-ui, sans-serif; text-decoration: none !important; cursor: pointer; }
.itsbw-btn.is-apple { background: #000; }
.itsbw-btn.is-google { background: #0073f5; }
.itsbw-btn:hover { filter: brightness(1.12); }
.itsbw-btn.is-lg { min-height: 50px; padding: 10px 22px; font-size: 1rem; }
.itsbw-glyph { width: 30px; height: 26px; flex: none; }
.itsbw-btn .itsbw-glyph { width: 28px; height: 24px; }

dialog.itsbw-modal { width: min(820px, calc(100vw - 24px)); padding: 26px 28px 24px; }
dialog.itsbw-modal h2, dialog.itsbw-modal h3, dialog.itsbw-modal h4 { margin: 0; color: #0b1230; font-family: inherit; letter-spacing: -.01em; }
dialog.itsbw-modal p { margin: 0; }
dialog.itsbw-modal .itsbh-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.itsbw-head { display: flex; align-items: flex-start; gap: 16px; margin: 0 40px 18px 0; }
.itsbw-hico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 58px; height: 58px; border-radius: 14px; background: #10141f; }
.itsbw-modal.is-google .itsbw-hico { background: #eef5ff; }
.itsbw-hico .itsbw-glyph { width: 40px; height: 34px; }
.itsbw-head h2 { font-size: 1.6rem; }
.itsbw-head p { margin-top: 4px; color: #4b5468; font-size: .92rem; line-height: 1.45; }

.itsbw-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.itsbw-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.itsbw-box { padding: 14px 16px; border: 1px solid #e4eaf3; border-radius: 14px; }
.itsbw-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1rem; }
.itsbw-box h3 .itsbh-ico { width: 20px; height: 20px; color: #0073f5; }
.itsbw-box-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.itsbw-box-h > span { color: #0073f5; font-size: .82rem; font-weight: 600; }
.itsbw-sel { display: flex; gap: 14px; }
.itsbw-sel-img { flex: none; width: 112px; height: 112px; border-radius: 12px; background: #1d2a4a center / cover no-repeat; }
.itsbw-sel > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.itsbw-sel h4 { font-size: 1.12rem; }
.itsbw-sel p { display: flex; align-items: center; gap: 8px; color: #3f4659; font-size: .84rem; }
.itsbw-sel p .itsbh-ico { color: #0073f5; }
.itsbw-sel .itsbw-of { color: #6b7285; }
.itsbw-sel .itsba-valid { align-self: flex-start; }
.itsbw-saved { margin: 0; }
.itsbw-saved > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef2f8; font-size: .83rem; }
.itsbw-saved > div:last-child { border-bottom: 0; }
.itsbw-saved dt { display: flex; align-items: center; gap: 8px; color: #4b5468; }
.itsbw-saved dt .itsbh-ico { color: #0073f5; }
.itsbw-saved dd { margin: 0; color: #0b1230; }

.itsbw-right { min-width: 0; }
.itsbw-right > h3 { font-size: 1rem; }
.itsbw-muted { margin: 2px 0 10px !important; color: #6b7285; font-size: .78rem; }
.itsbw-pass { overflow: hidden; border-radius: 18px; color: #fff; box-shadow: 0 16px 36px rgba(4, 14, 30, .28); }
.itsbw-pass.is-apple { border: 4px solid #0b1230; background: #0b1230; }
.itsbw-pass.is-google { padding: 10px; background: #12161f; }
.itsbw-pass-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.itsbw-logo { max-width: 120px; max-height: 26px; }
.itsbw-pass-top span { text-align: right; font-size: .74rem; line-height: 1.3; }
.itsbw-pass-top b { display: block; font-weight: 600; }
.itsbw-pass-hero { position: relative; display: flex; align-items: flex-end; min-height: 128px; background: #22305a center / cover no-repeat; }
.itsbw-pass-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.72)); }
.itsbw-pass-hero > div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; }
.itsbw-pass-hero strong { font-size: 1.1rem; font-weight: 700; }
.itsbw-pass-hero small { display: flex; align-items: flex-start; gap: 6px; font-size: .74rem; line-height: 1.35; opacity: .95; }
.itsbw-pass.is-google .itsbw-pass-hero { min-height: 170px; border-radius: 12px; }
.itsbw-pass-body { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 14px; }
.itsbw-pass.is-apple .itsbw-pass-body { border-radius: 0 0 14px 14px; background: #fff; color: #0b1230; }
.itsbw-pass.is-google .itsbw-pass-body { margin-top: 10px; border-radius: 12px; background: #1d2330; }
.itsbw-pass-type { font-size: .92rem; }
.itsbw-pass-row { display: flex; justify-content: space-between; gap: 10px; }
.itsbw-pass-row span { min-width: 0; }
.itsbw-pass-row small { display: block; font-size: .62rem; letter-spacing: .04em; opacity: .7; }
.itsbw-pass-row b { display: block; font-size: .82rem; font-weight: 600; }
.itsbw-pass-qr { align-self: center; padding: 8px; border-radius: 10px; background: #fff; }
.itsbw-pass-qr img { display: block; width: 118px; height: 118px; }
.itsbw-pass .itsba-valid { align-self: center; }
.itsbw-pass-gh { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 600; font-size: .9rem; }
.itsbw-pass-gh .itsbw-glyph { width: 24px; height: 20px; }

.itsbw-other { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px; border: 1px solid #e4eaf3; border-radius: 14px; background: #f6f9fe; }
.itsbw-oico { display: inline-flex; color: #0073f5; }
.itsbw-oico .itsbh-ico { width: 30px; height: 30px; }
.itsbw-other > div { flex: 1; min-width: 0; }
.itsbw-other strong { display: block; color: #0b1230; font-size: .92rem; }
.itsbw-other small { display: block; color: #4b5468; font-size: .78rem; line-height: 1.4; }
.itsbw-oqr img { display: block; width: 64px; height: 64px; }
.itsbw-or { color: #6b7285; font-size: .84rem; }
.itsbw-sent { margin-top: 10px !important; padding: 8px 12px; border-radius: 10px; background: #ebf8ef; color: #1f6f43; font-size: .84rem; }
.itsbw-sent.is-error { background: #fdecec; color: #a12c2c; }
.itsbw-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; margin-top: 16px; }
.itsbw-foot .itsba-btn { justify-content: center; min-height: 50px; }

@media (max-width: 720px) {
	dialog.itsbw-modal { padding: 22px 16px 18px; }
	.itsbw-grid { grid-template-columns: minmax(0, 1fr); }
	.itsbw-right { max-width: 340px; width: 100%; margin: 0 auto; }
	.itsbw-head h2 { font-size: 1.3rem; }
	.itsbw-other { flex-wrap: wrap; }
	.itsbw-other > div { flex-basis: calc(100% - 50px); }
	.itsbw-foot { grid-template-columns: minmax(0, 1fr); }
	.itsbw-foot .itsbw-btn { order: -1; }
	.itsbw-sel-img { width: 84px; height: 84px; }
}
dialog.itsbw-modal [hidden] { display: none !important; }
dialog.itsbw-modal .itsbw-logo { width: auto !important; max-width: 130px !important; height: auto !important; max-height: 28px !important; }
dialog.itsbw-modal .itsbw-oico .itsbh-ico { width: 30px; height: 30px; }
dialog.itsbw-modal .itsbw-box h3 .itsbh-ico { width: 20px; height: 20px; }

/* The ticket grid only has room for a third column when the ticket itself is wide; otherwise the wallet panel runs underneath */
.itsba-tk-body { container: itsbtk / inline-size; }
@container itsbtk (max-width: 860px) {
	.itsba-tk-grid:has(> .itsba-tk-wallet) { grid-template-columns: 210px minmax(0, 1fr); }
	.itsba-tk-grid > .itsba-tk-wallet { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; }
	.itsba-tk-wallet h4, .itsba-tk-wallet > p { grid-column: 1; }
	.itsba-tk-wallet > .itsbw-btn { grid-row: 1 / span 2; }
	.itsba-tk-wallet > .itsbw-btn.is-apple { grid-column: 2; }
	.itsba-tk-wallet > .itsbw-btn.is-google { grid-column: 3; }
}
@container itsbtk (max-width: 560px) {
	.itsba-tk-grid:has(> .itsba-tk-wallet) { grid-template-columns: minmax(0, 1fr); }
	.itsba-tk-grid > .itsba-tk-wallet { display: flex; }
}
