*{box-sizing:border-box}
body{margin:0;font:16px system-ui;background:#f5f7fb;color:#152033}
main{max-width:480px;margin:auto;padding:24px}
h1{font-size:2rem;margin:0 0 8px}
h2{font-size:1.15rem;margin:24px 0 8px}
button:not(.gpay-button):not(.tos-modal-close){width:100%;padding:18px;margin:8px 0;border:0;border-radius:12px;background:#0759c8;color:#fff;font:inherit;text-align:left}
button:not(.gpay-button):not(.tos-modal-close) small{display:block;opacity:.9;margin-top:4px}
#trial{background:#087f5b}
#status{min-height:2em;line-height:1.4}
.hint{margin:0 0 12px;color:#445066;font-size:.95rem}
.tos-notice{
  margin:10px 0 0;color:#445066;font-size:.82rem;line-height:1.45
}
.tos-notice a{color:#0b3d7a;font-weight:600;text-underline-offset:2px}
.tos-modal{
  padding:0;border:0;border-radius:0;width:100vw;max-width:100vw;height:100vh;max-height:100vh;
  background:transparent;color:inherit
}
.tos-modal::backdrop{background:rgba(15,23,42,.55)}
.tos-modal-panel{
  display:flex;flex-direction:column;width:min(560px,100%);height:100%;margin:0 auto;
  background:#fff;color:#152033
}
.tos-modal-bar{
  position:sticky;top:0;z-index:2;flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 16px;border-bottom:1px solid #d7deea;background:#fff
}
.tos-modal-bar h2{margin:0;font-size:1.05rem;line-height:1.3}
.tos-modal-close{
  flex:0 0 auto;width:auto;min-width:5.5rem;padding:10px 14px;margin:0;
  border:0;border-radius:10px;background:#0b3d7a;color:#fff;font:inherit;font-weight:600;
  text-align:center;cursor:pointer
}
.tos-modal-body{
  flex:1 1 auto;overflow:auto;-webkit-overflow-scrolling:touch;
  padding:16px 16px 40px;outline:none
}
.tos-modal-body > h1{display:none}
.legal{padding-bottom:48px}
.legal h2{margin:20px 0 8px;font-size:1.05rem}
.legal p,.legal li{color:#334155;line-height:1.5}
.legal ul{margin:0 0 12px;padding-left:1.2rem}
.legal .back-link{color:#0b3d7a;font-weight:600;text-decoration:none}
.legal .legal-foot{margin-top:28px}
body.tos-open{overflow:hidden}
label{display:block;margin:0 0 10px;font-size:.92rem;color:#334155}
input[type=text],input[type=email],input:not([type]),input[type=tel],input[inputmode]{
  display:block;width:100%;margin-top:4px;padding:12px;border:1px solid #c5d0e0;border-radius:10px;
  background:#fff;color:#152033;font:inherit
}
.check{display:flex;gap:8px;align-items:center;margin:12px 0}
.check input{width:auto;margin:0}
.row{display:grid;grid-template-columns:1.2fr .8fr;gap:8px}
.row-exp{grid-template-columns:1fr 1fr 1fr}
.method-list{display:grid;gap:8px}
.method-list > button{background:#0b3d7a}
.method-list > button[disabled]{opacity:.45}
/* Google Pay official button — isolate from portal button rules so the
   CDN lockup does not tile (global `background` shorthand clears SVG). */
.method-google-pay-slot{
  margin:8px 0;padding:0;border:0;background:transparent
}
.gpay-official-button{
  width:100%;
  line-height:0
}
.gpay-official-button > div{
  width:100% !important
}
.gpay-official-button button{
  width:100% !important;
  height:48px !important;
  min-height:48px !important;
  max-height:48px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:4px !important;
  /* Do NOT set `background` shorthand — it wipes Google's SVG lockup. */
  background-color:#000 !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  font-size:0 !important;
  line-height:0 !important;
  text-align:center !important;
  color:transparent !important;
  box-sizing:border-box !important
}
.method-brand{display:inline-flex;align-items:center;min-height:36px}
.gpay-mark{
  display:block;height:36px;width:auto;max-width:100%;
  margin:8px
}
.method-heading-brand{
  display:flex;align-items:center;gap:8px;min-height:44px
}
.method-heading-brand .gpay-mark{margin:0}
.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}
#pix-panel,#methods-panel,#customer-panel,#card-panel{
  margin-top:8px;padding:16px;border-radius:12px;background:#fff;border:1px solid #d7deea
}
#pix-panel h2,#methods-panel h2,#customer-panel h2,#card-panel h2{margin-top:0}
#pix-qr{display:block;width:min(220px,70vw);height:auto;margin:0 auto 12px;background:#fff}
#pix{
  display:block;width:100%;min-height:6.5rem;margin:0 0 12px;padding:12px;
  border:1px solid #c5d0e0;border-radius:10px;background:#f8fafc;color:#152033;
  font:13px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;resize:none
}
#copy-pix,#customer-continue,#card-pay{background:#0b3d7a;text-align:center;font-weight:600}
#copy-pix[data-copied="true"]{background:#087f5b}
fieldset{border:1px solid #d7deea;border-radius:10px;margin:12px 0;padding:12px}
legend{padding:0 4px;color:#445066;font-size:.9rem}
@media(max-width:360px){main{padding:16px}h1{font-size:1.65rem}.row-exp{grid-template-columns:1fr 1fr 1fr}}
