/* TASK-PAYMENT-FLOW-001 + TASK-UX-004 (INPUT_RULES) + TASK-040-UX EVO shell */
.checkout-shell {
  min-height: 100vh;
  background: var(--bg, #0e0e13);
  color: var(--text, #ededed);
}
.checkout-main {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1rem 3rem;
}
.checkout-inner {
  max-width: 480px;
  margin: 0 auto;
}
.checkout-page-card {
  padding: 1.5rem 1.25rem 1.75rem;
}
.checkout-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.checkout-lede {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}
.checkout-total-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.checkout-total-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.checkout-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checkout-panel {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
}
.checkout-panel--spaced {
  margin-top: 2rem;
}
.checkout-footnote {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1.5rem 0 0;
}
.checkout-err {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--destructive);
}
.checkout-card-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 0.75rem;
  border: 1px solid #272729;
  background: #151519;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.checkout-card-btn .method-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-card-btn .method-label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
}
.checkout-card-btn .method-sublabel {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.checkout-card-btn .method-fee {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  max-width: 38%;
  text-align: right;
}
.checkout-card-btn .method-arrow {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  opacity: 0.85;
}
.checkout-card-btn--inactive {
  opacity: 0.55;
  cursor: not-allowed;
}
.checkout-card-btn--inactive:hover,
.checkout-card-btn--inactive:focus-visible {
  border-color: #272729;
  box-shadow: none;
}
.checkout-card-btn:hover,
.checkout-card-btn:focus-visible {
  border-color: hsl(25 85% 65%);
  outline: none;
  box-shadow: 0 0 0 1px hsl(25 85% 65% / 0.35);
}
.checkout-card-btn.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}
.checkout-pay-btn {
  width: 100%;
  margin-top: 1rem;
  min-height: 52px;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.checkout-page-card .checkout-pay-btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink, var(--bg));
}
.checkout-pay-btn:hover,
.checkout-pay-btn:focus-visible {
  filter: brightness(1.05);
  outline: none;
}
.checkout-pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.checkout-shell #fx-conversion-block {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.checkout-shell .fx-amount-primary {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.checkout-shell .fx-amount-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.checkout-price {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 800;
  color: #e8956a;
}
@media (min-width: 768px) {
  .checkout-price {
    font-size: 2.25rem;
  }
}
/* INPUT_RULES: поля крипто-формы */
.co-field {
  position: relative;
  margin-bottom: 1rem;
}
.co-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative; /* для абс. позиции .co-input-ico */
  width: 100%;
}
.co-input {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid #272729;
  background: #0e0e13;
  padding: 0 0.75rem 0 0.75rem;
  color: #ededed;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.co-input::placeholder {
  color: #6b7280;
  font-size: 0.875rem;
}
.co-input:focus {
  outline: none;
  border-color: hsl(25 85% 65%);
  box-shadow: 0 0 0 1px hsl(25 85% 65% / 0.35);
}
.co-input--ok {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.15) !important;
}
.co-input--err {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.15) !important;
}
.co-input-ico {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  text-align: center;
  line-height: 1.25rem;
  font-size: 0.9rem;
  flex-shrink: 0;
  pointer-events: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}
.co-input-ico--ok {
  color: #22c55e;
  font-size: 1.1rem;
  background: #0E0E13;
}
.co-input-ico--err {
  color: #ef4444;
  background: #0E0E13;
}
/* Паддинг для поля под иконку  */
.co-input--has-ico {
  padding-right: 1.8rem;
}
.co-field-err,
.co-email-suggest,
.co-optional-hint,
.co-hint,
.co-suggest-hint,
.co-typo {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 4px;
  color: #9d9da8;
}
.co-field-err[role="alert"] {
  color: #ef4444;
  margin-top: 4px;
  font-size: 12px;
  display: block;
  font-style: normal;
  font-weight: 400;
}
.co-suggest-hint a,
.co-typo button {
  color: hsl(25 85% 65%);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.shake-err {
  animation: co-shake 0.35s ease;
}
@keyframes co-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}
.co-asterisk {
  color: hsl(25 85% 65%);
  margin-left: 0.1em;
  cursor: help;
}
.co-typo-hi {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

/* TASK-DS-ROLLOUT-002: замена utilities из удалённого Tailwind CDN (checkout.js вставляет те же классы) */
.checkout-shell .hidden {
  display: none !important;
}
.checkout-shell .flex { display: flex; }
.checkout-shell .inline-flex { display: inline-flex; }
.checkout-shell .justify-center {
  justify-content: center;
}
.checkout-shell .min-h-\[180px\] {
  min-height: 180px;
}
.checkout-shell .flex-1 { flex: 1 1 0%; }
.checkout-shell .flex-wrap { flex-wrap: wrap; }
.checkout-shell .items-center { align-items: center; }
.checkout-shell .gap-2 { gap: 0.5rem; }
.checkout-shell .gap-3 { gap: 0.75rem; }
.checkout-shell .block { display: block; }
.checkout-shell .underline { text-decoration: underline; }
.checkout-shell .h-12 { height: 3rem; }
.checkout-shell .min-w-\[8rem\] { min-width: 8rem; }
.checkout-shell .rounded-xl { border-radius: var(--radius); }
.checkout-shell .px-4 { padding-left: 1rem; padding-right: 1rem; }
.checkout-shell .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.checkout-shell .text-left { text-align: left; }
.checkout-shell .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.checkout-shell .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.checkout-shell .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.checkout-shell .text-xs { font-size: 0.75rem; line-height: 1rem; }
.checkout-shell .font-bold { font-weight: 700; }
.checkout-shell .font-semibold { font-weight: 600; }
.checkout-shell .text-muted { color: var(--muted); }
.checkout-shell .text-fg { color: var(--text); }
.checkout-shell .text-bg { color: var(--bg); }
.checkout-shell .mb-1 { margin-bottom: 0.25rem; }
.checkout-shell .mb-2 { margin-bottom: 0.5rem; }
.checkout-shell .mb-3 { margin-bottom: 0.75rem; }
.checkout-shell .mt-1 { margin-top: 0.25rem; }
.checkout-shell .mt-4 { margin-top: 1rem; }
.checkout-shell .mt-6 { margin-top: 1.5rem; }
.checkout-shell .mt-8 { margin-top: 2rem; }
.checkout-shell .space-y-2 > * + * { margin-top: 0.5rem; }
.checkout-shell .space-y-3 > * + * { margin-top: 0.75rem; }
.checkout-shell .accent-gold { accent-color: var(--primary); }
.checkout-shell .bg-gold { background: var(--primary); }
.checkout-shell .hover\:bg-gold-hover:hover {
  background: color-mix(in srgb, var(--primary) 90%, #000);
}
.checkout-shell .text-red-400 { color: var(--destructive); }
