/* =========================================================
   JJC Pay Now — premium payment card
   ========================================================= */
.jjc-pn {
	--pn-navy: #133473;
	--pn-navy-2: #1d4a9e;
	--pn-ink: #0f1b33;
	--pn-text: #3b4660;
	--pn-muted: #6b7690;
	--pn-line: #dfe4ee;
	--pn-field: #f7f9fc;
	--pn-tint: #eef3fc;
	--pn-ok: #12a150;
	--pn-err: #d23b4b;
	--pn-r: 12px;

	box-sizing: border-box;
	max-width: 620px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e4e9f2;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 24px 60px -12px rgba(19, 52, 115, .22);
	overflow: hidden;
	color: var(--pn-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}
.jjc-pn *, .jjc-pn *::before, .jjc-pn *::after { box-sizing: border-box; }
.jjc-pn svg { display: block; width: 100%; height: 100%; }
.jjc-pn-ico { display: inline-block; width: 16px; height: 16px; flex: none; }
.jjc-pn-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jjc-pn [hidden] { display: none !important; }

/* ---------- Header ---------- */
.jjc-pn-head {
	position: relative;
	padding: 34px 36px 30px;
	color: #fff;
	text-align: center;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, var(--pn-navy) 0%, var(--pn-navy-2) 100%);
}
.jjc-pn-head::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: linear-gradient(90deg, #ffc439, #ffd978 50%, #ffc439);
	opacity: .9;
}
.jjc-pn-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
}
.jjc-pn-badge .jjc-pn-ico { width: 13px; height: 13px; }
.jjc-pn-title {
	margin: 0;
	font-family: "Urbanist", sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #fff;
}
.jjc-pn-sub {
	max-width: 440px;
	margin: 10px auto 0;
	font-size: 15px;
	color: rgba(255, 255, 255, .82);
}

/* ---------- Body ---------- */
.jjc-pn-body { padding: 30px 36px 26px; }

.jjc-pn-step {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 26px 0 14px;
	font-family: "Urbanist", sans-serif;
	font-size: 17px;
	font-weight: 700;
	color: var(--pn-ink);
}
.jjc-pn-step:first-child { margin-top: 0; }
.jjc-pn-step span {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	font-family: "Inter", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--pn-navy);
	background: var(--pn-tint);
	border-radius: 50%;
}

.jjc-pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.jjc-pn-col-full { grid-column: 1 / -1; }

.jjc-pn-field { margin-bottom: 16px; }
.jjc-pn-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pn-ink);
}
.jjc-pn-field label em { font-style: normal; color: var(--pn-err); }
.jjc-pn-field label small { font-weight: 400; color: var(--pn-muted); }

.jjc-pn-field input[type="text"],
.jjc-pn-field input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15.5px;
	color: var(--pn-ink);
	background: var(--pn-field);
	border: 1.5px solid var(--pn-line);
	border-radius: var(--pn-r);
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.jjc-pn-field input::placeholder { color: #a3acc0; }
.jjc-pn-field input:hover { border-color: #c5cddc; }
.jjc-pn-field input:focus {
	background: #fff;
	border-color: var(--pn-navy);
	box-shadow: 0 0 0 4px rgba(19, 52, 115, .12);
}

/* Amount */
.jjc-pn-amount {
	display: flex;
	align-items: center;
	height: 64px;
	padding: 0 16px;
	background: var(--pn-field);
	border: 1.5px solid var(--pn-line);
	border-radius: 14px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.jjc-pn-amount:focus-within {
	background: #fff;
	border-color: var(--pn-navy);
	box-shadow: 0 0 0 4px rgba(19, 52, 115, .12);
}
.jjc-pn-cur {
	margin-right: 6px;
	font-family: "Urbanist", sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: var(--pn-muted);
}
.jjc-pn .jjc-pn-amount input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;
	font-family: "Urbanist", sans-serif;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--pn-ink);
	background: transparent;
	border: 0;
	box-shadow: none;
	outline: none;
}
.jjc-pn-code {
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--pn-navy);
	background: var(--pn-tint);
	border-radius: 6px;
}

/* Errors */
.jjc-pn-field.has-error input[type="text"],
.jjc-pn-field.has-error input[type="email"],
.jjc-pn-field.has-error .jjc-pn-amount {
	border-color: var(--pn-err);
	box-shadow: 0 0 0 4px rgba(210, 59, 75, .1);
}
.jjc-pn-err { display: block; margin-top: 6px; font-size: 13px; color: var(--pn-err); }
.jjc-pn-err:empty { display: none; }

