/* ══ ABSCHLUSS EINES BEZAHLPLANS ═════════════════════════════════
   Ein eigener Kreis über der Tarifwahl, im Stil der Registrierung:
   schwarze Scheibe, weiße Schrift, der Inhalt im einbeschriebenen
   Rechteck. Wird es eng, scrollt der Inhalt im Kreis — der Kreis selbst
   wächst nie über das Fenster hinaus.                               */
#checkout {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(88vmin, 640px);
  height: min(88vmin, 640px);
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  z-index: 80;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
#checkout[hidden] {
  display: none;
}
#checkout.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* AGB oder Datenschutz offen: der Kreis tritt zurück */
body.checkout-reading #checkout {
  visibility: hidden;
}

#checkout-inner {
  position: absolute;
  top: 13%;
  bottom: 13%;
  left: 15%;
  right: 15%;
  display: flex;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
#checkout-inner::-webkit-scrollbar {
  display: none;
}
/* Kurz: mittig. Lang: von oben, und der Rest scrollt. */
.co-content {
  margin: auto 0;
  width: 100%;
  text-align: center;
  font-size: clamp(12px, 1.9vmin, 14px);
}
#checkout .lg-title {
  font-size: clamp(24px, 4.4vmin, 34px);
  margin-bottom: 12px;
}
.co-price {
  font-size: clamp(18px, 3.1vmin, 23px);
  letter-spacing: 0.01em;
}
.co-tax,
.co-credits {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
.co-credits {
  margin-top: 4px;
}
.co-block {
  margin: 20px 0 16px;
  text-align: left;
}
.co-address {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 6px;
}
.co-link {
  background: none;
  border: none;
  padding: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.15s;
}
.co-link:hover {
  color: var(--white);
}
#checkout .lg-check {
  justify-content: flex-start;
  margin-top: 10px;
}
.co-paypal {
  width: 100%;
  max-width: 300px;
  min-height: 46px;
  margin: 20px auto 0;
  transition: opacity 0.2s;
}
/* Noch ohne Zustimmung: sichtbar, aber zurückgenommen */
.co-paypal.is-disabled {
  opacity: 0.35;
}
.co-paypal.is-loading {
  background: rgba(255, 255, 255, 0.06);
}
.co-msg {
  min-height: 1.5em;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #ff8a73;
}
#checkout .lg-other {
  margin-top: 4px;
}
#checkout button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Während des Abschlusses sind die PayPal-Knöpfe die Aktion — der
   Knopf unten und die Kreise dahinter ruhen. Ausgeblendet wird die
   ganze Wendekarte (#gen-flip), nicht nur der Knopf: ihre Seiten setzen
   ihre Sichtbarkeit selbst. Der Knopf trägt Inline-Werte, darum
   !important.                                                        */
body.checkout-open #gen-flip,
body.checkout-open #gen-btn {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.checkout-open #ab-bahn {
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}
