body.campus-pay-checkout-page {
	--cp-accent: #cc2129;
	--cp-accent-rgb: 204, 33, 41;
	--cp-accent-dark: #b81d24;
	--cp-accent-light: #d94a51;
	--cp-accent-secondary: #d94a51;
}

body.campus-pay-checkout-page .entry-header,
body.campus-pay-checkout-page .page-header,
body.campus-pay-checkout-page .wp-block-post-title {
	display: none !important;
}

body.campus-pay-checkout-page .entry-content,
body.campus-pay-checkout-page .site-main,
body.campus-pay-checkout-page .content-area {
	max-width: none !important;
	width: 100% !important;
}

.cp-checkout {
	width: min(92vw, 1280px);
	max-width: 92%;
	margin: 1.5rem auto 3rem;
	font-family: inherit;
}

.cp-checkout__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 1.75rem;
	align-items: start;
}

.cp-checkout__main {
	background: #fff;
	border: 1px solid #edf1f5;
	border-radius: 18px;
	padding: 1.5rem;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.cp-checkout__sidebar {
	position: sticky;
	top: 1.5rem;
}

.cp-payment-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.9rem;
	margin-bottom: 1.5rem;
}

.cp-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 86px;
	padding: 1rem 0.75rem;
	border: 1.5px solid #edf1f5;
	border-radius: 14px;
	background: #fff;
	color: #1f2937;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cp-tab:hover {
	transform: translateY(-1px);
	border-color: var(--cp-accent);
	background: var(--cp-accent);
	box-shadow: inset 0 0 0 1px rgba(var(--cp-accent-rgb), 0.18);
	color: #fff;
}

.cp-tab.is-active {
	border-color: var(--cp-accent);
	background: var(--cp-accent);
	box-shadow: inset 0 0 0 1px rgba(var(--cp-accent-rgb), 0.18);
	color: #fff;
}

.cp-tab__icon {
	width: 20px;
	height: 20px;
	position: relative;
	display: inline-block;
	color: #6b7280;
}

.cp-tab:hover .cp-tab__icon,
.cp-tab:hover .cp-tab__label,
.cp-tab.is-active .cp-tab__icon,
.cp-tab.is-active .cp-tab__label {
	color: #fff;
}

.cp-tab__label {
	font-size: 0.98rem;
}

.cp-tab__icon::before,
.cp-tab__icon::after {
	content: "";
	position: absolute;
	box-sizing: border-box;
}

.cp-tab__icon--bank::before {
	left: 2px;
	right: 2px;
	bottom: 2px;
	height: 8px;
	border: 1.8px solid currentColor;
	border-top: 0;
}

.cp-tab__icon--bank::after {
	left: 1px;
	right: 1px;
	top: 2px;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 7px solid currentColor;
}

.cp-tab__icon--card::before {
	inset: 4px 2px 4px 2px;
	border: 1.8px solid currentColor;
	border-radius: 3px;
}

.cp-tab__icon--card::after {
	left: 5px;
	right: 5px;
	top: 8px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 5px 0 0 currentColor;
}

.cp-tab__icon--wallet::before {
	left: 2px;
	right: 2px;
	top: 5px;
	bottom: 3px;
	border: 1.8px solid currentColor;
	border-radius: 3px;
}

.cp-tab__icon--wallet::after {
	right: 2px;
	top: 9px;
	width: 7px;
	height: 5px;
	border: 1.8px solid currentColor;
	border-radius: 2px;
	background: #fff;
}

.cp-tab__icon--cash::before {
	left: 2px;
	right: 2px;
	top: 5px;
	bottom: 5px;
	border: 1.8px solid currentColor;
	border-radius: 4px;
}

.cp-tab__icon--cash::after {
	left: 8px;
	top: 7px;
	bottom: 7px;
	width: 2px;
	background: currentColor;
	border-radius: 999px;
}

.cp-tab__icon--other::before {
	inset: 3px;
	border: 1.8px dashed currentColor;
	border-radius: 999px;
}

.cp-payment-panels {
	position: relative;
}

.cp-tab-panel {
	display: none;
	background: #fff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	padding: 1.8rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.cp-tab-panel.is-active {
	display: block;
}

.cp-panel {
	margin-bottom: 1.5rem;
}

.cp-panel__title {
	margin: 0 0 1.15rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
}

