/* EndlessRPG donate page - same look as the library (client wiki) pages, works with Frost and classic. */
.ed { font-size: 12px; line-height: 1.5; color: #d9e6f2; }
.ed a { color: #7fd4ff; }
.ed .ed-h,
.Content .BoxContent .ed h2,
.Content .BoxContent .ed h3 {
	background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
	-webkit-text-fill-color: currentColor !important; color: #ffcc00 !important; filter: none !important; animation: none !important;
}
.ed .ed-h { font-size: 14px; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(127, 212, 255, .25); }

.ed-hero { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid rgba(127, 212, 255, .35);
	border-radius: 6px; background: linear-gradient(135deg, rgba(16, 52, 94, .85), rgba(6, 14, 28, .9)); }
.ed-hero img { image-rendering: pixelated; flex: none; filter: drop-shadow(0 0 8px rgba(255, 204, 0, .45)); }
.ed-hero h2 { margin: 0 0 4px; font-size: 18px; }
.ed-hero p { margin: 0; }

.ed-box { margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(127, 212, 255, .25); border-radius: 5px; background: rgba(8, 20, 38, .75); }
.ed-muted { color: #9fb3c8; }
.ed-admin-note { margin: 0 0 10px; padding: 8px 12px; border: 1px solid #8a6d1f; border-left: 4px solid #ffcc00; border-radius: 4px; background: #33290c; color: #ffe9a8; }
.ed-admin-note a { color: #fff; }
.ed-account { margin: 12px 0 0; padding: 8px 12px; border-radius: 5px; background: rgba(127, 212, 255, .08); }
.ed-account b { color: #ffdf6b; }
.ed-coin { vertical-align: -1px; image-rendering: pixelated; }

.ed-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ed-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 10px; cursor: pointer;
	border: 1px solid rgba(127, 212, 255, .3); border-radius: 6px; background: linear-gradient(180deg, rgba(18, 44, 78, .9), rgba(6, 14, 28, .95));
	transition: border-color .15s, box-shadow .15s, transform .15s; }
.ed-pack:hover { border-color: #7fd4ff; transform: translateY(-1px); }
.ed-pack input { position: absolute; opacity: 0; pointer-events: none; }
.ed-pack:has(input:checked) { border-color: #ffcc00; box-shadow: 0 0 0 1px #ffcc00, 0 0 14px rgba(255, 204, 0, .35); }
.ed-pack:has(input:focus-visible) { outline: 2px solid #7fd4ff; outline-offset: 2px; }
.ed-pack img { image-rendering: pixelated; }
.ed-coins { font-size: 20px; font-weight: bold; color: #ffdf6b; line-height: 1.1; }
.ed-coins-l { font-size: 11px; color: #9fb3c8; text-transform: uppercase; letter-spacing: .06em; }
.ed-price { margin-top: 6px; padding: 2px 12px; border-radius: 10px; background: rgba(127, 212, 255, .14); font-weight: bold; font-size: 13px; color: #e9f5ff; }
.ed-bonus { position: absolute; top: -8px; right: -4px; padding: 1px 7px; border-radius: 9px; background: #b8323f; color: #fff;
	font-size: 10px; font-weight: bold; box-shadow: 0 0 8px rgba(255, 59, 71, .5); }
.ed-pack.best .ed-bonus { background: linear-gradient(90deg, #ff3b47, #ff8a3b); }

.ed-terms ul { margin: 0 0 8px; padding-left: 18px; }
.ed-terms li { margin: 2px 0; }
.ed-accept { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 4px; background: rgba(255, 204, 0, .08);
	border: 1px solid rgba(255, 204, 0, .35); cursor: pointer; font-weight: bold; color: #ffe9a8; }
.ed-accept input { margin-top: 2px; flex: none; }

.ed-pay { max-width: 420px; margin: 0 auto; padding: 12px; border-radius: 6px; background: #f4f7fb; }
.ed-pay .ed-small { color: #3b4a5a; text-align: center; }
.ed-small { font-size: 11px; color: #9fb3c8; margin-top: 4px; }
.ed-msg { margin: 0 0 10px; padding: 9px 12px; border-radius: 4px; border: 1px solid; border-left-width: 4px; font-weight: bold; }
.ed-msg.info { background: #0e2442; border-color: #2d5a99; border-left-color: #7fd4ff; color: #d6e9ff; }
.ed-msg.success { background: #0d2a1c; border-color: #2a7a4c; border-left-color: #3fd17f; color: #c6f2d6; }
.ed-msg.error { background: #2e0d12; border-color: #b8323f; border-left-color: #ff3b47; color: #ffc9cf; }

.ed-table { width: 100%; border-collapse: collapse; }
.ed-table th, .ed-table td { padding: 5px 8px; border-bottom: 1px solid rgba(127, 212, 255, .15); text-align: left; vertical-align: top; }
.ed-table th { color: #ffcc00; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ed-table tr:nth-child(even) td { background: rgba(127, 212, 255, .04); }
.ed-scroll { overflow-x: auto; }
.ed-mono { font-family: Consolas, monospace; font-size: 11px; }
.ed-tag { padding: 0 5px; border-radius: 3px; background: #33290c; color: #ffdf6b; font-size: 10px; }
.st-completed { color: #6fe3a0; } .st-pending { color: #ffdf6b; } .st-failed { color: #9fb3c8; }
.st-refunded, .st-reversed { color: #ff8d8d; }

@media (max-width: 820px) {
	.ed-hero { flex-direction: column; text-align: center; }
	.ed-packages { grid-template-columns: repeat(2, 1fr); }
	.ed-admin th:nth-child(7), .ed-admin td:nth-child(7) { display: none; }
}

/* the Frost theme colours every div in .BoxContent (high specificity); keep these boxes' own colours */
.Content .BoxContent .ed .ed-admin-note { color: #ffe9a8 !important; }
.Content .BoxContent .ed .ed-pay .ed-small { color: #3b4a5a !important; }
.Content .BoxContent .ed .ed-small { color: #9fb3c8; }
.Content .BoxContent .ed .ed-muted { color: #9fb3c8 !important; }
.Content .BoxContent .ed .ed-msg.info { color: #d6e9ff !important; }
.Content .BoxContent .ed .ed-msg.success { color: #c6f2d6 !important; }
.Content .BoxContent .ed .ed-msg.error { color: #ffc9cf !important; }
.Content .BoxContent .ed .ed-pay .ed-hint { margin-top: 6px; color: #6b7a8a !important; font-size: 10.5px; text-align: center; }

/* Stripe button + "or" divider inside the white payment box */
.ed-stripe-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; height: 45px; border: 0; border-radius: 4px; cursor: pointer;
	background: linear-gradient(180deg, #7a73ff, #635bff 55%, #5148e6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .25);
	color: #fff; font: bold 15px -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: .01em;
	transition: filter .15s, opacity .15s;
}
.ed-stripe-btn:hover:not(:disabled) { filter: brightness(1.08); }
.ed-stripe-btn:disabled { opacity: .45; cursor: not-allowed; }
.ed-stripe-btn:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }
.ed-card-ico { width: 22px; height: 16px; border-radius: 3px; background:
	linear-gradient(180deg, transparent 4px, rgba(0, 0, 0, .35) 4px, rgba(0, 0, 0, .35) 7px, transparent 7px), #fff3; box-shadow: inset 0 0 0 1.5px #fff; }
.ed-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; color: #6b7a8a; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.ed-or::before, .ed-or::after { content: ''; flex: 1; height: 1px; background: #d3dbe4; }
.Content .BoxContent .ed .ed-or span { color: #6b7a8a !important; }
.ed-via { padding: 0 5px; border-radius: 3px; background: rgba(127, 212, 255, .12); color: #9fd2ff; font-size: 10px; }

/* ---- payment method "cards" (step 3): pick Stripe or PayPal, the chosen one shows its button ---- */
.ed-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto 12px; }
.ed-method {
	position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px 34px 10px 10px;
	box-sizing: border-box; text-align: left; cursor: pointer;
	border: 1px solid rgba(127, 212, 255, .3); border-radius: 6px;
	background: linear-gradient(180deg, rgba(18, 44, 78, .9), rgba(6, 14, 28, .95));
	color: #d9e6f2; font: 12px Verdana, Arial, sans-serif;
	transition: border-color .15s, box-shadow .15s, transform .15s, opacity .15s;
	opacity: .78;
}
.ed-method:hover { border-color: #7fd4ff; opacity: 1; transform: translateY(-1px); }
.ed-method.is-active { opacity: 1; border-color: #ffcc00; box-shadow: 0 0 0 1px #ffcc00, 0 0 14px rgba(255, 204, 0, .3); }
.ed-method:focus-visible { outline: 2px solid #7fd4ff; outline-offset: 2px; }
.ed-method-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 36px; border-radius: 5px; }
.ed-method-logo.stripe { background: linear-gradient(180deg, #7a73ff, #635bff 55%, #5148e6); }
.ed-method-logo.paypal { background: #fff; font: italic bold 14px Verdana, Arial, sans-serif; letter-spacing: -.02em; }
.ed-method-logo.paypal i:first-child { color: #003087; font-style: italic; }
.ed-method-logo.paypal i:last-child { color: #009cde; font-style: italic; }
.ed-method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.Content .BoxContent .ed .ed-method-text b { color: #ffffff !important; font-size: 13px; }
.Content .BoxContent .ed .ed-method-text small { color: #9fb3c8 !important; font-size: 10.5px; line-height: 1.3; }
.ed-method-check { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
	border: 2px solid rgba(127, 212, 255, .45); box-sizing: border-box; }
.ed-method.is-active .ed-method-check { border-color: #ffcc00; background: radial-gradient(circle, #ffcc00 0 4px, transparent 5px); }
.ed-pane[hidden] { display: none !important; }
@media (max-width: 820px) {
	.ed-methods { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.ed-stripe-btn { font-size: 13px; gap: 8px; padding: 0 8px; }
}

/* ---- v2: payment methods as square tiles with nearly straight corners ---- */
.ed-methods { grid-template-columns: repeat(2, minmax(0, 170px)); justify-content: center; gap: 12px; max-width: none; }
.ed-method {
	flex-direction: column; justify-content: center; gap: 8px;
	aspect-ratio: 1 / 1; min-height: 0; padding: 14px 10px; text-align: center;
	border-radius: 2px;
}
.ed-method-text { align-items: center; }
.ed-method-logo { width: 64px; height: 42px; border-radius: 2px; }
.ed-method-logo.paypal { font-size: 16px; }
.ed-method-logo .ed-card-ico { width: 28px; height: 20px; border-radius: 2px; }
.ed-method-check { top: 8px; right: 8px; margin-top: 0; border-radius: 2px; width: 14px; height: 14px; }
.ed-method.is-active .ed-method-check { background: #ffcc00; box-shadow: inset 0 0 0 2px #0a1830; }
.ed-pay { border-radius: 2px; }
.ed-stripe-btn { border-radius: 2px; }
.ed-card-ico { border-radius: 2px; }
@media (max-width: 820px) {
	.ed-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ed-method { aspect-ratio: auto; min-height: 120px; }
}
