dialog#credits { box-sizing:border-box; position:fixed; inset:auto 0 0; margin:0 auto; padding:0 20px max(13px,env(safe-area-inset-bottom)); width:min(100%,540px); max-width:none; max-height:95vh; max-height:95dvh; border:0; border-radius:22px 22px 0 0; background:white; color:#10324b; font:15px/1.42 system-ui,sans-serif; box-shadow:0 -6px 30px #1333481a; overflow:hidden; }
dialog#credits:not([open]) { display:none; }
dialog#credits[open] { display:flex; flex-direction:column; }
dialog#credits::backdrop { background:rgb(20 45 61 / 50%); }
html:has(dialog#credits[open]) { overflow:hidden; }
#credits .credit-sheet-handle { flex:none; align-self:center; width:33px; height:4px; background:#c4cfd5; border-radius:3px; margin:8px auto; }
dialog#credits header { flex:none; display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:14px; }
dialog#credits header h2 { margin:0; text-align:left; font:700 clamp(19px,5.5vw,23px)/1.18 system-ui,sans-serif; color:inherit; }
#creditSheetClose { display:grid; place-items:center; flex:none; width:32px; height:32px; min-height:0; padding:0; border:0; border-radius:50%; background:#f0f3f5; color:#10324b; font:24px/1 system-ui; }
#credits .credit-sheet-body { overflow-y:auto; min-height:0; overscroll-behavior:contain; }
dialog#credits h3 { margin:0; color:inherit; font:700 16px/1.3 system-ui,sans-serif; }
dialog#credits .credit-sheet-body p { text-align:left; margin:4px 0 0; color:#4b6376; font:400 14px/1.45 system-ui,sans-serif; }
dialog#credits #packageChoices { display:block; border:0; border-top:1px solid #ced9df; padding:0; margin:16px 0 13px; min-width:0; }
#credits #packageChoices label { display:grid; grid-template-columns:21px minmax(0,1fr) auto; gap:9px; align-items:start; margin:0; padding:11px 0; border:0; border-bottom:1px solid #ced9df; color:#10324b; cursor:pointer; }
#credits input[type=radio] { appearance:none; box-sizing:border-box; width:18px; height:18px; margin:3px 0 0; border:1.5px solid #a4b6c4; background:white; border-radius:50%; }
#credits input[type=radio]:checked { border-color:#ea7834; background:radial-gradient(circle,#ea7834 0 45%,white 49%); }
#credits #packageChoices strong,#credits #packageChoices small,#credits #packageChoices b,#credits #packageChoices del { display:block; }
#credits #packageChoices strong { font-size:16px; }
#credits #packageChoices small,#credits #packageChoices del { margin-top:6px; color:#496376; font-size:13px; font-weight:400; }
.credit-sheet-price { text-align:right; line-height:1.2; }
#credits #packageChoices b { font-size:20px; }
dialog#credits footer { flex:none; margin-top:12px; }
dialog#credits #checkoutError { color:#94402b; margin:0 0 6px; }
dialog#credits #purchaseButton { position:relative; display:block; width:100%; margin:0; padding:11px 25px; min-height:44px; background:linear-gradient(100deg,#ffb16c,#f5873b); color:#0f3049; border:0; border-radius:9px; font:700 clamp(14px,3.9vw,16px)/1.25 system-ui,sans-serif; }
dialog#credits #purchaseButton::after { content:'➜'; position:absolute; right:4%; }
@media(max-width:350px){dialog#credits {padding-inline:14px;} #credits #packageChoices label{gap:5px;} }
#creditSheetAppIcon {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  align-self: center;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 20%;
  background: #fff1e8;
  color: #13344c;
  font: 700 23px/1 system-ui, sans-serif;
}
#creditSheetAppIcon:empty { display: none; }

dialog#credits #creditSheetClose {
  position: absolute;
  top: 12px;
  right: 12px;
}
@media (max-width: 350px) {
  dialog#credits #purchaseButton { padding-inline: 18px; font-size: 13px; }
  dialog#credits #purchaseButton::after { right: 5px; }
}
