.checkout-sheet {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 480px);
  max-width: none;
  max-height: 94dvh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 24px 5.5% calc(24px + env(safe-area-inset-bottom));
  border: 1px solid #353e48;
  border-bottom: 0;
  border-inline: 0;
  border-radius: 28px 28px 0 0;
  background: radial-gradient(ellipse at 38% 0, #151e26, transparent 55%), #0b0e11;
  color: #f5f6f8;
}
.checkout-sheet::backdrop { background: rgb(0 0 0 / 14%); }
.checkout-sheet [hidden] { display: none !important; }
.checkout-sheet h1, .checkout-sheet p { margin: 0; }
.checkout-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50%;
  width: 30px;
  height: 4px;
  border-radius: 6px;
  background: #f0f1f4;
}
.checkout-close {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  font: 25px/1 system-ui, sans-serif;
}
.checkout-close:focus-visible { outline: none; background: #ffffff19; }
#checkout-title { font-size: clamp(22px, 5.6vw, 29px); line-height: 1.12; }
#checkout-reference { color: #adb4c0; margin-top: 5px; }
.checkout-token {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 3vw, 16px);
  margin-top: 14px;
  padding: 6px 10px;
  min-height: 48px;
  border: 1px solid #333942;
  border-radius: 11px;
  background: linear-gradient(140deg, #171d23, #121619);
}
.checkout-token strong, .checkout-token small { display: block; }
.checkout-token strong { font-size: 15px; }
.checkout-token small { color: #b7bfca; font-size: clamp(10px, 2.85vw, 13px); }
.checkout-token-art { position: relative; width: 31px; }
.checkout-token-art img { width: 100%; display: block; border-radius: 7px; }
.checkout-token-art > span {
  position: absolute; right: -4px; bottom: -3px;
  display: grid; place-items: center; width: 16px; height: 16px;
  background: #dba51b; border: 1px solid #171b20; border-radius: 4px; font-size: 11px;
}
#checkout-clock { font-size: clamp(15px, 4.1vw, 21px); font-weight: 700; font-variant-numeric: tabular-nums; }
#checkout-qr {
  display: block;
  width: clamp(130px, 39vw, 187px);
  aspect-ratio: 1;
  margin: clamp(13px, 4.8vw, 22px) auto;
  padding: 5px;
  background: #fff;
  border-radius: 12px;
  image-rendering: pixelated;
}
.checkout-field { margin-top: 10px; color: #b7bfca; font-size: clamp(11px, 2.9vw, 14px); }
.checkout-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  margin-top: 5px;
  padding: 4px 5px 4px 12px;
  border: 1px solid #565e67;
  border-radius: 10px;
  background: linear-gradient(135deg, #191e24, #121619);
  color: #f5f6f8;
}
#checkout-amount { font-size: clamp(16px, 4vw, 20px); font-variant-numeric: tabular-nums; }
.checkout-unit { color: #adb4c0; margin-left: 4px; }
#checkout-address { overflow-wrap: anywhere; font: inherit; }
.checkout-value button {
  display: grid; place-items: center; width: 29px; height: 29px; padding: 0;
  border-radius: 9px; background: #20252a; color: inherit; border: 1px solid #3d454e;
}
.checkout-value .nx-icon { width: 17px; height: 17px; }
#checkout-status:not(:empty), #checkout-feedback:not(:empty), #checkout-progress { margin-top: 10px; color: #c4cad3; }
#checkout-progress progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 9px;
  border: 1px solid #050609;
  border-radius: 20px;
  background: #292b30;
  overflow: hidden;
}
#checkout-progress progress::-webkit-progress-bar { background: #292b30; }
#checkout-progress progress::-webkit-progress-value { background: #edf2fb; border-radius: 20px; }
#checkout-progress progress::-moz-progress-bar { background: #edf2fb; border-radius: 20px; }
#checkout-progress a { margin-top: 19px; }
.checkout-sheet-progress { background: linear-gradient(115deg, #171c23, #101116); }
.checkout-sheet-progress::backdrop { background: rgb(0 0 0 / 22%); }
.checkout-sheet-progress .checkout-token { background: #17191e; }
.checkout-sheet-progress .checkout-primary { border-radius: 24px; }
.checkout-sheet-progress #checkout-status { margin-top: 10px; }

.checkout-help {
  display: block;
  margin: 14px 0;
  text-align: center;
  font-size: clamp(11px, 3.15vw, 15px);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-primary {
  display: grid;
  place-content: center;
  min-height: 43px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(#fff, #e6e9f1);
  color: #08090b;
  text-align: center;
  font-size: clamp(14px, 4vw, 19px);
  font-weight: 750;
}


.checkout-reminder {
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid #646971;
  border-radius: 14px;
  font-size: clamp(11px, 3.1vw, 14px);
  line-height: 1.35;
}
.checkout-reminder > div {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 9px 12px;
  background: #15191f;
}
.checkout-reminder > div:first-child {
  padding-right: 80px;
  background: #f6f7fa;
  color: #0b0c0e;
}
.checkout-reminder b {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 4px 7px;
  border-radius: 9px;
  background: #08090b;
  color: #fff;
  white-space: nowrap;
}
#checkout-address b { font-weight: 800; }
