/* In-page Framez subscription + Stripe Payment Element (auth/subscribe.html) */

.card { position: relative; }

.cs-boot-cover,
.cs-busy-cover {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cs-boot-cover { padding: 48px 16px 28px; }
.cs-boot-cover p,
.cs-busy-cover p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}
.cs-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5eeff;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: cs-spin 0.7s linear infinite;
  margin-bottom: 14px;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

.card.cs-booting .icon-wrap,
.card.cs-booting .trial-pill,
.card.cs-booting h1,
.card.cs-booting .subtitle,
.card.cs-booting .feature-list,
.card.cs-booting .trial-note,
.card.cs-booting #framez-subscribe-root,
.card.cs-booting hr,
.card.cs-booting .footer-links,
.card.cs-booting .cs-busy-cover {
  display: none !important;
}
.card.cs-booting .cs-boot-cover { display: flex; }

.cs-busy-cover {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  z-index: 8;
  padding: 24px;
}
.card.cs-checkout-busy .cs-busy-cover { display: flex; }

.cs-root { width: 100%; text-align: left; }

.cs-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.cs-plan {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid #e5eeff;
  border-radius: 14px;
  padding: 14px 14px 14px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cs-plan:hover { border-color: #c7dbff; }
.cs-plan.is-selected {
  border-color: #667eea;
  background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.cs-plan-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #c7dbff;
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
}
.cs-plan.is-selected .cs-plan-radio {
  border-color: #667eea;
}
.cs-plan.is-selected .cs-plan-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #667eea;
  border-radius: 50%;
}
.cs-plan-copy { flex: 1; min-width: 0; }
.cs-plan-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-plan-badge {
  font-size: 10px;
  font-weight: 600;
  color: #667eea;
  background: #eef4ff;
  border-radius: 999px;
  padding: 2px 8px;
}
.cs-plan-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.45;
}
.cs-plan-price {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.cs-cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 18px;
  cursor: pointer;
  margin-bottom: 10px;
}
.cs-cta:disabled { opacity: 0.65; cursor: default; }
.cs-cta:hover:not(:disabled) { filter: brightness(1.05); }

.cs-due-hint {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 10px;
}

.cs-skip {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: #6b7280;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  margin-bottom: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cs-skip:hover { color: #667eea; }
.cs-skip:disabled {
  opacity: 0.65;
  cursor: default;
  text-decoration: none;
}

.cs-store-label {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 10px;
}
.cs-store-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.cs-store-row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: #111827;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  min-width: 148px;
}
.cs-store-row a:hover { background: #667eea; }
.cs-store-row a i { font-size: 22px; }
.cs-store-text { text-align: left; line-height: 1.15; }
.cs-store-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}
.cs-store-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.cs-slider { overflow: hidden; width: 100%; position: relative; }
.cs-track {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform 0.38s ease;
}
.cs-root.is-pay .cs-track { transform: translateX(-50%); }
.cs-pane {
  width: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 2px;
}
.cs-root:not(.is-pay):not(.is-preparing) .cs-pane:last-child,
.cs-root.is-pay .cs-pane:first-child {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.cs-root.is-preparing:not(.is-pay) .cs-pane:last-child {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 100%;
  height: auto;
  visibility: visible;
  overflow: visible;
  pointer-events: none;
}
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #667eea;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 12px;
}
.cs-pay-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  text-align: left;
}
.cs-pay-sub {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 14px;
  text-align: left;
}

.cs-summary {
  background: #f8faff;
  border: 1px solid #e5eeff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}
.cs-summary strong { display: block; font-size: 14px; color: #111827; }
.cs-summary span { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; line-height: 1.5; }
.cs-due {
  margin-top: 10px;
  font-size: 13px;
  color: #667eea;
  font-weight: 600;
}
.cs-email-wrap {
  text-align: left;
  margin: 0 0 16px;
}
.cs-email-wrap[hidden] { display: none !important; }
.cs-email-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 6px;
}
.cs-email-wrap input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe4f5;
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #111827;
}
.cs-email-wrap input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.cs-email-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}
.cs-error {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f4;
  color: #b4234a;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.cs-error.is-visible { display: block; }
.cs-sheet-foot { padding: 12px 0 4px; }
.cs-pay {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  cursor: pointer;
}
.cs-pay:disabled { opacity: 0.65; cursor: default; }
.cs-secure {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 10px;
}
.cs-success {
  display: none;
  text-align: center;
  padding: 12px 8px 8px;
}
.cs-success.is-visible { display: block; }
.cs-success h3 { font-size: 18px; margin: 12px 0 8px; color: #111827; }
.cs-success p { font-size: 14px; color: #6b7280; line-height: 1.55; }

.card.cs-step-pay .feature-list,
.card.cs-step-pay .subtitle,
.card.cs-step-pay .trial-note,
.card.cs-step-pay .trial-pill,
.card.cs-step-pay .icon-wrap {
  display: none;
}
.card.cs-step-pay h1 { font-size: 18px; margin-bottom: 8px; }
