/* Innorex Certifications — frontend styles.
   Everything is scoped under .innorex-cert-scope, and every interactive
   element inside that scope explicitly resets the properties themes love
   to override (color, text-decoration, background, border, box-shadow,
   font) so the active theme's global button/link styles cannot bleed in. */

.innorex-cert-scope,
.innorex-cert-scope * {
	box-sizing: border-box;
}

.innorex-cert-scope a,
.innorex-cert-scope button,
.innorex-cert-scope span,
.innorex-cert-scope div {
	text-decoration: none !important;
	box-shadow: none !important;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.innorex-cert-scope .innorex-cert-section {
	background: #E6F1EA;
	padding: 2rem 1.5rem;
}

.innorex-cert-scope .innorex-slider-viewport {
	overflow: hidden;
	padding: 6px 2px;
}

.innorex-cert-scope .innorex-cert-track {
	display: flex;
	align-items: stretch;
}

.innorex-cert-scope .innorex-cert-item {
	all: unset;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0 7px;
	padding: 1rem;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff !important;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.innorex-cert-scope .innorex-cert-item:hover,
.innorex-cert-scope .innorex-cert-item:focus-visible {
	transform: translateY(-2px);
	background: #EEF1E8 !important;
	border-color: #1A7A4A;
}

.innorex-cert-scope .innorex-cert-item:focus-visible {
	outline: none;
}

.innorex-cert-scope .innorex-badge-wrap {
	position: relative;
	width: 58px;
	height: 58px;
	margin: 0 auto;
	display: block;
}

.innorex-cert-scope .innorex-badge-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.innorex-cert-scope .innorex-verified-dot {
	position: absolute;
	bottom: -2px;
	right: -3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #1A7A4A !important;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.innorex-cert-scope .innorex-cert-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #2C2C2A !important;
	margin: 9px 0 1px;
	text-decoration: none !important;
}

.innorex-cert-scope .innorex-cert-cta {
	display: block;
	font-size: 11px;
	color: #F47920 !important;
	margin: 0;
	text-decoration: none !important;
	border-bottom: none !important;
}

/* Modal */
.innorex-cert-scope .innorex-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	z-index: 100000;
}

.innorex-cert-scope .innorex-modal-overlay.innorex-open {
	display: flex;
}

/* 70vw / 70vh so the dimmed page is still visible behind the modal. */
.innorex-cert-scope .innorex-modal-card {
	background: #F6F7F1 !important;
	border-radius: 12px;
	border-top: 3px solid #1A7A4A;
	width: 70vw;
	height: 70vh;
	max-width: 70vw;
	max-height: 70vh;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	overflow: hidden;
}

.innorex-cert-scope .innorex-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	flex-shrink: 0;
}

.innorex-cert-scope .innorex-modal-title {
	font-weight: 600;
	font-size: 15px;
	margin: 0;
	color: #2C2C2A !important;
}

.innorex-cert-scope .innorex-modal-close {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 0.5px solid #c9cdbe !important;
	background: #fff !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	color: #2C2C2A !important;
}

.innorex-cert-scope .innorex-modal-close:hover {
	background: #eee !important;
}

/* overflow-x: hidden is the load-bearing fix for the horizontal scrollbar —
   the iframe below is never allowed to exceed this container's width. */
.innorex-cert-scope .innorex-pdf-slot {
	border: 0.5px solid #c9cdbe;
	border-radius: 8px;
	flex: 1;
	min-height: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #888780;
	font-size: 12px;
	gap: 8px;
	overflow-y: auto;
	overflow-x: hidden !important;
}

.innorex-cert-scope .innorex-pdf-slot iframe {
	width: 100%;
	max-width: 100%;
	height: 100%;
	border: 0 !important;
	display: block;
	box-sizing: border-box;
}

.innorex-cert-scope .innorex-pdf-slot img {
	width: 100%;
	max-width: 100%;
	max-height: 100%;
}

.innorex-cert-scope .innorex-spin {
	animation: innorex-spin 1s linear infinite;
	width: 20px;
	height: 20px;
}

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

@media (max-width: 640px) {
	.innorex-cert-scope .innorex-modal-card {
		width: 92vw;
		height: 80vh;
		max-width: 92vw;
		max-height: 80vh;
		padding: 1rem;
	}
}
