.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.checkout-overlay.checkout-open {
  display: flex;
}

.checkout-modal {
  width: 100%;
  max-width: 600px;
  min-height: 600px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
  padding: 34px;
  position: relative;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: checkoutFadeUp 0.25s ease;
  box-sizing: border-box;
}

.checkout-modal *,
.checkout-modal *::before,
.checkout-modal *::after {
  box-sizing: border-box;
}

@keyframes checkoutFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.checkout-close:hover {
  background: #e2e8f0;
}



.checkout-title {
  margin: 0 48px 8px 0;
  font-size: 28px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 800;
}

.checkout-subtitle {
  margin: 0 0 26px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}



.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-field {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: 0.2s ease;
}

.checkout-field::placeholder {
  color: #94a3b8;
}

.checkout-field:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.checkout-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
}

.checkout-consent input {
  margin-top: 3px;
  accent-color: #2563eb;
  flex: 0 0 auto;
}

.checkout-submit {
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
  transition: 0.2s ease;
}

.checkout-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.38);
}

.checkout-submit:active {
  transform: translateY(0);
}



.checkout-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



.checkout-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.checkout-buy-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.minheight {min-height:100px}



@media (max-width: 640px) {
  .checkout-overlay {
    padding: 14px;
  }

  .checkout-modal {
    min-height: auto;
    max-height: 92vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 20px;
  }

  .checkout-title {
    font-size: 24px;
  }
}
