/* Quick purchase uses the native dialog's focus and keyboard behaviour. */
html:has(.qb[open]) { overflow: hidden; }
.qb {
  width: min(448px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 24px;
  border: 1px solid #e6e2d9;
  border-radius: 18px;
  background: #fff;
  color: #171714;
  box-shadow: 0 28px 90px #17151446;
  font: inherit;
}
.qb[open] { animation: qb-in .2s ease-out both; }
.qb::backdrop { background: #14141787; backdrop-filter: blur(4px); }
@keyframes qb-in {
  from { opacity: 0; transform: translateY(9px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.qb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f4f4f3;
  color: #555;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.qb-close:hover { background: #eaeae9; color: #161616; }
.qb-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 0 30px 18px 0;
  border-bottom: 1px solid #e9e8e3;
}
.qb-thumb {
  flex: none;
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8e6e0;
  border-radius: 10px;
  background: radial-gradient(ellipse at 40% 30%, #fff, #eae9e5 88%);
}
.qb-thumb img { width: 92%; height: 92%; object-fit: contain; image-rendering: pixelated; }
.qb-thumb[hidden] { display: none; }
.qb-thumb svg { width: 32px; height: 32px; color: #6d695f; }
.qb-kind { color: #62605a; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.qb-name { margin: 2px 0 3px; color: inherit; font-size: 22px; line-height: 1.2; letter-spacing: -.04em; }
.qb-details { color: #52504c; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qb-details:hover { color: #a80024; }
.qb-opts { min-inline-size: 0; margin: 0 0 16px; padding: 0; border: 0; }
.qb-opts legend { padding: 0; margin-bottom: 9px; font-size: 12px; font-weight: 750; }
.qb-methods { display: grid; gap: 8px; }
.qb-opt {
  --qb-choice: #e80029;
  --qb-choice-bg: #fff5f7;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid #e4e3df;
  border-radius: 10px;
  background: #fafaf9;
  cursor: pointer;
}
.qb-opt[data-kind="coins"] { --qb-choice: #93640f; --qb-choice-bg: #fff7df; }
.qb-opt:hover { border-color: #a39d91; }
.qb-opt:has(:checked) { border-color: var(--qb-choice); background: var(--qb-choice-bg); box-shadow: 0 0 0 1px var(--qb-choice); }
.qb-opt input { width: 17px; height: 17px; margin: 0; accent-color: var(--qb-choice); }
.qb-opt-txt b, .qb-opt-txt small { display: block; line-height: 1.35; }
.qb-opt-txt b { font-size: 13px; }
.qb-opt-txt small { margin-top: 3px; color: #62605a; font-size: 11px; }
.qb-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.qb-opt[data-kind="coins"] .qb-price { color: #664600; }
.qb-login { margin: 0 0 10px; color: #5b5750; font-size: 12px; }
.qb-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 47px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: #e80029;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.qb-go:hover { background: #c80023; }
.qb-go.is-coins { background: #f4c755; color: #241a04; }
.qb-go.is-coins:hover { background: #edb933; }
.qb-go span:last-child { font-size: 17px; }
.qb-note { margin: 10px 0 0; color: #69665f; font-size: 11px; text-align: center; line-height: 1.5; }
@media (max-width: 450px) {
  .qb { padding: 18px; }
  .qb-head { gap: 11px; margin-bottom: 16px; padding-bottom: 14px; }
  .qb-thumb { width: 58px; }
  .qb-name { font-size: 19px; }
  .qb-opt { gap: 8px; padding-inline: 10px; }
  .qb-price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .qb[open] { animation: none; }
}
