.iie-cpd-badge {
	align-items: center;
	background: #f8f8f6;
	border: 1px solid #d8d8d3;
	border-left: 5px solid #333333;
	display: flex;
	gap: 22px;
	margin: 0 0 30px;
	max-width: 760px;
	padding: 22px 24px;
}

.iie-cpd-badge img {
	display: block;
	flex: 0 0 auto;
	height: auto;
	max-width: 210px;
	min-width: 136px;
	width: 28%;
}

.iie-cpd-badge div {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.iie-cpd-badge strong {
	color: #222222;
	font-size: 18px;
	line-height: 1.35;
}

.iie-cpd-badge span {
	color: #5d6268;
	font-size: 13px;
	line-height: 1.6;
}

.iie-cpd-badge--compact {
	border-left-width: 3px;
	gap: 8px;
	margin: 0 0 12px;
	padding: 8px 10px;
}

.iie-cpd-badge--compact img {
	max-width: 100px;
	min-width: 72px;
	width: 38%;
}

.iie-cpd-badge--compact strong {
	font-size: 10px;
}

/*
 * The old embedded brochure pages contain the unauthorised Affiliated mark.
 * Hide those legacy description images while allowing only the packaged,
 * current brochure pages. The main WooCommerce product image remains visible.
 */
.iie-cpd-accredited-product .woocommerce-Tabs-panel--description img:not(.iie-cpd-current-brochure-page) {
	display: none !important;
}

.iie-cpd-current-brochure {
	margin: 0 auto;
	max-width: 1600px;
}

.iie-cpd-current-brochure__page {
	background: #ffffff;
	margin: 0 auto 20px;
	max-width: 1600px;
}

.iie-cpd-accredited-product .woocommerce-Tabs-panel--description img.iie-cpd-current-brochure-page,
.iie-cpd-current-brochure-page {
	background: #ffffff !important;
	display: block !important;
	height: auto !important;
	margin: 0 auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	padding: 0 !important;
	width: 100% !important;
}

.iie-cpd-learner-forms {
	background: #f7fafe;
	border: 1px solid #d9e2ec;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(0, 45, 78, 0.08);
	direction: rtl;
	margin: 34px auto 12px;
	max-width: 1180px;
	padding: 30px;
	text-align: right;
}

.iie-cpd-learner-forms h2 {
	color: #063653;
	font-size: 28px;
	line-height: 1.35;
	margin: 0 0 10px;
}

.iie-cpd-learner-forms p {
	color: #3f4d59;
	font-size: 17px;
	line-height: 1.8;
	margin: 0;
}

.iie-cpd-learner-forms__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.iie-cpd-learner-forms__button {
	align-items: center;
	background: #063653;
	border: 2px solid #063653;
	border-radius: 8px;
	color: #ffffff !important;
	display: inline-flex;
	font-size: 16px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.4;
	min-height: 48px;
	padding: 11px 24px;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.iie-cpd-learner-forms__button:hover,
.iie-cpd-learner-forms__button:focus {
	background: #0a527d;
	border-color: #0a527d;
	color: #ffffff !important;
}

.iie-cpd-learner-forms__button--secondary {
	background: transparent;
	color: #063653 !important;
}

.iie-cpd-learner-forms__button--secondary:hover,
.iie-cpd-learner-forms__button--secondary:focus {
	background: #063653;
	border-color: #063653;
	color: #ffffff !important;
}

.iie-cpd-accredited-context #apus-header .logo a.iie-cpd-header-lockup,
.iie-cpd-accredited-context #apus-header-mobile .logo a.iie-cpd-header-lockup,
.iie-cpd-accredited-context .logo-in-theme .logo a.iie-cpd-header-lockup {
	align-items: center !important;
	direction: ltr !important;
	display: inline-flex !important;
	gap: 24px !important;
	justify-content: center !important;
	max-width: 100% !important;
	overflow: visible !important;
	vertical-align: middle !important;
}

.iie-cpd-accredited-context #apus-header .logo img.iie-cpd-cii-header-logo,
.iie-cpd-accredited-context #apus-header-mobile .logo img.iie-cpd-cii-header-logo,
.iie-cpd-accredited-context .logo-in-theme .logo img.iie-cpd-cii-header-logo {
	display: block !important;
	flex: 0 1 auto !important;
	height: auto !important;
	margin: 0 !important;
	max-height: 126px !important;
	max-width: 190px !important;
	object-fit: contain !important;
	width: auto !important;
}

.iie-cpd-accredited-context #apus-header .logo img.iie-cpd-iie-header-logo,
.iie-cpd-accredited-context #apus-header-mobile .logo img.iie-cpd-iie-header-logo,
.iie-cpd-accredited-context .logo-in-theme .logo img.iie-cpd-iie-header-logo {
	display: block !important;
	flex: 0 1 auto !important;
	height: auto !important;
	margin: 0 !important;
	max-height: 108px !important;
	max-width: 112px !important;
	object-fit: contain !important;
	width: auto !important;
}

/*
 * The dedicated archive contains only two fixed products, so a result counter
 * and sorting selector add no value. Keep the grid/list view buttons.
 */
.iie-cpd-accredited-category .apus-filter .woocommerce-result-count,
.iie-cpd-accredited-category .apus-filter .woocommerce-ordering,
.iie-cpd-accredited-category .woocommerce-result-count,
.iie-cpd-accredited-category .woocommerce-ordering {
	display: none !important;
}

.iie-cpd-accredited-category .apus-filter .display-mode {
	flex: 0 0 auto;
}

.iie-cpd-accredited-context .product-block .product-image img.iie-cpd-image-corrected,
.iie-cpd-accredited-product .images img.iie-cpd-image-corrected {
	background: #ffffff !important;
	display: block !important;
	height: auto !important;
	margin: 0 auto !important;
	max-height: 420px !important;
	max-width: 420px !important;
	object-fit: contain !important;
	padding: 22px !important;
	width: auto !important;
}

.iie-cpd-accredited-context .product-block .product-image {
	background: #ffffff;
}

.iie-cpd-accredited-context .product-block figure.image {
	position: relative;
}

.iie-cpd-card-mark {
	align-items: center;
	background: #ffffff;
	border: 1px solid #d8d8d3;
	border-radius: 6px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	display: flex;
	height: 68px;
	justify-content: center;
	padding: 6px;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 86px;
	z-index: 5;
}

.iie-cpd-card-mark img {
	display: block !important;
	height: auto !important;
	margin: 0 !important;
	max-height: 56px !important;
	max-width: 74px !important;
	object-fit: contain !important;
	padding: 0 !important;
	width: auto !important;
}

[dir="rtl"] .iie-cpd-badge {
	border-left: 1px solid #d8d8d3;
	border-right: 5px solid #333333;
}

/*
 * Keep the full desktop navigation on one line after adding the new section.
 * This changes spacing and type size only; menu order and links are untouched.
 */
@media (min-width: 992px) {
	#apus-header .header-main .left-menu {
		align-items: center;
		display: flex;
		flex-wrap: nowrap;
	}

	#apus-header .header-main .heading-right {
		flex: 0 0 auto;
		float: none !important;
	}

	#apus-header .header-main .main-menu {
		flex: 1 1 auto;
		float: none !important;
		min-width: 0;
	}

	#apus-header .apus-megamenu.navbar,
	#apus-header .apus-megamenu .navbar-collapse {
		margin: 0 !important;
		min-height: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100%;
	}

	#apus-header #primary-menu {
		align-items: center;
		display: flex !important;
		float: none !important;
		flex-wrap: nowrap !important;
		justify-content: space-between;
		margin: 0 !important;
		width: 100%;
	}

	#apus-header #primary-menu > li,
	.rtl #apus-header #primary-menu > li {
		float: none !important;
		margin: 0 !important;
		padding-left: 9px !important;
		padding-right: 9px !important;
		white-space: nowrap !important;
	}

	#apus-header #primary-menu > li > a {
		font-size: 13px !important;
		white-space: nowrap !important;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	#apus-header #primary-menu > li,
	.rtl #apus-header #primary-menu > li {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}

	#apus-header #primary-menu > li > a {
		font-size: 11.5px !important;
	}
}

@media (max-width: 640px) {
	.iie-cpd-current-brochure__page {
		margin-bottom: 12px;
	}

	.iie-cpd-learner-forms {
		border-radius: 12px;
		margin-top: 24px;
		padding: 22px 18px;
	}

	.iie-cpd-learner-forms h2 {
		font-size: 23px;
	}

	.iie-cpd-learner-forms p {
		font-size: 15px;
	}

	.iie-cpd-learner-forms__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.iie-cpd-learner-forms__button {
		width: 100%;
	}

	.iie-cpd-accredited-context #apus-header-mobile .logo a.iie-cpd-header-lockup {
		gap: 10px !important;
	}

	.iie-cpd-accredited-context #apus-header-mobile .logo img.iie-cpd-cii-header-logo {
		max-height: 58px !important;
		max-width: 94px !important;
	}

	.iie-cpd-accredited-context #apus-header-mobile .logo img.iie-cpd-iie-header-logo {
		max-height: 54px !important;
		max-width: 58px !important;
	}

	.iie-cpd-badge {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		padding: 18px;
	}

	.iie-cpd-badge img {
		max-width: 180px;
		width: 55%;
	}
}
