/* Kasa — spójna z główną stroną (szkło, obramowania, odstępy) + responsywność */

.checkout-body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    rgb(9, 9, 9);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: whitesmoke;
}

.checkout-header {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(92vw, 720px);
  max-width: 100%;
  margin: max(12px, env(safe-area-inset-top)) auto 0;
  padding: 10px 18px;
  box-sizing: border-box;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(99, 99, 99);
  border-radius: 15px;
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: clamp(16px, 3.5vw, 18px);
  letter-spacing: 0.03em;
  min-width: 0;
}

.checkout-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(196, 196, 196);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #1a1a1a;
  background: rgba(13, 13, 13, 0.5);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.checkout-back:hover {
  color: #fff;
  border-color: rgb(99, 99, 99);
  background: rgba(255, 255, 255, 0.04);
}

.checkout-main {
  padding: clamp(20px, 4vw, 32px) max(16px, env(safe-area-inset-right)) clamp(40px, 8vw, 64px)
    max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.checkout-grid {
  max-width: 520px;
  margin: 0 auto;
}

.checkout-card {
  background: #0d0d0d6e;
  border: 1px solid #1a1a1a;
  border-radius: 20px;
  padding: clamp(22px, 5vw, 32px) clamp(18px, 4vw, 28px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.checkout-card:hover {
  border-color: rgba(99, 99, 99, 0.6);
}

.checkout-title {
  color: rgb(223, 223, 223);
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.25;
}

.checkout-price {
  color: rgb(156, 156, 156);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin: 0 0 22px;
  line-height: 1.5;
}

.checkout-price strong {
  color: rgb(235, 235, 235);
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 700;
}

.checkout-label {
  display: block;
  color: rgb(160, 160, 160);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-form {
  margin-bottom: 0;
}

.checkout-email-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  background: rgba(10, 10, 10, 0.55);
  color: rgb(235, 235, 235);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.checkout-email-input::placeholder {
  color: rgb(100, 100, 100);
}

.checkout-email-input:hover {
  border-color: rgb(99, 99, 99);
}

.checkout-email-input:focus {
  border-color: rgb(99, 99, 99);
  background: rgba(17, 17, 17, 0.85);
}

.crypto-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 440px) {
  .crypto-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 439px) {
  .crypto-options {
    gap: 12px;
  }
}

.crypto-option {
  min-width: 0;
}

.crypto-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.crypto-label {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 14px);
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  background: rgba(10, 10, 10, 0.45);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.crypto-label:hover {
  border-color: rgb(99, 99, 99);
  background: rgba(255, 255, 255, 0.04);
}

.crypto-option input:focus-visible + .crypto-label {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.crypto-option input:checked + .crypto-label {
  border-color: rgb(99, 99, 99);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 18px rgba(99, 99, 99, 0.15);
}

.crypto-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.crypto-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

@media (min-width: 440px) {
  .crypto-label {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 10px;
    min-height: auto;
  }

  .crypto-icon {
    width: 44px;
    height: 44px;
  }

  .crypto-icon svg {
    width: 30px;
    height: 30px;
  }

  .crypto-meta {
    align-items: center;
  }
}

.crypto-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

@media (min-width: 440px) {
  .crypto-meta {
    text-align: center;
  }
}

.crypto-name {
  font-size: 14px;
  font-weight: 600;
  color: rgb(235, 235, 235);
}

.crypto-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(99, 99, 99);
  text-transform: uppercase;
}

.btn-checkout-primary {
  width: 100%;
  margin-top: 22px;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  background: #0d0d0d;
  color: whitesmoke;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.btn-checkout-primary:hover:not(:disabled) {
  border-color: rgb(99, 99, 99);
  box-shadow: 0 0 12px rgba(54, 54, 54, 0.35), 0 0 28px rgb(99 99 99 / 0.12);
}

.btn-checkout-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-checkout-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid #5a3a2a;
  background: rgba(80, 40, 20, 0.35);
  color: #ffb8a0;
}

.checkout-alert.info {
  border-color: #3a4a5a;
  background: rgba(30, 45, 70, 0.35);
  color: #a8c8ff;
}

.checkout-pay-box {
  display: none;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
}

.checkout-pay-box.visible {
  display: block;
}

.pay-row {
  margin-bottom: 18px;
}

.pay-field {
  display: block;
  word-break: break-all;
  padding: 14px 16px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  color: rgb(232, 232, 232);
  font-size: 13px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  line-height: 1.45;
}

.pay-row code.pay-field {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.btn-copy {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid #1a1a1a;
  background: rgba(13, 13, 13, 0.8);
  color: rgb(220, 220, 220);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-copy:hover {
  border-color: rgb(99, 99, 99);
  background: rgba(255, 255, 255, 0.05);
}

.checkout-qr {
  text-align: center;
  margin: 24px 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  border: 1px solid #1a1a1a;
}

.checkout-qr img {
  max-width: min(220px, 70vw);
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #1a1a1a;
  vertical-align: middle;
}

.pay-status {
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgb(200, 212, 168);
  background: rgba(40, 50, 30, 0.4);
  border: 1px solid #3a4a35;
}

.pay-status.done {
  color: rgb(184, 240, 192);
  border-color: #3a5a40;
  background: rgba(30, 60, 35, 0.35);
}

.pay-status.error {
  color: #ffb0b0;
  border-color: #5a3030;
  background: rgba(50, 25, 25, 0.35);
}

.checkout-hint {
  color: rgb(120, 120, 120);
  font-size: 12px;
  line-height: 1.55;
  margin: 16px 0 0;
}

.checkout-success {
  display: none;
  text-align: center;
  padding: 12px 0 8px;
}

.checkout-success.visible {
  display: block;
}

.checkout-success-icon {
  font-size: 3rem;
  color: rgb(130, 200, 130);
  margin-bottom: 12px;
  line-height: 1;
}

.checkout-success h2 {
  color: rgb(159, 223, 159);
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 14px;
}

.checkout-success p {
  color: rgb(160, 160, 160);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.checkout-success strong {
  color: rgb(223, 223, 223);
}

.checkout-inline-link {
  color: rgb(180, 200, 255);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-inline-link:hover {
  color: #fff;
}

.spinner-inline {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #444;
  border-top-color: #fff;
  border-radius: 50%;
  animation: chkspin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}

@keyframes chkspin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .checkout-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .checkout-back span {
    display: inline;
  }
}
