/* ============================================================
   CherryRoad Paywall — Checkout Styles
   ============================================================ */

.crpw-checkout-wrap {
    max-width: 660px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Notice (no plan / not logged in) */
.crpw-checkout-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 16px 20px;
    color: #1e40af;
    font-size: .9rem;
}

.crpw-checkout-notice--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Plan summary bar */
.crpw-checkout-plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 24px;
}

.crpw-checkout-plan-summary__name {
    font-weight: 700;
    font-size: .95rem;
    color: #1e40af;
}

.crpw-checkout-plan-summary__price {
    font-size: .9rem;
    color: #1e40af;
}

.crpw-price-original {
    text-decoration: line-through;
    color: #93c5fd;
    margin-right: 6px;
}

.crpw-checkout-plan-summary__change {
    font-size: .78rem;
    color: #6b7280;
    text-decoration: underline;
    white-space: nowrap;
}

/* Section titles */
.crpw-checkout-section-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #374151;
    margin: 24px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.crpw-checkout-section {
    margin-top: 8px;
}

/* 3-column row */
.crpw-form-row--3 {
    grid-template-columns: 1fr 80px 120px;
}

@media (max-width: 560px) {
    .crpw-form-row--3 { grid-template-columns: 1fr; }
}

/* Checkbox labels */
.crpw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    line-height: 1.5;
    color: #374151;
    margin-top: 12px;
    cursor: pointer;
}

.crpw-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.crpw-checkbox-label--required {
    font-weight: 500;
}

/* Legal text */
.crpw-legal-text {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: .8rem;
    color: #6b7280;
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
}

/* ---- Review step ---- */
.crpw-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: .9rem;
}

.crpw-order-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.crpw-order-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.crpw-order-table__total td {
    border-bottom: none;
    padding-top: 14px;
    font-size: 1.05rem;
}

.crpw-statement-descriptor {
    font-size: .78rem;
    color: #9ca3af;
    margin-bottom: 20px;
    text-align: center;
}

.crpw-review-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.crpw-review-actions .crpw-btn {
    flex: 1;
    min-width: 160px;
}

/* ---- Payment step ---- */
.crpw-payment-intro {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: 16px;
    text-align: center;
}

/* Stripe embedded checkout mounts here directly — no iframe */
#crpw-stripe-element {
    min-height: 300px;
}

/* ---- Confirmation ---- */
.crpw-confirmation {
    text-align: center;
    padding: 32px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.crpw-confirmation__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.crpw-confirmation__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.crpw-confirmation__msg {
    color: #6b7280;
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.crpw-confirmation__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.crpw-confirmation__actions .crpw-btn {
    min-width: 160px;
}
