#wallet-tabs button { font-size: clamp(9px, 2.6vw, 12px); padding-inline: 1px; }
#products-page h1 { font-size: 30px; margin: 6px 0 16px; outline: none; }
.check-product, .check-card {
  width: 100%; border: 1px solid var(--border); border-radius: 18px;
  background: var(--panel); padding: 14px;
}
.check-product { display: flex; align-items: center; gap: 12px; text-align: left; }
.check-product .muted { display: block; font-size: 13px; margin-top: 3px; }
.check-product .check-arrow { margin-left: auto; color: var(--mint); }
.check-emblem {
  display: grid; place-items: center; color: var(--mint); background: #20383e;
  border-radius: 14px; width: 44px; height: 44px; flex: none;
}
.check-emblem svg { width: 23px; height: 23px; }
.check-hero {
  display: grid; gap: 12px; justify-items: center; text-align: center; padding: 23px 14px;
  border: 1px solid #2b484d; border-radius: 22px;
  background: radial-gradient(ellipse at 55% 0%, #234147, transparent 75%), #171e2b;
}
.check-hero h2 { font-size: 27px; }
.check-hero p { max-width: 34ch; line-height: 1.45; }
.check-actions, .check-presets { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 8px; }
.check-actions { margin-block: 12px 18px; }
.check-actions .action { min-width: 0; padding-inline: 8px; }
.check-primary { background: var(--mint); color: #10251f; border-color: transparent; font-weight: 750; }
.check-form, .check-list { display: grid; gap: 12px; }
.check-list { margin-top: 14px; }
.check-card { display: grid; gap: 12px; }
.check-card p, .check-ticket output { overflow-wrap: anywhere; }
.check-card .check-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.check-card .check-row + .check-row { padding-top: 12px; border-top: 1px solid var(--border); }
.check-row label, .check-row span { min-width: 0; }
.check-card small { display: block; color: var(--muted); margin-top: 4px; }
.check-row input[type=checkbox] { width: 22px; min-height: 22px; flex: none; accent-color: #307967; }
.check-stepper { display: flex; align-items: center; gap: 4px; }
.check-stepper input { text-align: center; width: 66px; padding-inline: 0; }
.check-stepper button { min-width: 36px; padding-inline: 3px; }
.check-coins {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 7px;
}
.check-coin {
  min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px;
  padding: 9px 4px; min-height: 76px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel); text-align: center;
}
.check-coin strong { font-size: 13px; line-height: 1.1; }
.check-coin small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.check-coin[aria-pressed=true] { border-color: var(--mint); background: #1c3035; color: var(--mint); }
.check-coin-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; font-weight: 800; }
.check-coin-logo img { width: 100%; height: 100%; object-fit: contain; }
.check-ticket-heading { display: flex; align-items: center; gap: 8px; }
.check-ticket-heading .check-coin-logo { flex: none; background: #103a31; padding: 3px; }
.check-ticket-heading .check-coin-logo:empty { display: none; }
.check-ticket {
  border-radius: 20px; color: #102d27; background: linear-gradient(135deg,#b4ffe9,#65f4ce 63%,#4fd0ab);
  padding: 17px 18px; text-align: center; display: grid; gap: 10px;
  mask: radial-gradient(circle at 0 67%,transparent 7px,#000 8px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 67%,transparent 7px,#000 8px) right / 51% 100% no-repeat;
}
.check-ticket label { text-align: left; font-size: 12px; font-weight: 750; }
.check-ticket input { background: #ffffff30; color: inherit; text-align: center; border-color: #164e3b35; font-size: 28px; font-weight: 800; }
.check-ticket input:focus-visible { outline-color: #164e3b; }
.check-ticket output { border-top: 1px dashed #164e3b70; padding-top: 10px; }
.check-help { padding-left: 24px; margin: 0; color: var(--muted); line-height: 1.5; }
.check-help li + li { margin-top: 8px; }
.check-status { font-size: 14px; color: var(--muted); }
.check-status:empty { display: none; }

/* Keep quick taps on presets and steppers from zooming the iOS web view. */
html:has(#products-page:not([hidden])),
#products-page {
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}
#products-page {
  width: 100%;
  -webkit-text-size-adjust: 100%;
}
#products-page button { touch-action: manipulation; }
#products-page input:not([type=checkbox]) { font-size: 16px; }
#products-page #check-amount { font-size: 28px; }
.check-form, .check-card, .check-ticket, .check-list {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.check-actions, .check-presets { grid-auto-columns: minmax(0, 1fr); }
.check-stepper { flex: 0 0 auto; }
.check-stepper input { width: clamp(46px, 15vw, 66px); }
.check-card .check-row label, #check-total { overflow-wrap: anywhere; }
#check-total { min-width: 0; text-align: right; }
#open-crypto-pay { margin-top: 10px; }
#crypto-pay { overflow-wrap: anywhere; }
#crypto-pay-status { margin-top: 10px; }
#crypto-pay label { display: grid; gap: 5px; }
#open-stars-purchase { margin-top: 10px; }
#stars-purchase label { display: grid; gap: 5px; }
#open-stars-purchase .check-emblem { color: #ffce66; }
#stars-total { color: var(--mint); font-weight: 700; }

#open-premium-purchase { margin-top: 10px; }

#open-esim { margin-top:10px; }
#esim-dialog label { display:grid; gap:5px; }
#esim-destination { width: 100%; text-align: left; }
#esim-destination::after { content: '⌄'; float: right; color: var(--mint); }
#esim-search { width: 100%; font-size: 16px; }
#esim-results {
  max-height: min(230px, 30dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 6px;
}
#esim-results button {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  white-space: normal;
}
#esim-results button[aria-pressed="true"] { color: var(--mint); }

.esim-plan-details { display: grid; gap: 4px; overflow-wrap: anywhere; }
.esim-plan-details small { margin: 0; }

#esim-history {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--mint);
  color: #10251f;
  font-size: 17px;
  font-weight: 750;
  text-align: center;
}
#esim-history:active { background: #4dd9b8; }

.esim-markup-discount {
  justify-self: start;
  border-radius: 8px;
  padding: 4px 8px;
  background: #20383e;
  color: var(--mint);
  font-size: 13px;
  font-weight: 650;
}
