/* Generated by npm run build. Edit src/styles/pages/cart.css. */
/* Hallmark · project: Comp Master · scope: existing UI polish · 2026-11-13
   Critique: hierarchy and legibility before decorative surfaces; locked brand retained. */
/* Comp Master checkout. Palette and themes belong to theme.css. */
body.checkout-page {
  --checkout-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --checkout-glass: var(--cm-comms-glass);
  background: radial-gradient(ellipse at 4% 12%, var(--accent-tint), transparent 42%), var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  margin: 0;
  animation: none;
}
.checkout-page *,
.checkout-page *::before,
.checkout-page *::after {
  box-sizing: border-box;
}
.checkout-page [hidden] {
  display: none !important;
}
.checkout-page .container {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}
.checkout-page button,
.checkout-page a {
  -webkit-tap-highlight-color: transparent;
}
.checkout-page button {
  cursor: pointer;
}
.checkout-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.checkout-page :is(button, a, input, textarea):focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}
.checkout-page :is(input, textarea) {
  caret-color: var(--accent-cyan);
}
.checkout-page ::selection {
  background: var(--accent);
  color: #fff;
}
.checkout-page .cart-header {
  position: relative;
  height: auto;
  opacity: 1;
  transform: none;
  animation: none;
  z-index: 100;
  border-bottom: 1px solid var(--border-glass);
  background: var(--checkout-glass);
  backdrop-filter: blur(18px);
}
.checkout-page .cart-header-content {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
.checkout-page .header-logo {
  width: 100px;
  height: 48px;
  object-fit: contain;
}
.checkout-page .cart-header-nav {
  display: flex;
  gap: 18px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.checkout-page .cart-header-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.checkout-page .cart-header-nav a:hover {
  color: var(--text-primary);
}
.checkout-page .cart-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.checkout-page .cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
}
.checkout-page .cart-icon {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.checkout-page .cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 3px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.checkout-page .cart-main {
  padding-block: 38px 100px;
}
.checkout-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  min-height: 36px;
}
.checkout-back:hover {
  color: var(--accent-cyan);
}
.checkout-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  padding-block: 24px 44px;
}
.checkout-page .cart-title-block h1 {
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  font-weight: 600;
}
.checkout-page .cart-subtitle {
  margin: 0;
  max-width: 56ch;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}
