/* Elite payment page – scoped to .epp so theme styles do not leak in or out. */

.epp {
	--epp-accent: #4338ca;
	--epp-ink: #0f172a;
	--epp-muted: #64748b;
	--epp-line: #e2e8f0;
	--epp-field: #f8fafc;
	--epp-card: #ffffff;
	--epp-error: #b42318;
	--epp-error-bg: #fef3f2;
	--epp-info-bg: #f1f5f9;
	--epp-success: #067647;
	--epp-success-bg: #ecfdf3;
	--epp-radius: 16px;

	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 32px auto;
	padding: 0 16px;
	color: var(--epp-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.epp *,
.epp *::before,
.epp *::after {
	box-sizing: border-box;
}

.epp-card {
	position: relative;
	overflow: hidden;
	padding: 36px 32px 28px;
	background: var(--epp-card);
	border: 1px solid var(--epp-line);
	border-radius: var(--epp-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .12);
}

/* Thin accent bar across the top of the card. */
.epp-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--epp-accent);
}

.epp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.epp-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--epp-accent) 10%, #fff);
	color: var(--epp-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
}

.epp-business {
	color: var(--epp-muted);
	font-size: 13px;
	font-weight: 500;
	text-align: right;
}

.epp .epp-title {
	margin: 0 0 6px;
	padding: 0;
	color: var(--epp-ink);
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.02em;
	text-transform: none;
}

.epp .epp-subtitle {
	margin: 0 0 24px;
	color: var(--epp-muted);
	font-size: 15px;
}

/* Notices */
.epp .epp-notice {
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
}

.epp .epp-notice[hidden] {
	display: none;
}

.epp-notice--info {
	background: var(--epp-info-bg);
	color: var(--epp-ink);
}

.epp-notice--error {
	background: var(--epp-error-bg);
	color: var(--epp-error);
}

/* Form */
.epp-form {
	margin: 0;
}

.epp-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}

.epp-field {
	margin: 0 0 16px;
}

.epp .epp-field label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 6px;
	color: var(--epp-ink);
	font-size: 13px;
	font-weight: 600;
}

.epp-optional {
	color: var(--epp-muted);
	font-size: 12px;
	font-weight: 400;
}

.epp .epp-input {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--epp-line);
	border-radius: 10px;
	background: var(--epp-field);
	box-shadow: none;
	color: var(--epp-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
	appearance: none;
}

.epp textarea.epp-input {
	min-height: 70px;
	resize: vertical;
}

.epp .epp-input::placeholder {
	color: #94a3b8;
	opacity: 1;
}

.epp .epp-input:hover {
	border-color: #cbd5e1;
}

.epp .epp-input:focus {
	border-color: var(--epp-accent);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--epp-accent) 16%, transparent);
	outline: none;
}

.epp .epp-input[aria-invalid="true"] {
	border-color: var(--epp-error);
	background: #fff;
}

.epp .epp-input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

/* Amount */
.epp-amount {
	position: relative;
}

.epp-amount__symbol,
.epp-amount__currency {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--epp-muted);
	pointer-events: none;
}

.epp-amount__symbol {
	left: 16px;
	font-size: 22px;
	font-weight: 600;
}

.epp-amount__currency {
	right: 16px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}

.epp .epp-amount__input {
	min-height: 60px;
	padding-left: 38px;
	padding-right: 56px;
	font-size: 24px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
}

.epp .epp-hint {
	margin: 6px 0 0;
	color: var(--epp-muted);
	font-size: 12px;
}

/* Honeypot */
.epp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Button */
.epp .epp-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 8px 0 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 12px;
	background: var(--epp-accent);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .005em;
	text-transform: none;
	transition: filter .15s, transform .05s;
}

.epp .epp-button:hover {
	filter: brightness(1.08);
}

.epp .epp-button:active {
	transform: translateY(1px);
}

.epp .epp-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--epp-accent) 35%, transparent);
	outline-offset: 2px;
}

.epp .epp-button[disabled] {
	cursor: progress;
	filter: saturate(.7) brightness(.95);
}

.epp-button__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: epp-spin .7s linear infinite;
}

.epp-button.is-loading .epp-button__spinner {
	display: inline-block;
}

@keyframes epp-spin {
	to { transform: rotate(360deg); }
}

/* Footer */
.epp-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--epp-line);
	color: var(--epp-muted);
	font-size: 12px;
}

.epp-foot > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.epp-cards {
	display: inline-flex;
	gap: 6px;
}

.epp-cards svg {
	display: block;
	width: 34px;
	height: 22px;
}

/* Result */
.epp-result {
	text-align: center;
}

.epp-result__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 4px auto 18px;
	border-radius: 50%;
}

.epp-result__icon svg {
	width: 30px;
	height: 30px;
}

.epp-result--paid .epp-result__icon {
	background: var(--epp-success-bg);
	color: var(--epp-success);
}

.epp-result--pending .epp-result__icon {
	background: var(--epp-info-bg);
	color: var(--epp-muted);
}

.epp-summary {
	margin: 0 0 22px;
	padding: 4px 18px;
	border: 1px solid var(--epp-line);
	border-radius: 12px;
	background: var(--epp-field);
	text-align: left;
}

.epp-summary > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--epp-line);
}

.epp-summary > div:last-child {
	border-bottom: 0;
}

.epp .epp-summary dt {
	margin: 0;
	color: var(--epp-muted);
	font-weight: 400;
}

.epp .epp-summary dd {
	margin: 0;
	color: var(--epp-ink);
	font-weight: 600;
	text-align: right;
	word-break: break-word;
}

.epp-muted {
	color: var(--epp-muted);
	font-weight: 400;
}

.epp-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	letter-spacing: .04em;
}

.epp .epp-link {
	color: var(--epp-accent);
	font-weight: 600;
	text-decoration: none;
}

.epp .epp-link:hover {
	text-decoration: underline;
}

/* Small screens */
@media (max-width: 560px) {
	.epp {
		margin: 16px auto;
	}

	.epp-card {
		padding: 28px 20px 22px;
	}

	.epp .epp-title {
		font-size: 22px;
	}

	.epp-row {
		grid-template-columns: 1fr;
	}

	.epp-foot {
		justify-content: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epp * {
		transition: none !important;
		animation-duration: 1.5s !important;
	}
}

/* Prefilled link: fixed order and amount */
.epp-due {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--epp-accent) 22%, var(--epp-line));
	border-radius: 12px;
	background: color-mix(in srgb, var(--epp-accent) 5%, #fff);
}

.epp-due__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.epp-due__item--amount {
	align-items: flex-end;
	text-align: right;
}

.epp-due__label {
	color: var(--epp-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.epp-due__value {
	color: var(--epp-ink);
	font-size: 16px;
	font-weight: 600;
	word-break: break-word;
}

.epp-due__amount {
	font-size: 28px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
	line-height: 1.1;
}

.epp-due__amount small {
	color: var(--epp-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}

@media (max-width: 400px) {
	.epp-due {
		flex-direction: column;
		align-items: stretch;
	}

	.epp-due__item--amount {
		align-items: flex-start;
		text-align: left;
	}
}