/* ---------- Method tiles ---------- */
.jjc-pn-methods {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), 1fr);
	gap: 12px;
	margin-bottom: 18px;
}
.jjc-pn-method { position: relative; display: block; margin: 0; cursor: pointer; }
.jjc-pn-method input { position: absolute; opacity: 0; pointer-events: none; }
.jjc-pn-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	height: 100%;
	padding: 14px 14px 13px;
	background: #fff;
	border: 1.5px solid var(--pn-line);
	border-radius: 14px;
	transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.jjc-pn-method:hover .jjc-pn-tile { border-color: #b9c3d6; transform: translateY(-1px); }
.jjc-pn-mico { width: 26px; height: 26px; margin-bottom: 8px; color: var(--pn-navy); }
.jjc-pn-tile strong { font-size: 14.5px; font-weight: 700; color: var(--pn-ink); }
.jjc-pn-tile small { font-size: 11.5px; line-height: 1.35; color: var(--pn-muted); }
.jjc-pn-tick {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	padding: 4px;
	color: #fff;
	background: var(--pn-navy);
	border-radius: 50%;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .15s, transform .15s;
}
.jjc-pn-method input:checked + .jjc-pn-tile {
	background: var(--pn-tint);
	border-color: var(--pn-navy);
	box-shadow: 0 0 0 1px var(--pn-navy) inset;
}
.jjc-pn-method input:checked + .jjc-pn-tile .jjc-pn-tick { opacity: 1; transform: none; }
.jjc-pn-method input:focus-visible + .jjc-pn-tile { box-shadow: 0 0 0 4px rgba(19, 52, 115, .18); }

/* ---------- Panels ---------- */
.jjc-pn-panel { animation: jjcPnIn .25s ease; }
@keyframes jjcPnIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.jjc-pn-element {
	min-height: 56px;
	padding: 4px 0;
}
.jjc-pn-info {
	display: flex;
	gap: 8px;
	margin: 14px 0 0;
	padding: 11px 14px;
	font-size: 13px;
	color: #5a4a12;
	background: #fff8e6;
	border: 1px solid #f6e3a8;
	border-radius: 10px;
}
.jjc-pn-paypal { min-height: 150px; }

.jjc-pn-notice {
	margin: 0 0 16px;
	padding: 11px 14px;
	font-size: 14px;
	color: #8a1f2a;
	background: #fdeef0;
	border: 1px solid #f7cdd3;
	border-radius: 10px;
}

/* ---------- Pay button ---------- */
.jjc-pn-pay {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin: 20px 0 0;
	padding: 0 20px;
	font: inherit;
	font-family: "Urbanist", sans-serif;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .01em;
	color: #fff;
	background: linear-gradient(135deg, var(--pn-navy) 0%, var(--pn-navy-2) 100%);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 10px 24px -8px rgba(19, 52, 115, .55);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.jjc-pn-pay:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(19, 52, 115, .6); filter: brightness(1.06); }
.jjc-pn-pay:active:not(:disabled) { transform: none; }
.jjc-pn-pay:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.jjc-pn-pay .jjc-pn-ico { width: 18px; height: 18px; }
.jjc-pn-spin {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: jjcPnSpin .7s linear infinite;
}
@keyframes jjcPnSpin { to { transform: rotate(360deg); } }
.jjc-pn.is-busy .jjc-pn-pay .jjc-pn-spin { display: block; }
.jjc-pn.is-busy .jjc-pn-pay .jjc-pn-ico { display: none; }
.jjc-pn.is-busy .jjc-pn-form { pointer-events: none; }
.jjc-pn.is-busy .jjc-pn-form > *:not(.jjc-pn-pay) { opacity: .65; transition: opacity .2s; }

.jjc-pn-testmode {
	margin: 14px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	color: #a36a00;
}

/* ---------- Footer ---------- */
.jjc-pn-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	font-size: 12.5px;
	color: var(--pn-muted);
	text-align: center;
	background: #f7f9fc;
	border-top: 1px solid #edf0f6;
}
.jjc-pn-foot .jjc-pn-ico { width: 16px; height: 16px; color: var(--pn-ok); }

/* ---------- Success ---------- */
.jjc-pn-success { padding: 10px 0 4px; text-align: center; animation: jjcPnIn .35s ease; }
.jjc-pn-done {
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	padding: 20px;
	color: #fff;
	background: var(--pn-ok);
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(18, 161, 80, .12);
	animation: jjcPnPop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.jjc-pn-success.is-pending .jjc-pn-done { background: #e0a100; box-shadow: 0 0 0 10px rgba(224, 161, 0, .14); }
@keyframes jjcPnPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.jjc-pn-success-title {
	margin: 0 0 6px;
	font-family: "Urbanist", sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: var(--pn-ink);
}
.jjc-pn-success-msg { max-width: 420px; margin: 0 auto 20px; color: var(--pn-text); }
.jjc-pn-receipt {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	max-width: 420px;
	margin: 0 auto;
	padding: 16px 18px;
	font-size: 14px;
	text-align: left;
	background: var(--pn-field);
	border: 1px dashed #cfd6e4;
	border-radius: 12px;
}
.jjc-pn-receipt dt { margin: 0; color: var(--pn-muted); }
.jjc-pn-receipt dd { margin: 0; font-weight: 600; color: var(--pn-ink); text-align: right; word-break: break-all; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.jjc-pn { border-radius: 16px; }
	.jjc-pn-head { padding: 28px 20px 24px; }
	.jjc-pn-title { font-size: 25px; }
	.jjc-pn-body { padding: 24px 18px 20px; }
	.jjc-pn-grid { grid-template-columns: 1fr; }
	.jjc-pn-methods { grid-template-columns: 1fr; gap: 10px; }
	.jjc-pn-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 13px 14px; }
	.jjc-pn-mico { margin: 0; width: 24px; height: 24px; }
	.jjc-pn-tile small { flex-basis: 100%; padding-left: 36px; margin-top: -2px; }
	.jjc-pn-tick { top: 50%; margin-top: -10px; right: 14px; }
	.jjc-pn-foot { padding: 12px 16px; }
}

/* Some themes set svg { fill: currentColor } — keep outline icons hollow. */
.jjc-pn svg[fill="none"] { fill: none !important; }
.jjc-pn svg[fill="none"] * { fill: none !important; }