.checkout-steps {
  display: flex;
  gap: 20px;
  padding: 0 0 6px;
  margin: 0;
  list-style: none;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text-muted);
}
.checkout-steps li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.checkout-steps li + li::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--border-strong);
  margin-right: 3px;
}
.checkout-steps .is-complete {
  color: var(--success);
}
.checkout-steps [aria-current] {
  color: var(--text-primary);
}
.checkout-page .cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 32px;
  align-items: start;
}
.cart-items-section,
.cart-summary-section {
  min-width: 0;
}
.cart-items-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.checkout-page .cart-items-header h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}
.clear-cart-btn,
.promo-remove,
.checkout-text-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.clear-cart-btn:hover {
  color: var(--danger);
  background: var(--surface-soft);
  border-color: var(--danger);
}
.clear-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
}
.cart-items-list {
  display: grid;
  gap: 14px;
}
.checkout-page
  :is(.cart-item-card, .guest-checkout-card, .cart-summary-card, .cart-empty-state, .checkout-success) {
  background: var(--checkout-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}
.checkout-page .cart-item-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
  transition:
    transform 0.22s var(--ease),
    opacity 0.22s var(--ease);
}
.cart-item-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 24px -12px var(--glow-strong);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cart-item-card:is(:hover, :focus-within)::after {
  opacity: 1;
}
.checkout-page .cart-item-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 126px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  overflow: hidden;
  grid-row: span 2;
}
.cart-item-media img {
  width: 96px;
  height: 108px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.cart-item-card:hover .cart-item-media img {
  transform: scale(1.05);
}
.cart-item-badge {
  display: block;
  margin: 0 22px 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}
.checkout-page .cart-item-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 22px 8px 0;
}
.cart-item-specs {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.cart-item-unit-price {
  font-family: var(--checkout-mono);
  font-size: 14px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.checkout-page .cart-item-qty {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-glass);
  background: var(--surface-sunken);
  border-radius: 10px;
}
.qty-btn {
  width: 38px;
  height: 34px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 18px;
}
.qty-btn:hover {
  background: var(--accent-tint);
}
.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-family: var(--checkout-mono);
}
.cart-item-subtotal {
  grid-column: 3;
  grid-row: 2;
  font-family: var(--checkout-mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cart-item-delete {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.cart-item-delete:hover {
  background: var(--accent-tint);
  color: var(--danger);
}
.cart-item-card.removing {
  opacity: 0;
  transform: translate3d(-12px, 0, 0);
  pointer-events: none;
}
.checkout-page .guest-checkout-card {
  margin-top: 28px;
  padding: 28px;
  scroll-margin-top: 22px;
}
.checkout-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 26px;
}
.checkout-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-cyan);
  border: 1px solid var(--border-glass);
}
.checkout-card-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 7px;
}
.checkout-card-header p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.checkout-form {
  display: grid;
  gap: 20px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.form-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  align-content: start;
}
.checkout-page .form-group label,
#bankCodeForm label,
.crypto-address-block label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
}
.form-group label i {
  display: none;
}
.required-star {
  color: var(--accent-bright);
}
.checkout-page
  :is(
    .form-group input,
    .form-group textarea,
    .promo-input-group input,
    :where(#bankAuthCode, #cryptoWalletAddress)
  ) {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text-primary);
  background: var(--surface-sunken);
  font-size: 14px;
  line-height: 1.5;
}
.checkout-page .form-group textarea.cm-textarea {
  min-height: 136px;
  max-height: none;
  resize: none;
}
.checkout-page input::placeholder,
.checkout-page textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
.form-group input[aria-invalid='true'],
#bankAuthCode[aria-invalid='true'] {
  border-color: var(--danger);
}
.field-error {
  display: none;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.6;
}
.form-group.has-error .field-error {
  display: block;
}
.checkout-payment-section {
  padding: 0;
  border: 0;
  margin: 10px 0 0;
  min-width: 0;
}
.payment-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0;
}
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-method-card {
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--surface-sunken);
  min-width: 0;
}
.payment-method-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.payment-method-card:focus-within {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}
.payment-method-card:hover {
  border-color: var(--border-hover);
}
.payment-method-card.is-active {
  border-color: var(--accent-bright);
  background: var(--accent-tint);
  box-shadow:
    inset 0 0 0 1px var(--accent-bright),
    0 8px 22px -16px var(--glow-strong);
}
.method-card-content {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  min-height: 148px;
  gap: 8px;
}
.method-card-content strong {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text-primary);
}
.method-caption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.method-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 14px;
  color: transparent;
}
.is-active .method-check {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-bright);
}
.payment-detail {
  min-height: 40px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 14px 0 0;
}
.payment-demo-note {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
  margin: 8px 0 0;
}
.payment-demo-note i {
  color: var(--accent-cyan);
  margin-top: 4px;
}
.checkout-page :is(.btn-confirm-order, .checkout-btn, .checkout-primary) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition:
    transform 0.2s var(--ease),
    opacity 0.2s ease;
}
.checkout-page :is(.btn-confirm-order, .checkout-btn, .checkout-primary):hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--accent-hover);
  color: #fff;
}
.checkout-page :is(.btn-confirm-order, .checkout-btn, .checkout-primary):active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}
.checkout-page .cart-summary-section {
  position: sticky;
  top: 26px;
}
.checkout-page .cart-summary-card {
  padding: 26px;
  overflow: hidden;
  position: relative;
}
.cart-summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.7;
}
.receipt-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.receipt-heading h2 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  line-height: 1.5;
}
.receipt-heading i {
  color: var(--accent-cyan);
  font-size: 20px;
}
.summary-rows {
  display: grid;
  gap: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
  line-height: 1.6;
}
.summary-label {
  color: var(--text-secondary);
}
.summary-val {
  text-align: right;
  white-space: nowrap;
  font-family: var(--checkout-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.summary-free,
.discount-val {
  color: var(--success);
}
.promo-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-strong);
}
.promo-block label {
  font-size: 14px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
}
.promo-input-group {
  display: flex;
  gap: 7px;
}
.checkout-page .promo-input-group input {
  font-size: 14px;
  padding: 11px 10px;
}
.promo-input-group button {
  padding: 10px 12px;
  background: var(--surface-soft);
  color: var(--text-primary);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  font-size: 14px;
  flex-shrink: 0;
}
.promo-input-group button:hover {
  border-color: var(--border-hover);
}
.promo-message {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 0;
  min-height: 18px;
}
.promo-message.success {
  color: var(--success);
}
.promo-message.error,
.checkout-error {
  color: var(--danger);
}
.promo-message i {
  margin-right: 6px;
}
.promo-remove {
  color: var(--text-muted);
  font-size: 14px;
  padding-block: 7px 0;
}
.summary-divider {
  margin: 24px -26px;
  border-top: 1px dashed var(--border-strong);
}
.summary-total-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.total-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.total-price-stack {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 5px;
}
.total-price-stack del {
  font-family: var(--checkout-mono);
  font-size: 15px;
  color: var(--text-muted);
}
.total-amount {
  display: inline-block;
  font-family: var(--checkout-mono);
  font-size: 34px;
  letter-spacing: -0.045em;
  line-height: 1.25;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cart-guarantees {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-glass);
}
.guarantee-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.guarantee-item i {
  width: 14px;
  color: var(--accent-cyan);
  margin-top: 3px;
}
.cart-empty-state {
  padding: 60px 28px;
  text-align: center;
}
.empty-icon-wrap {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}
.cart-empty-state h3 {
  font-size: 22px;
}
.cart-empty-state p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
  margin-block: 12px 24px;
}
.btn-goto-catalog {
  color: var(--accent-bright);
  font-size: 14px;
}
/* Native dialog provides inert background, keyboard containment and top-layer placement. */
.checkout-dialog {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  color: var(--text-primary);
  background: var(--checkout-glass);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(26px);
  width: min(460px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: hidden;
}
.checkout-dialog::backdrop {
  background: var(--cm-overlay);
  backdrop-filter: blur(9px);
}
.checkout-dialog[open] {
  display: flex;
}
.payment-dialog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-height: calc(100dvh - 34px);
}
.payment-dialog-header {
  position: relative;
  height: auto;
  opacity: 1;
  transform: none;
  animation: none;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-glass);
  background: transparent;
  backdrop-filter: none;
  padding: 14px 20px;
}
.dialog-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.dialog-brand i {
  color: var(--accent-cyan);
  font-size: 19px;
}
.dialog-close {
  position: relative;
  border: 1px solid var(--border-glass);
  background: var(--surface-soft);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.dialog-close i,
.success-check i {
  display: none;
}
.dialog-close::before,
.dialog-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1px;
  background: currentColor;
  top: 16px;
  left: 10px;
  transform: rotate(45deg);
}
.dialog-close::after {
  transform: rotate(-45deg);
}
.dialog-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.dialog-body {
  padding: 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dialog-tag {
  display: inline-block;
  color: var(--accent-cyan);
  background: var(--accent-tint);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.dialog-body h2 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 12px;
  font-weight: 600;
}
.dialog-body > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.dialog-amount {
  font-family: var(--checkout-mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  margin-block: 22px;
  letter-spacing: -0.04em;
}
.bank-connecting {
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.checkout-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  animation: checkoutSpin 0.8s linear infinite;
}
#bankCodeForm {
  display: grid;
  gap: 12px;
}
.checkout-page #bankAuthCode {
  font-size: 28px;
  font-family: var(--checkout-mono);
  letter-spacing: 0.35em;
  text-align: center;
  padding: 14px 10px;
}
.field-hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  min-height: 18px;
}
.checkout-error {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  padding: 10px 0;
  overflow-wrap: anywhere;
}
.checkout-text-btn {
  display: block;
  width: 100%;
  text-align: center;
  min-height: 44px;
  margin-top: 9px;
}
.checkout-text-btn:hover {
  color: var(--accent-bright);
}
.crypto-dialog-body {
  text-align: center;
}
.crypto-coin-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.crypto-coin-btn {
  padding: 8px 22px;
  min-height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-family: var(--checkout-mono);
  font-size: 14px;
}
.crypto-coin-btn.active {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: var(--accent-tint);
}
.crypto-dialog-body .dialog-amount {
  margin-bottom: 3px;
}
.crypto-qr-wrap {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin: 18px auto;
  color: #10141c;
  font-size: 14px;
}
.crypto-qr-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}
.crypto-address-block {
  text-align: left;
}
.crypto-address-input-group {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.checkout-page #cryptoWalletAddress {
  font-family: var(--checkout-mono);
  font-size: 14px;
  padding: 10px;
}
#btnCopyCryptoAddress {
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
}
#btnCopyCryptoAddress:hover {
  border-color: var(--accent-bright);
}
#cryptoCopyStatus {
  padding-top: 5px;
}
.dialog-body .crypto-timer-wrap {
  margin: 12px 0 18px;
}
.crypto-timer-wrap strong {
  color: var(--accent-cyan);
  font-family: var(--checkout-mono);
  margin-left: 8px;
}
.checkout-page .checkout-success {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 52px 60px;
  text-align: center;
}
.success-check {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid var(--success);
  border-radius: 50%;
  color: var(--success);
  font-size: 32px;
  background: color-mix(in srgb, var(--success) 9%, transparent);
  box-shadow:
    0 12px 40px -20px var(--success),
    inset 0 0 20px -12px var(--success);
}
.success-check::before {
  content: '';
  width: 16px;
  height: 30px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
}
#orderSuccessTitle {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.success-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}
.success-receipt {
  margin: 0;
  display: grid;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}