.cp-fields--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.95rem 1rem;
}

.cp-field--full {
	grid-column: 1 / -1;
}

.cp-field label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
}

.cp-field input,
.cp-method-select {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	font-size: 0.96rem;
	color: #111827;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-field input:focus,
.cp-method-select:focus {
	outline: none;
	border-color: var(--cp-accent);
	box-shadow: 0 0 0 3px rgba(var(--cp-accent-rgb), 0.12);
}

.cp-select-wrap {
	margin-bottom: 1.15rem;
}

.cp-method-select {
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #6b7280 50%),
		linear-gradient(135deg, #6b7280 50%, transparent 50%);
	background-position:
		calc(100% - 22px) calc(50% - 2px),
		calc(100% - 16px) calc(50% - 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 3rem;
}

.cp-card-number-wrap,
.cp-card-exp-row {
	position: relative;
}

.cp-card-number-wrap input {
	padding-right: 17.75rem;
}

.cp-card-inline-logos {
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 0.45rem;
	pointer-events: none;
}

.cp-card-inline-logo {
	height: 31px;
	width: 62px;
	display: block;
	padding: 4px 7px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	opacity: 0.75;
	transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
	filter: grayscale(0.15);
}

.cp-card-inline-logo.is-active {
	opacity: 1;
	transform: scale(1.05);
	filter: none;
	border-color: var(--cp-accent);
	box-shadow: 0 0 0 2px rgba(var(--cp-accent-rgb), 0.14);
}

.cp-card-inline-logo.is-inactive {
	opacity: 0.45;
	filter: grayscale(0.25);
}

.cp-card-exp-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.35rem;
	align-items: center;
}

.cp-card-exp-divider {
	color: #6b7280;
	font-weight: 700;
}

.cp-card-detected {
	display: none !important;
}

.cp-secure-note {
	margin: 0.9rem 0 0;
	font-size: 0.82rem;
	color: #6b7280;
}

.cp-instructions {
	margin-top: 1.5rem;
}

.cp-instructions__title {
	margin: 0 0 0.85rem;
	font-size: 0.98rem;
	font-weight: 700;
	color: #1f2937;
}

.cp-instructions__list {
	margin: 0;
	padding-left: 1.25rem;
	color: #374151;
}

.cp-instructions__list li {
	margin-bottom: 0.9rem;
	line-height: 1.55;
}

.cp-button {
	width: 100%;
	padding: 1rem 1.1rem;
	border: 0;
	border-radius: 12px;
	background: var(--cp-accent);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.cp-button:hover:not(:disabled) {
	background: var(--cp-accent-dark);
	transform: translateY(-1px);
}

.cp-button:disabled {
	opacity: 0.75;
	cursor: wait;
}

.cp-summary {
	position: relative;
	background: #fff;
	color: #163a38;
	border: 1px solid #eef2f7;
	border-radius: 22px;
	padding: 1.8rem 1.7rem;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.cp-summary__stripe {
	position: absolute;
	left: 0;
	right: 0;
	height: 10px;
	background: linear-gradient(90deg, var(--cp-accent) 0%, var(--cp-accent-secondary) 45%, var(--cp-accent-dark) 100%);
}

.cp-summary__stripe--top {
	top: 0;
}

.cp-summary__stripe--bottom {
	bottom: 0;
}

.cp-summary__eyebrow {
	margin: 0 0 0.7rem;
	padding-top: 0.4rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7b3c38;
	font-weight: 700;
}

.cp-summary__title {
	margin: 0 0 0.75rem;
	font-size: 1.28rem;
	line-height: 1.28;
	color: #295f5a;
}

.cp-summary__description {
	margin: 0 0 1.2rem;
	font-size: 0.94rem;
	line-height: 1.55;
	color: #50635f;
}

.cp-summary__price {
	padding: 1.1rem 0;
	margin-bottom: 1rem;
	border-top: 1px solid #f0d2cf;
	border-bottom: 1px solid #f0d2cf;
}

.cp-summary__price-label {
	display: block;
	font-size: 0.92rem;
	color: #7b3c38;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.cp-summary__price-value {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #295f5a;
}

.cp-summary__meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-summary__meta li {
	position: relative;
	padding-left: 1.35rem;
	margin-bottom: 0.55rem;
	font-size: 0.95rem;
	color: #295f5a;
}

.cp-summary__meta li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--cp-accent);
	font-weight: 800;
}

.cp-notice {
	padding: 1rem;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.cp-notice--error {
	background: #fef2f2;
	color: #991b1b;
}

.cp-notice--success {
	background: #ecfdf5;
	color: #065f46;
}

.cp-notice--info {
	background: #eff6ff;
	color: #1e40af;
}

.cp-checkout--result {
	width: min(92vw, 720px);
	max-width: 92%;
}

.cp-postpay {
	width: min(94vw, 1240px);
	max-width: 94%;
}

.cp-postpay__hero {
	margin-bottom: 1.5rem;
	border-radius: 18px;
	overflow: hidden;
	min-height: 210px;
	background:
		linear-gradient(110deg, rgba(20, 20, 20, 0.86) 0%, rgba(20, 20, 20, 0.82) 48%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.95) 100%),
		linear-gradient(90deg, #161616 0%, #2b2b2b 55%, #ffffff 100%);
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
	position: relative;
}

.cp-postpay__hero::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 18px;
	height: 100%;
	background: var(--cp-accent);
}

.cp-postpay__hero-text {
	padding: 2.5rem 2rem;
	max-width: 58%;
	color: #fff;
}

.cp-postpay__hero-text h2 {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1;
	letter-spacing: -0.03em;
}

.cp-postpay__hero-text p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.cp-postpay__layout {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
	gap: 1.5rem;
	align-items: start;
}

.cp-postpay__info,
.cp-postpay__form-wrap {
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	padding: 1.8rem;
	box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.cp-postpay__info h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.4;
	color: #111827;
}

.cp-postpay__phone {
	margin: 0 0 1.35rem;
	font-size: 2rem;
	font-weight: 800;
	color: #111827;
}

.cp-postpay__requirements {
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.cp-postpay__requirements li {
	position: relative;
	padding-left: 1.7rem;
	margin-bottom: 0.95rem;
	line-height: 1.5;
	color: #374151;
}

.cp-postpay__requirements li::before {
	content: "➜";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--cp-accent);
	font-weight: 800;
}

.cp-postpay__or {
	margin: 1.5rem 0 1rem;
	color: #111827;
	font-size: 1rem;
}

.cp-postpay__wa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.5rem;
	border-radius: 10px;
	background: #5aae5f;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	min-width: 220px;
}

.cp-postpay__wa-button:hover {
	background: #4c9d52;
	color: #fff;
}

.cp-postpay__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.cp-postpay__form-wrap .cp-field input[type="file"] {
	padding: 0.75rem 0.85rem;
}

.cp-postpay__form-wrap .cp-field label span {
	color: var(--cp-accent);
	font-weight: 700;
}

.cp-postpay__course {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.1rem;
	margin: 1rem 0 1.25rem;
	border-radius: 12px;
	background: #f8fafc;
	color: #374151;
}

.cp-postpay__submit {
	max-width: 180px;
}

@media (max-width: 1024px) {
	.cp-checkout__layout {
		grid-template-columns: 1fr;
	}

	.cp-checkout__sidebar {
		position: static;
		order: -1;
	}

	.cp-postpay__hero-text {
		max-width: 100%;
	}

	.cp-postpay__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.cp-checkout {
		width: 100%;
		max-width: 100%;
		margin: 0.75rem 0 2rem;
	}

	.cp-checkout__main,
	.cp-tab-panel,
	.cp-summary {
		padding: 1rem;
		border-radius: 14px;
	}

	.cp-postpay__info,
	.cp-postpay__form-wrap {
		padding: 1.15rem;
		border-radius: 14px;
	}

	.cp-payment-tabs,
	.cp-fields--grid {
		grid-template-columns: 1fr;
	}

	.cp-postpay__fields {
		grid-template-columns: 1fr;
	}

	.cp-card-number-wrap input {
		padding-right: 1rem;
	}

	.cp-card-inline-logos {
		position: static;
		transform: none;
		margin-top: 0.6rem;
		flex-wrap: wrap;
	}

	.cp-postpay__hero {
		min-height: 160px;
	}

	.cp-postpay__hero-text {
		padding: 1.5rem 1rem;
	}

	.cp-postpay__phone {
		font-size: 1.55rem;
	}
}
