/* LP Donations. Uses the Affiliate Starter theme's colors when present, with sensible fallbacks. */
.lpd, .lpd-page {
	--lpd-brand: var(--brand, #fed100);
	--lpd-on-brand: var(--on-brand, #111111);
	--lpd-dark: var(--dark, #14181f);
	--lpd-border: #d9dde3;
	--lpd-muted: #5b636e;
	--lpd-radius: 12px;
}

/* Standalone page */
.lpd-page { background: #f5f6f8; padding: 48px 20px 64px; }
.lpd-page__inner { max-width: 620px; margin: 0 auto; }
.lpd-page__head { text-align: center; margin-bottom: 24px; }
.lpd-page__title { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; margin: 0 0 8px; letter-spacing: -0.02em; text-wrap: balance; }
.lpd-page__intro { color: var(--lpd-muted); margin: 0 auto; max-width: 520px; }
body.lpd-donate-page .site-header .btn { display: none; } /* no "Donate" button on the donate page */
body.lpd-donate-page .site-main { background: #f5f6f8; }

/* Card */
.lpd { background: #fff; border: 1px solid var(--lpd-border); border-radius: 16px; padding: 28px; box-shadow: 0 2px 10px rgba(20, 24, 31, .05); }
.lpd *, .lpd *::before, .lpd *::after { box-sizing: border-box; }
.lpd-testbar { background: #fef3c7; color: #92400e; font-size: .85rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; text-align: center; }
.lpd-notice { background: #fff; border: 1px solid var(--lpd-border); border-radius: 12px; padding: 20px; text-align: center; }

.lpd-group { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.lpd-label { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.lpd-why { color: var(--lpd-muted); font-size: .85rem; margin: -4px 0 12px; }

/* Frequency: segmented control */
.lpd-seg { display: grid; grid-template-columns: repeat(4, 1fr); background: #eef0f3; border-radius: 999px; padding: 4px; gap: 4px; }
.lpd-seg__opt { position: relative; margin: 0; }
.lpd-seg__opt input, .lpd-amt input { position: absolute; opacity: 0; pointer-events: none; }
.lpd-seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--lpd-muted); transition: background .15s, color .15s; text-align: center; }
.lpd-seg__opt input:checked + span { background: var(--lpd-dark); color: #fff; }
.lpd-seg__opt input:focus-visible + span { outline: 3px solid var(--lpd-brand); outline-offset: 2px; }

/* Amounts */
.lpd-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.lpd-amt { position: relative; margin: 0; }
.lpd-amt span { display: flex; align-items: baseline; justify-content: center; gap: 2px; min-height: 56px; padding: 14px 8px; border: 2px solid var(--lpd-border); border-radius: var(--lpd-radius); font-weight: 800; font-size: 1.2rem; cursor: pointer; transition: border-color .15s, background .15s; }
.lpd-amt small { font-size: .75rem; font-weight: 700; opacity: .7; }
.lpd-amt input:checked + span { border-color: var(--lpd-dark); background: var(--lpd-brand); color: var(--lpd-on-brand); }
.lpd-amt input:focus-visible + span { outline: 3px solid var(--lpd-dark); outline-offset: 2px; }
.lpd-amt.is-disabled span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.lpd-amt--other span { font-size: 1rem; }

.lpd-other { display: flex; align-items: center; margin-top: 12px; border: 2px solid var(--lpd-dark); border-radius: var(--lpd-radius); padding: 0 14px; background: #fff; }
.lpd-dollar { font-weight: 800; font-size: 1.2rem; }
.lpd-other input { border: 0; outline: 0; font-size: 1.2rem; font-weight: 700; padding: 14px 8px; width: 100%; background: transparent; }
.lpd-hint { color: var(--lpd-muted); font-size: .85rem; margin: 10px 0 0; }

/* Fields */
.lpd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lpd-grid p { margin: 0 0 14px; }
.lpd-grid .lpd-full { grid-column: 1 / -1; }
.lpd-grid label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.lpd-grid input { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem; border: 1.5px solid var(--lpd-border); border-radius: 10px; background: #fff; }
.lpd-grid input:focus { outline: 0; border-color: var(--lpd-dark); box-shadow: 0 0 0 3px rgba(20, 24, 31, .12); }
/* Who is giving: two-option version of the segmented control */
.lpd-seg--two { grid-template-columns: 1fr 1fr; }

/* Organization fields */
.lpd-grid select, .lpd-grid textarea { width: 100%; padding: 10px 12px; font-size: 1rem; font-family: inherit; border: 1.5px solid var(--lpd-border); border-radius: 10px; background: #fff; color: inherit; }
.lpd-grid select { min-height: 48px; }
.lpd-grid textarea { min-height: 84px; resize: vertical; line-height: 1.4; }
.lpd-grid select:focus, .lpd-grid textarea:focus { outline: 0; border-color: var(--lpd-dark); box-shadow: 0 0 0 3px rgba(20, 24, 31, .12); }
.lpd-help { display: block; color: var(--lpd-muted); font-size: .8rem; line-height: 1.4; margin-top: 6px; }
.lpd-opt { font-weight: 400; color: var(--lpd-muted); }

/* Cover the processing fee */
.lpd-fee { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border: 2px solid var(--lpd-border); border-radius: var(--lpd-radius); cursor: pointer; line-height: 1.4; transition: border-color .15s, background .15s; }
.lpd-fee input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--lpd-dark); }
.lpd-fee:has(input:checked) { border-color: var(--lpd-dark); background: #fffbe6; }
.lpd-fee strong { display: block; font-size: .95rem; }
.lpd-fee__sub { display: block; color: var(--lpd-muted); font-size: .85rem; margin-top: 2px; }
.lpd-fee input:focus-visible { outline: 3px solid var(--lpd-brand); outline-offset: 2px; }

.lpd-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.lpd-attest { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.45; background: #f5f6f8; border-radius: 10px; padding: 14px; cursor: pointer; }
.lpd-attest input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--lpd-dark); }

/* Submit & messages */
.lpd-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 0 0 16px; }
.lpd-submit { display: block; width: 100%; min-height: 58px; border: 0; border-radius: 999px; background: var(--lpd-dark); color: #fff; font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: opacity .15s, transform .15s; }
.lpd-submit:hover { opacity: .92; transform: translateY(-1px); }
.lpd-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.lpd-fine { text-align: center; color: var(--lpd-muted); font-size: .8rem; margin: 12px 0 0; }

/* Payment step */
.lpd-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f5f6f8; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; }
.lpd-link { background: none; border: 0; padding: 4px; color: var(--lpd-dark); text-decoration: underline; text-decoration-color: var(--lpd-brand); text-decoration-thickness: 2px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.lpd-checkout { min-height: 200px; }
.lpd-loading { text-align: center; color: var(--lpd-muted); padding: 60px 0; }

/* Thank you */
.lpd-thanks { text-align: center; padding: 20px 0; outline: 0; }
.lpd-check { width: 72px; height: 72px; border-radius: 50%; background: var(--lpd-brand); color: var(--lpd-on-brand); font-size: 2.4rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.lpd-thanks h2 { font-size: 1.8rem; margin: 0 0 10px; }
.lpd-thanks p { margin: 0 auto 10px; max-width: 460px; }
.lpd-thanks-note { color: var(--lpd-muted); font-size: .9rem; }

.lpd [hidden], .lpd[hidden] { display: none !important; }

/* Phones */
@media (max-width: 560px) {
	.lpd-page { padding: 28px 12px 40px; }
	.lpd { padding: 20px 16px; border-radius: 14px; }
	.lpd-seg { grid-template-columns: 1fr 1fr; border-radius: 16px; }
	.lpd-seg__opt span { border-radius: 12px; }
	.lpd-amounts { grid-template-columns: repeat(3, 1fr); }
	.lpd-amt span { font-size: 1.05rem; padding: 12px 4px; }
	.lpd-grid { grid-template-columns: 1fr; }
}
