.ocp-exam-bundle,
.ocp-exam-bundle * {
	box-sizing: border-box;
}

.ocp-exam-bundle {
	margin: 20px 0 34px;
	color: #0f172a;
	scroll-margin-top: 30px;
}

.ocp-exam-bundle__intro {
	margin: 0 0 22px;
	color: #526174;
	font-size: 1rem;
}

.ocp-exam-bundle__formats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ocp-format-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 25px;
	background: #fff;
	border: 1px solid #d6dce5;
	border-radius: 12px;
	box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

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

.ocp-format-card__heading svg {
	width: 27px;
	height: 27px;
	fill: none;
	stroke: #2563eb;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ocp-format-card__included {
	padding: 4px 10px;
	color: #2454b2;
	background: #eef4ff;
	border-radius: 5px;
	font-size: 0.78rem;
	font-weight: 500;
}

.ocp-format-card h2 {
	margin: 0 0 5px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.ocp-format-card__description {
	margin: 0;
	color: #526174;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ocp-exam-bundle__purchase {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
	padding: 25px 28px;
	border: 1px solid #d7e2f3;
	border-radius: 13px;
	background: #f6f9ff;
}

.ocp-exam-bundle__purchase-details {
	min-width: 0;
}

.ocp-exam-bundle__label {
	margin: 0;
	color: #475569;
	font-size: 0.9rem;
	font-weight: 600;
}

.ocp-exam-bundle__price {
	margin: 9px 0 5px;
	color: #0f172a;
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
}

.ocp-exam-bundle__price del {
	margin-inline-end: 8px;
	color: #64748b;
	font-size: 1.05rem;
	font-weight: 400;
}

.ocp-exam-bundle__price ins {
	background: transparent;
	text-decoration: none;
}

.ocp-exam-bundle__price .screen-reader-text { letter-spacing: normal; }

.ocp-regional-price { display: inline-block; }
.ocp-exam-bundle__price .ocp-price-currency { color: #526174; font-size: 0.78rem; font-weight: 500; letter-spacing: normal; }
.ocp-regional-checkout form:not(.learndash-payment-gateway-form-stripe_connect),
.ocp-regional-checkout > a { display: none !important; }

.ocp-exam-bundle__note,
.ocp-exam-bundle__notice {
	margin: 6px 0 0;
	color: #526174;
	font-size: 0.88rem;
	line-height: 1.6;
}

.ocp-bundle-button,
#ocp-exam-bundle .ocp-exam-bundle__native-payment #btn-join,
.ocp-exam-bundle__native-payment .btn-join,
.ocp-exam-bundle__native-payment .ld-button,
.ocp-exam-bundle__native-payment button[type="submit"],
.ocp-exam-bundle__native-payment input[type="button"],
.ocp-exam-bundle__native-payment input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	min-width: 160px;
	padding: 12px 22px;
	color: #fff;
	background: #2563eb;
	border: 1px solid #2563eb;
	border-radius: 8px;
	font-weight: 600;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.ocp-format-card .ocp-bundle-button {
	margin-top: 22px;
	align-self: flex-start;
}

.ocp-bundle-button:hover,
.ocp-bundle-button:focus,
#ocp-exam-bundle .ocp-exam-bundle__native-payment #btn-join:hover,
#ocp-exam-bundle .ocp-exam-bundle__native-payment #btn-join:focus {
	color: #fff;
	background: #1d4ed8;
	text-decoration: none;
}

.ocp-bundle-button:focus-visible,
#ocp-exam-bundle .ocp-exam-bundle__native-payment #btn-join:focus-visible {
	outline: 3px solid #adc9ff;
	outline-offset: 3px;
}

.ocp-exam-bundle__native-payment .learndash_join_button,
.ocp-exam-bundle__native-payment .learndash_checkout_buttons,
.ocp-exam-bundle__native-payment form,
.ocp-exam-bundle__native-payment .ld-course-status-action {
	margin: 0;
}

.ocp-exam-bundle__native-payment { max-width: 100%; }
.ocp-checkout-status { max-width: 30rem; margin: 8px 0 0; color: #475569; font-size: 0.88rem; line-height: 1.5; }
.ocp-checkout-status:empty { display: none; }
.ocp-checkout-status[data-error="1"] { color: #b91c1c; }
.ocp-exam-bundle__native-payment [aria-busy="true"] { opacity: 0.75; }

.ocp-exam-bundle__native-payment .btn-join {
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

/* The format cards provide access. Keep the engine and checkout markup intact. */
.ocp-native-exam-layout #learndash_course_content,
.ocp-native-exam-layout .learndash_course_content,
.ocp-native-exam-layout .ld-item-list.ld-lesson-list,
.ocp-native-exam-layout .ld-item-list.ld-quiz-list {
	display: none !important;
}

.ocp-native-hide-purchase .learndash_join_button,
.ocp-native-hide-purchase .learndash_checkout_buttons,
.ocp-native-hide-purchase .ld-course-status-not-enrolled,
.ocp-native-payment-moved .ld-course-status-not-enrolled {
	display: none !important;
}

.ocp-exam-bundle[data-native-payment="0"] + .ocp-course-native-content .learndash_join_button,
.ocp-exam-bundle[data-native-payment="0"] + .ocp-course-native-content .learndash_checkout_buttons,
.ocp-exam-bundle[data-native-payment="0"] + .ocp-course-native-content .ld-course-status-not-enrolled {
	display: none !important;
}

/* Hide enrollment controls while an explicitly enabled PDF bundle is unfinished. */
.ocp-exam-bundle[data-pdf-ready="0"][data-has-access="0"] + .ocp-course-native-content .learndash_join_button,
.ocp-exam-bundle[data-pdf-ready="0"][data-has-access="0"] + .ocp-course-native-content .learndash_checkout_buttons,
.ocp-exam-bundle[data-pdf-ready="0"][data-has-access="0"] + .ocp-course-native-content .ld-course-status-not-enrolled {
	display: none !important;
}

@media (max-width: 650px) {
	.ocp-exam-bundle__formats {
		grid-template-columns: 1fr;
	}
	.ocp-format-card {
		padding: 22px 19px;
	}
	.ocp-exam-bundle__purchase {
		align-items: stretch;
		flex-direction: column;
		padding: 22px 19px;
	}
	.ocp-exam-bundle__purchase > .ocp-bundle-button,
	#ocp-exam-bundle .ocp-exam-bundle__native-payment #btn-join,
	.ocp-exam-bundle__native-payment .btn-join,
	.ocp-exam-bundle__native-payment .ld-button,
	.ocp-exam-bundle__native-payment button[type="submit"],
	.ocp-exam-bundle__native-payment input[type="button"],
	.ocp-exam-bundle__native-payment input[type="submit"] {
		width: 100%;
	}
}