.success-receipt > div {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}
.success-receipt dt {
  color: var(--text-muted);
  flex-shrink: 0;
}
.success-receipt dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
#receiptTotal {
  font-family: var(--checkout-mono);
}
#receiptStatus {
  color: var(--cm-warning);
}
.success-payment-note {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0;
}
.checkout-page .toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  background: var(--cm-comms-glass);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: calc(100% - 32px);
  font-size: 14px;
  z-index: 900;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    visibility 0.2s;
}
.checkout-page .toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
.checkout-page .toast-icon {
  color: var(--success);
  margin-right: 8px;
}
@keyframes checkoutSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes checkoutEnter {
  from {
    opacity: 0.4;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes checkoutCheck {
  from {
    opacity: 0.3;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .checkout-dialog[open],
  .checkout-success:not([hidden]) {
    animation: checkoutEnter 0.3s var(--ease) both;
  }
  .checkout-success:not([hidden]) .success-check {
    animation: checkoutCheck 0.45s var(--ease) both;
  }
}
@media (min-width: 901px) {
  .cart-summary-section {
    transform: translateZ(0);
  }
}
@media (max-width: 1190px) {
  .checkout-page .cart-header-nav {
    gap: 12px;
  }
  .checkout-intro {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .checkout-page .cart-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .checkout-page .cart-header-nav a {
    font-size: 14px;
  }
}
@media (max-width: 1000px) {
  .checkout-page .cart-header-nav {
    display: none;
  }
  .checkout-page .cart-item-card {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 14px;
  }
  .checkout-page .cart-item-media {
    width: 90px;
    height: 116px;
  }
  .cart-item-media img {
    width: 84px;
    height: 104px;
  }
  .method-card-content {
    padding: 16px 10px;
  }
}
@media (max-width: 900px) {
  .checkout-page .cart-summary-section {
    position: static;
  }
  .checkout-page .cart-summary-card {
    max-width: none;
  }
  .checkout-page .cart-header-content {
    min-height: 74px;
  }
}
@media (max-width: 600px) {
  .checkout-page .container {
    width: calc(100% - 28px);
  }
  .checkout-page .cart-main {
    padding-block: 18px 60px;
  }
  .checkout-intro {
    padding-block: 16px 28px;
    gap: 20px;
  }
  .checkout-page .cart-title-block h1 {
    font-size: 29px;
    max-width: 13ch;
  }
  .checkout-steps {
    gap: 10px;
    font-size: 14px;
  }
  .checkout-steps li {
    gap: 5px;
  }
  .checkout-steps li + li::before {
    width: 12px;
  }
  .checkout-page .cart-items-header h2 {
    font-size: 14px;
  }
  .clear-cart-btn {
    font-size: 14px;
  }
  .checkout-page .cart-item-card {
    padding: 15px;
    gap: 12px;
    grid-template-columns: 78px minmax(0, 1fr) 30px;
  }
  .checkout-page .cart-item-media {
    grid-row: 1;
    width: 78px;
    height: 100px;
  }
  .cart-item-media img {
    width: 74px;
    height: 94px;
  }
  .checkout-page .cart-item-info h3 {
    font-size: 14px;
    margin-right: 0;
  }
  .cart-item-specs {
    font-size: 14px;
  }
  .cart-item-unit-price {
    font-size: 14px;
  }
  .checkout-page .cart-item-qty {
    grid-column: 1;
    grid-row: 2;
  }
  .qty-btn {
    width: 28px;
    height: 32px;
  }
  .qty-val {
    min-width: 20px;
  }
  .cart-item-subtotal {
    grid-column: 2 / 4;
    font-size: 17px;
    text-align: right;
  }
  .cart-item-delete {
    width: 30px;
    height: 36px;
    align-self: start;
  }
  .checkout-page .guest-checkout-card {
    padding: 22px 18px;
  }
  .checkout-card-header {
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    align-items: start;
  }
  .checkout-card-header h3 {
    font-size: 16px;
  }
  .checkout-icon-wrap {
    width: 36px;
    height: 36px;
  }
  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .checkout-page :is(.form-group input, .form-group textarea) {
    font-size: 16px;
  }
  .payment-methods-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .method-card-content {
    padding: 14px 40px 14px 54px;
    min-height: 72px;
    position: relative;
    gap: 4px;
    justify-content: center;
  }
  .method-card-content strong {
    font-size: 14px;
  }
  .method-check {
    top: 27px;
    right: 15px;
  }
  .method-caption {
    font-size: 14px;
  }
  .checkout-page .cart-summary-card {
    padding: 24px;
  }
  .total-amount {
    font-size: 34px;
  }
  .dialog-body {
    padding: 22px;
  }
  .dialog-body h2 {
    font-size: 21px;
  }
  .checkout-page .checkout-success {
    margin-top: 16px;
    padding: 34px 22px;
  }
  #orderSuccessTitle {
    font-size: 26px;
  }
  .success-receipt > div {
    flex-direction: column;
    gap: 3px;
  }
  .success-receipt dd {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-page {
    scroll-behavior: auto;
  }
  .checkout-page *,
  .checkout-page *::before,
  .checkout-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .checkout-page
    :is(.cart-item-card, .guest-checkout-card, .cart-summary-card, .checkout-dialog, .checkout-success) {
    background: var(--bg-surface);
    backdrop-filter: none;
  }
  .checkout-dialog::backdrop {
    backdrop-filter: none;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .checkout-dialog,
  .checkout-page .cart-summary-card {
    background: var(--bg-surface);
  }
}

/* Checkout refinement: holographic terminal, CSS objects and a printed receipt. */
.checkout-page .container {
  max-width: 1280px;
  padding-inline: 0;
}
.checkout-page .cart-layout {
  grid-template-columns: minmax(0, 1fr) 400px;
}
.checkout-page .cart-summary-card.holographic-terminal {
  padding: 30px;
  border-color: color-mix(in srgb, var(--accent-cyan) 32%, var(--border-glass));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent-cyan) 7%, transparent), transparent 45%),
    var(--checkout-glass);
  box-shadow:
    var(--shadow-elevated),
    inset 0 0 32px -24px var(--accent-cyan);
}
.holographic-terminal::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    linear-gradient(var(--accent-cyan), var(--accent-cyan)) left top/18px 1px,
    linear-gradient(var(--accent-cyan), var(--accent-cyan)) left top/1px 18px,
    linear-gradient(var(--accent-cyan), var(--accent-cyan)) right bottom/18px 1px,
    linear-gradient(var(--accent-cyan), var(--accent-cyan)) right bottom/1px 18px;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.terminal-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-cyan);
  font: 14px/1.6 var(--checkout-mono);
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}
.terminal-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px -2px var(--accent-cyan);
}
.checkout-page .receipt-heading h2 {
  font-size: 21px;
  line-height: 1.4;
}
.checkout-page .summary-rows {
  gap: 20px;
}
.checkout-page .summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  align-items: baseline;
}
.checkout-page .summary-val {
  font: 700 18px/1.5 var(--font-display);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.checkout-page .summary-free {
  font-size: 14px;
  font-weight: 600;
}
.checkout-page .promo-block label,
.checkout-page .total-label {
  font-size: 15px;
}
.checkout-page .promo-input-group input {
  font-size: 14px;
}
.checkout-page .promo-input-group button {
  font-size: 14px;
}
.checkout-page .summary-divider {
  margin-inline: -30px;
}
.checkout-page .total-amount {
  font: 800 52px/1.13 var(--font-display);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 24px var(--glow-cyan);
}
.checkout-page .total-amount.is-long {
  font-size: 36px;
}
.checkout-page .total-price-stack del {
  font-size: 18px;
}
.checkout-page .total-label {
  color: var(--text-primary);
  font-weight: 500;
}
.checkout-page .cart-item-unit-price {
  font-size: 14px;
}
.checkout-page .cart-item-subtotal {
  font: 700 22px/1.4 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.checkout-page .qty-val {
  font: 600 17px/1 var(--font-display);
  min-width: 28px;
}
.checkout-page .qty-btn {
  width: 42px;
  height: 40px;
  font-size: 21px;
}
/* All three illustration scenes reuse the Unboxing visibility/pause lifecycle. */
.checkout-page .payment-methods-grid {
  gap: 14px;
}
.checkout-page .payment-method-card {
  --pay-neon: var(--accent-cyan);
  border-radius: 18px;
  background: linear-gradient(150deg, var(--glass-highlight), transparent 50%), var(--bg-glass);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}
.checkout-page .payment-panel--crypto {
  --pay-neon: var(--star);
}
.checkout-page .payment-panel--cod {
  --pay-neon: var(--success);
}
.checkout-page .payment-method-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--pay-neon);
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 10px 32px -20px var(--pay-neon),
    inset 0 1px 0 color-mix(in srgb, var(--pay-neon) 30%, transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.checkout-page .payment-method-card.is-active {
  border-color: var(--pay-neon);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--pay-neon) 11%, transparent), transparent 65%),
    var(--bg-glass);
  box-shadow: var(--shadow-card);
}
.checkout-page .payment-method-card:is(:hover, .is-active)::after {
  opacity: 1;
}
.checkout-page .method-card-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 252px;
  padding: 12px 16px 20px;
  gap: 12px;
  position: relative;
}
.method-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.checkout-page .method-copy strong {
  font: 600 14px/1.5 var(--font-display);
}
.checkout-page .method-caption {
  font-size: 14px;
  line-height: 1.6;
}
.checkout-page .method-check {
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-color: var(--border-strong);
}
.checkout-page .is-active .method-check {
  background: var(--pay-neon);
  border-color: var(--pay-neon);
  color: var(--bg-deep);
}
.checkout-page .is-active .method-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--bg-deep);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.payment-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 164px;
  width: 100%;
  perspective: 700px;
  pointer-events: none;
}
.payment-scene::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 48px;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--pay-neon) 65%, transparent), transparent 70%);
  filter: blur(8px);
  opacity: 0.36;
  transition: opacity 0.28s ease;
}
.payment-method-card.is-active .payment-scene::before {
  opacity: 1;
}
.payment-object {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform: var(--payment-pose);
  animation: floating 5.6s ease-in-out infinite;
}
.payment-panel--crypto .payment-object {
  animation-delay: -1.8s;
}
.payment-panel--cod .payment-object {
  animation-delay: -3.6s;
}
.payment-card-object {
  --payment-pose: rotateX(17deg) rotateY(-26deg) rotateZ(-14deg);
  width: 138px;
  height: 88px;
}
.payment-card-front,
.payment-card-back {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 10px;
  border: 1px solid #8c9ebd;
}
.payment-card-back {
  background: #111a2b;
  transform: translateZ(-4px);
  box-shadow:
    2px 3px 0 #53627c,
    4px 5px 0 #172339,
    12px 20px 24px rgba(0, 0, 0, 0.4);
}
.payment-card-front {
  transform: translateZ(4px);
  color: #e3e9f5;
  background:
    linear-gradient(128deg, rgba(190, 218, 255, 0.2), transparent 48%),
    linear-gradient(145deg, #34425e, #131c30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 4px rgba(103, 223, 239, 0.04);
}
.card-mini-brand {
  position: absolute;
  top: 12px;
  left: 13px;
  font: 700 14px/1 var(--font-display);
  letter-spacing: 0.1em;
}
.card-chip {
  position: absolute;
  top: 29px;
  left: 13px;
  width: 23px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #d9bd75;
  background:
    linear-gradient(
      90deg,
      transparent 40%,
      #7a6529 41% 45%,
      transparent 46% 65%,
      #7a6529 66% 70%,
      transparent 71%
    ),
    repeating-linear-gradient(0deg, #b6974f 0 5px, #705a29 5px 6px, #dfc98e 6px 10px);
}
.card-contactless {
  position: absolute;
  top: 31px;
  right: 17px;
  width: 16px;
  height: 15px;
  border-right: 2px solid var(--pay-neon);
  border-radius: 50%;
}
.card-contactless::before {
  content: '';
  position: absolute;
  inset: 3px 4px 3px 0;
  border-right: 2px solid var(--pay-neon);
  border-radius: 50%;
}
.card-digits {
  position: absolute;
  left: 13px;
  bottom: 22px;
  font: 14px/1 var(--checkout-mono);
  letter-spacing: 0.14em;
}
.card-mini-label {
  position: absolute;
  left: 13px;
  bottom: 10px;
  font: 14px/1 var(--checkout-mono);
  letter-spacing: normal;
  color: #b9cada;
}
.payment-coin-object {
  --payment-pose: rotateX(13deg) rotateY(-26deg) rotateZ(-13deg);
  width: 101px;
  height: 101px;
}
.coin-edge {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: translateZ(calc(-7px + var(--slice) * 2px));
  background: repeating-conic-gradient(#927027 0deg 5deg, #d9ad4e 5deg 9deg, #5e4217 9deg 12deg);
  border: 1px solid #cb9d45;
}
.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(9px);
  border-radius: 50%;
  border: 3px solid #e8c36e;
  background: radial-gradient(circle at 28% 22%, #ffe4a2, #d4a848 65%, #a87522);
  box-shadow:
    inset 0 0 0 3px #98722a,
    inset 0 0 0 4px #f3d58c,
    inset 0 0 0 7px #d1a23e;
  color: #6e4a16;
}
.coin-symbol {
  font:
    700 57px/1 Georgia,
    serif;
  transform: translateY(-2px);
  text-shadow:
    0 1px 0 #ffe8af,
    0 -1px 0 #765016;
}
.coin-legend {
  position: absolute;
  bottom: 11px;
  font: 700 5px/1 var(--checkout-mono);
  letter-spacing: 0.24em;
}
.payment-case-object {
  --payment-pose: rotateX(15deg) rotateY(-25deg) rotateZ(-8deg);
  width: 122px;
  height: 82px;
}
.payment-case-front,
.payment-case-back,
.payment-case-right,
.payment-case-top {
  position: absolute;
  display: block;
  border: 1px solid #728598;
}
.payment-case-front {
  inset: 0;
  transform: translateZ(12px);
  background: linear-gradient(140deg, #455768, #17252e);
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 3px #1e303a,
    inset 0 0 0 4px #5b6e7a,
    inset 0 1px 0 #b5c6d0;
}
.payment-case-back {
  inset: 0;
  transform: translateZ(-12px);
  background: #101d26;
  border-radius: 5px;
  box-shadow: 9px 20px 22px rgba(0, 0, 0, 0.35);
}
.payment-case-right {
  width: 24px;
  height: 82px;
  left: 110px;
  top: 0;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #15232c, #3b4b57);
}
.payment-case-top {
  width: 122px;
  height: 24px;
  left: 0;
  top: -12px;
  transform: rotateX(90deg);
  background: linear-gradient(#526779, #283b49);
}
.payment-case-handle {
  position: absolute;
  width: 39px;
  height: 15px;
  top: -16px;
  left: 42px;
  border: 3px solid #8195a4;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  transform: translateZ(2px);
}
.payment-case-rib {
  position: absolute;
  width: 4px;
  height: 39px;
  top: 22px;
  border-radius: 1px;
  background: linear-gradient(90deg, #286951, var(--pay-neon), #255d49);
  box-shadow: 0 0 9px -2px var(--pay-neon);
}
.rib-left {
  left: 14px;
}
.rib-right {
  right: 14px;
}
.payment-case-lock {
  position: absolute;
  width: 13px;
  height: 7px;
  top: -3px;
  border: 1px solid #1e2b33;
  border-radius: 2px;
  background: linear-gradient(#c1d1d9, #758993);
}
.lock-left {
  left: 21px;
}
.lock-right {
  right: 21px;
}
.payment-case-mark {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 24px;
  text-align: center;
  font: 800 14px/1.3 var(--font-display);
  letter-spacing: 0.05em;
  color: #abf0cc;
}
.payment-case-serial {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font: 14px/1 var(--checkout-mono);
  letter-spacing: 0.12em;
  color: #bdcdd1;
}
@keyframes floating {
  0%,
  100% {
    transform: translate3d(0, 3px, 0) var(--payment-pose);
  }
  50% {
    transform: translate3d(0, -9px, 0) var(--payment-pose);
  }
}
body:has(.checkout-dialog[open]) .payment-object {
  animation-play-state: paused;
}
/* Printed document is intentionally porcelain paper in both site themes. */
.checkout-page .checkout-success.receipt-experience {
  --paper: #f4f2ed;
  --paper-ink: var(--ink);
  --paper-muted: #57545e;
  --paper-line: rgba(22, 20, 28, 0.24);
  max-width: 760px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.receipt-experience .success-intro {
  max-width: 56ch;
  margin-inline: auto;
}
.receipt-printer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(540px, 100%);
  height: 40px;
  margin: 34px auto 0;
  padding: 0 20px;
  color: var(--text-muted);
  background: linear-gradient(var(--surface-soft), var(--surface-sunken));
  border: 1px solid var(--border-strong);
  border-radius: 11px 11px 6px 6px;
  font: 14px/1 var(--checkout-mono);
  letter-spacing: 0.16em;
  box-shadow:
    inset 0 -7px 0 var(--bg-deep),
    0 16px 30px -20px rgba(0, 0, 0, 0.8);
}
.receipt-printer::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 20px;
  right: 20px;
  bottom: 1px;
  background: var(--success);
  opacity: 0.75;
  box-shadow: 0 0 14px var(--success);
}
.printer-light {
  width: 16px;
  height: 3px;
  background: var(--success);
  box-shadow: 0 0 10px -2px var(--success);
}
.receipt-reveal {
  width: min(500px, calc(100% - 24px));
  margin: -5px auto 0;
  padding-bottom: 18px;
  overflow: hidden;
}
.digital-receipt {
  position: relative;
  padding: 42px 34px 38px;
  text-align: left;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.45), transparent 40%), var(--paper);
  color: var(--paper-ink);
  font: 14px/1.75 var(--checkout-mono);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 32px rgba(22, 20, 28, 0.035);
  -webkit-mask:
    linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8Z'/%3E%3C/svg%3E")
      bottom/12px 8px repeat-x;
  mask:
    linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8Z'/%3E%3C/svg%3E")
      bottom/12px 8px repeat-x;
}
.paper-wordmark {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.paper-subtitle {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.07em;
  color: var(--paper-muted);
  margin: 5px 0 24px;
}
.paper-reference {
  display: grid;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--paper-line);
  text-align: center;
}
.paper-reference > span {
  font-size: 14px;
  color: var(--paper-muted);
  letter-spacing: 0.12em;
}
.paper-reference strong {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.paper-reference time {
  color: var(--paper-muted);
  font-size: 14px;
  margin-top: 5px;
}
.receipt-verification-stamp {
  width: fit-content;
  margin: 24px auto;
  border: 2px solid #197354;
  border-radius: 4px;
  padding: 6px 12px;
  color: #197354;
  font: 700 14px/1.5 var(--checkout-mono);
  letter-spacing: 0.14em;
  transform: rotate(-4deg);
  box-shadow:
    inset 0 0 0 2px var(--paper),
    inset 0 0 0 3px #197354;
}
.receipt-items {
  width: 100%;
  padding: 0;
  margin: 22px 0;
  table-layout: fixed;
  border-collapse: collapse;
}
.receipt-items th {
  color: var(--paper-muted);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--paper-line);
}
.receipt-items th:last-child {
  width: 54px;
  text-align: right;
}
.receipt-item td {
  vertical-align: top;
  padding: 14px 0 4px;
}
.receipt-item-name {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.receipt-item-specs {
  display: block;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.receipt-item .receipt-item-quantity {
  white-space: nowrap;
  font-size: 14px;
  text-align: right;
  padding-left: 8px;
}
.paper-totals {
  display: grid;
  gap: 10px;
  padding: 22px 0;
  margin-bottom: 20px;
  border-block: 1px dashed var(--paper-line);
}
.paper-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}
.paper-totals strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.paper-totals .paper-grand-total {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}
.paper-grand-total #receiptTotal {
  font-family: var(--checkout-mono);
  letter-spacing: -0.035em;
}
.digital-receipt .success-receipt {
  font: 14px/1.8 var(--checkout-mono);
  gap: 12px;
}
.digital-receipt .success-receipt > div {
  gap: 20px;
  flex-direction: row;
}
.digital-receipt .success-receipt dt {
  color: var(--paper-muted);
}
.digital-receipt .success-receipt dd {
  color: var(--paper-ink);
  text-align: right;
}
.digital-receipt #receiptStatus {
  color: #72500f;
}
.digital-receipt .success-payment-note {
  color: var(--paper-muted);
  font: 14px/1.8 var(--checkout-mono);
  padding-block: 20px;
  margin: 20px 0 0;
  border-top: 1px dashed var(--paper-line);
}
.receipt-code {
  display: grid;
  place-items: center;
  width: 148px;
  min-height: 148px;
  margin: 0 auto 12px;
  background: #fff;
  color: var(--paper-ink);
  padding: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.receipt-code svg {
  display: block;
  width: 100%;
  height: auto;
}
.receipt-barcode {
  width: 100%;
  margin: 12px auto 22px;
  color: var(--paper-ink);
  overflow-wrap: anywhere;
}
.receipt-barcode svg {
  display: block;
  width: 100%;
  height: 56px;
  fill: currentColor;
}
.paper-code-caption {
  font-size: 14px;
  color: var(--paper-muted);
  text-align: center;
}
.paper-footer {
  margin: 20px 0 10px;
  font-size: 14px;
  text-align: center;
}
.receipt-document-note {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  color: var(--paper-muted);
}
.receipt-experience .receipt-catalog-link {
  width: min(500px, 100%);
  margin: 14px auto 0;
}
@keyframes receiptPrint {
  0% {
    transform: translate3d(0, -101%, 0);
  }
  76% {
    transform: translate3d(0, 12px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .receipt-experience:not([hidden]) .digital-receipt {
    animation: receiptPrint 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .payment-scene:not(.cm-motion-paused) .payment-object {
    will-change: transform;
  }
}
@media (max-width: 1190px) {
  .checkout-page .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }
  .checkout-page .total-amount {
    font-size: 46px;
  }
  .checkout-page .total-amount.is-long {
    font-size: 32px;
  }
  .checkout-page .cart-summary-card.holographic-terminal {
    padding: 26px;
  }
  .checkout-page .method-card-content {
    padding-inline: 12px;
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .checkout-page .payment-methods-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-page .method-card-content {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 176px;
    padding: 6px 18px;
    align-items: center;
  }
}
@media (max-width: 900px) {
  .checkout-page .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .checkout-page .cart-summary-card.holographic-terminal {
    padding: 24px;
  }
  .checkout-page .summary-row {
    font-size: 15px;
    gap: 12px;
  }
  .checkout-page .summary-val {
    font-size: 17px;
  }
  .checkout-page .summary-free {
    font-size: 14px;
  }
  .checkout-page .total-amount {
    font-size: 42px;
  }
  .checkout-page .total-amount.is-long {
    font-size: 30px;
  }
  .checkout-page .receipt-heading h2 {
    font-size: 21px;
  }
  .checkout-page .method-card-content {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    min-height: 182px;
    padding: 8px 18px 8px 6px;
    gap: 10px;
    align-items: center;
  }
  .checkout-page .payment-scene {
    width: 124px;
    height: 164px;
  }
  .checkout-page .payment-object {
    scale: 0.8;
  }
  .checkout-page .method-copy strong {
    font-size: 15px;
  }
  .checkout-page .method-caption {
    font-size: 14px;
  }
  .checkout-page .method-check {
    top: 13px;
    right: 13px;
  }
  .checkout-page .cart-item-qty {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .checkout-page .cart-item-subtotal {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
    font-size: 23px;
  }
  .checkout-page .cart-item-unit-price {
    font-size: 14px;
  }
  .checkout-page .qty-val {
    font-size: 17px;
  }
  .checkout-page .qty-btn {
    width: 42px;
    height: 40px;
  }
  .checkout-page .checkout-success.receipt-experience {
    padding: 0;
  }
  .digital-receipt {
    padding: 32px 22px 28px;
  }
  .paper-wordmark {
    font-size: 19px;
  }
  .paper-reference strong {
    font-size: 20px;
  }
  .paper-totals .paper-grand-total {
    font-size: 21px;
  }
  .digital-receipt .success-receipt > div {
    flex-direction: column;
    gap: 3px;
  }
  .digital-receipt .success-receipt dd {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-page .payment-object,
  .checkout-page .digital-receipt {
    animation: none;
    will-change: auto;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .checkout-page .payment-method-card,
  .checkout-page .cart-summary-card.holographic-terminal {
    background: var(--bg-surface);
    backdrop-filter: none;
  }
}

/* OTP v3: one finite compositor animation, no background render loop. */
.otp-fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.otp-fieldset legend {
  font: 500 14px/1.6 var(--font-display);
  color: var(--text-secondary);
}
.otp-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 134px;
  isolation: isolate;
}
.otp-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 14px);
  width: 100%;
}
.otp-slot {
  position: relative;
  display: block;
  width: 58px;
  height: 70px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: linear-gradient(150deg, var(--glass-highlight), transparent), var(--surface-soft);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 8px 20px -14px var(--accent-cyan);
}
.otp-slot:focus-within {
  border-color: var(--accent-cyan);
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}
#bankCodeForm .otp-input {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font: 600 32px/1 var(--checkout-mono);
  letter-spacing: 0;
  color: var(--text-primary);
  caret-color: var(--accent-cyan);
  outline: none;
}
.otp-slot:has([aria-invalid='true']) {
  border-color: var(--danger);
}
.otp-verified {
  position: absolute;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--success);
  background: color-mix(in srgb, var(--success) 16%, var(--bg-surface));
  color: var(--success);
  box-shadow:
    0 0 46px -10px var(--success),
    inset 0 0 20px -8px var(--success);
  opacity: 0;
  pointer-events: none;
}
.otp-verified svg {
  width: 38px;
  height: 38px;
}
.otp-verified.is-visible {
  opacity: 1;
}
.is-verified .otp-slots {
  visibility: hidden;
}
.otp-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.otp-particles > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  opacity: 0;
}
.otp-progress {
  min-height: 34px;
  margin: 8px 0;
  color: var(--success);
  font-size: 14px;
  line-height: 1.6;
}
.otp-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background: linear-gradient(120deg, var(--accent-tint), transparent), var(--surface-soft);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.otp-message > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.otp-message-icon {
  font-size: 20px;
}
.otp-message-label {
  display: block;
  font: 14px/1.5 var(--checkout-mono);
  letter-spacing: normal;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.otp-message-copy {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.otp-message-copy strong {
  color: var(--text-primary);
  font-family: var(--checkout-mono);
  letter-spacing: 0.08em;
}
.otp-message button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  background: var(--accent-tint);
  color: var(--text-primary);
  font: 600 14px/1 var(--font-display);
  cursor: pointer;
  transition: transform 0.2s;
}
.otp-message button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.otp-message button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}
.otp-message button:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (prefers-reduced-motion: no-preference) {
  #bankCodeForm:not([hidden]) .otp-message {
    animation: otpMessageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
@keyframes otpMessageIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 380px) {
  .otp-slot {
    width: 46px;
    height: 62px;
    border-radius: 12px;
  }
  .otp-message {
    padding: 12px 10px;
    gap: 8px;
  }
  .otp-message-icon {
    display: none;
  }
}
@media (max-height: 820px) {
  #modal3DSecure .dialog-body {
    padding: 20px 22px;
  }
  #modal3DSecure .dialog-amount {
    margin-block: 14px;
  }
  #bankCodeForm {
    gap: 8px;
  }
  #bankCodeForm .otp-orbit {
    min-height: 104px;
  }
  #bankCodeForm .otp-progress {
    margin: 0;
  }
  #bankCodeForm .otp-message {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .otp-message,
  .otp-message button {
    animation: none;
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .otp-message {
    background: var(--bg-surface);
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .otp-slot,
  .otp-verified,
  .otp-message {
    border: 1px solid CanvasText;
  }
  .otp-slot:focus-within {
    outline-color: Highlight;
  }
  .otp-message button {
    border: 1px solid ButtonText;
  }
  .receipt-verification-stamp {
    color: CanvasText;
    border-color: CanvasText;
  }
}

/* Daylight checkout: directional elevation replaces the dark terminal's bloom. */
html[data-theme='light'] .checkout-page :is(.cart-item-card, .guest-checkout-card, .cart-summary-card) {
  background: var(--bg-glass);
  border-color: var(--daylight-glass-edge);
  backdrop-filter: blur(var(--daylight-glass-blur));
  -webkit-backdrop-filter: blur(var(--daylight-glass-blur));
  box-shadow: var(--shadow-card);
  transition:
    transform 300ms ease-out,
    box-shadow 300ms ease-out;
}
html[data-theme='light'] .checkout-page .cart-summary-card.holographic-terminal {
  background: var(--bg-glass-light);
  border-color: var(--daylight-glass-edge);
  box-shadow: var(--shadow-card);
}
html[data-theme='light'] .checkout-page .cart-item-card:hover {
  box-shadow: var(--shadow-hover);
}
html[data-theme='light'] .checkout-page .cart-item-card::after,
html[data-theme='light'] .checkout-page .terminal-indicator {
  box-shadow: none;
}
html[data-theme='light'] .checkout-page .payment-method-card::after {
  box-shadow: var(--shadow-card);
}
html[data-theme='light'] .checkout-page .payment-method-card.is-active {
  background: var(--bg-glass-light);
}
html[data-theme='light'] .checkout-page .payment-scene::before {
  background: radial-gradient(ellipse, var(--shadow-ink), transparent 70%);
  opacity: 0.5;
}
html[data-theme='light'] .checkout-page .payment-method-card.is-active .payment-scene::before {
  opacity: 0.8;
}
html[data-theme='light'] .checkout-dialog {
  background: var(--cm-comms-glass);
  border-color: var(--daylight-glass-edge);
  backdrop-filter: blur(var(--daylight-glass-blur));
  -webkit-backdrop-filter: blur(var(--daylight-glass-blur));
  box-shadow: var(--shadow-elevated);
}
html[data-theme='light'] .checkout-page :is(.btn-confirm-order, .checkout-btn, .checkout-primary) {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-primary);
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: var(--daylight-transition);
}
html[data-theme='light']
  .checkout-page
  :is(.btn-confirm-order, .checkout-btn, .checkout-primary):hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: var(--shadow-primary-hover);
  transform: translate3d(0, var(--daylight-lift), 0);
}
html[data-theme='light'] .checkout-page :is(.btn-confirm-order, .checkout-btn, .checkout-primary):disabled {
  transform: translateZ(0);
  box-shadow: none;
}
html[data-theme='light']
  .checkout-page
  :is(.btn-clear-cart, .checkout-secondary, .checkout-text-btn, .dialog-close, #btnCopyCryptoAddress) {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--daylight-secondary-edge);
  box-shadow: none;
  transition: var(--daylight-transition);
}
html[data-theme='light']
  .checkout-page
  :is(
    .btn-clear-cart,
    .checkout-secondary,
    .checkout-text-btn,
    .dialog-close,
    #btnCopyCryptoAddress
  ):hover:not(:disabled) {
  background: var(--daylight-secondary-hover);
}
html[data-theme='light'] .otp-slot {
  background: var(--bg-surface);
  border-color: var(--field-border);
  box-shadow: var(--shadow-field);
}
