.apcb-oem-modal-open {
	overflow: hidden;
}

.apcb-oem-modal[hidden] {
	display: none;
}

.apcb-oem-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.apcb-oem-modal__overlay {
	backdrop-filter: blur(12px);
	background: rgba(3, 7, 18, .72);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 180ms ease;
}

.apcb-oem-modal__dialog {
	background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(3, 7, 18, .98));
	border: 1px solid rgba(148, 163, 184, .22);
	border-radius: 18px;
	box-shadow: 0 32px 90px rgba(0, 0, 0, .46);
	color: #fff;
	max-height: min(760px, calc(100vh - 36px));
	max-width: 760px;
	opacity: 0;
	overflow: hidden;
	position: relative;
	transform: translateY(16px) scale(.98);
	transition: opacity 180ms ease, transform 180ms ease;
	width: min(100%, 760px);
}

.apcb-oem-modal.is-open .apcb-oem-modal__overlay,
.apcb-oem-modal.is-open .apcb-oem-modal__dialog {
	opacity: 1;
}

.apcb-oem-modal.is-open .apcb-oem-modal__dialog {
	transform: translateY(0) scale(1);
}

.apcb-oem-modal__close {
	align-items: center;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 18px;
	top: 18px;
	transition: background 180ms ease, transform 180ms ease;
	width: 38px;
	z-index: 1;
}

.apcb-oem-modal__close:hover,
.apcb-oem-modal__close:focus {
	background: rgba(37, 99, 235, .34);
	transform: rotate(90deg);
}

.apcb-oem-modal__header {
	padding: 34px 34px 18px;
}

.apcb-oem-modal__eyebrow {
	color: #60a5fa;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.apcb-oem-modal__header h2 {
	color: #fff;
	font-size: 34px;
	font-weight: 950;
	line-height: 1.05;
	margin: 0;
}

.apcb-oem-modal__header p:last-child {
	color: rgba(226, 232, 240, .74);
	font-size: 15px;
	line-height: 1.5;
	margin: 10px 0 0;
	max-width: 520px;
}

.apcb-oem-modal__search {
	padding: 0 34px 18px;
}

.apcb-oem-modal__search input {
	background: rgba(255, 255, 255, .96);
	border: 2px solid transparent;
	border-radius: 12px;
	box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
	color: #0f172a;
	font-size: 18px;
	font-weight: 800;
	height: 58px;
	outline: none;
	padding: 0 18px;
	transition: border-color 180ms ease, box-shadow 180ms ease;
	width: 100%;
}

.apcb-oem-modal__search input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .22), 0 16px 42px rgba(0, 0, 0, .22);
}

.apcb-oem-modal__status {
	color: rgba(226, 232, 240, .78);
	font-size: 14px;
	font-weight: 800;
	min-height: 22px;
	padding: 0 34px 12px;
}

.apcb-oem-modal__status.is-loading {
	color: #93c5fd;
}

.apcb-oem-modal__results {
	display: grid;
	gap: 10px;
	max-height: min(420px, 45vh);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0 34px 24px;
}

.apcb-oem-result {
	align-items: center;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(226, 232, 240, .72);
	border-radius: 12px;
	color: #0f172a;
	display: grid;
	gap: 14px;
	grid-template-columns: 74px minmax(0, 1fr) auto;
	padding: 10px;
}

.apcb-oem-result:last-child {
	margin-bottom: 16px;
}

.apcb-oem-result__media {
	align-items: center;
	aspect-ratio: 1;
	background: #f8fafc;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.apcb-oem-result__media img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.apcb-oem-result h3 {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.25;
	margin: 0;
}

.apcb-oem-result h3 a {
	color: #0f172a;
	text-decoration: none;
}

.apcb-oem-result__meta {
	align-items: center;
	color: #475569;
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 800;
	gap: 8px 12px;
	margin-top: 7px;
}

.apcb-oem-result__meta strong {
	color: #0f172a;
	font-size: 15px;
	font-weight: 950;
}

.apcb-oem-result__button {
	background: #080d16;
	border-radius: 9px;
	color: #fff;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: .04em;
	padding: 12px 14px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 180ms ease, transform 180ms ease;
	white-space: nowrap;
}

.apcb-oem-result__button:hover,
.apcb-oem-result__button:focus {
	background: #2563eb;
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 760px) {
	.apcb-oem-modal {
		align-items: flex-end;
		padding: 12px;
	}

	.apcb-oem-modal__dialog {
		border-radius: 16px;
		max-height: calc(100vh - 24px);
	}

	.apcb-oem-modal__header {
		padding: 28px 20px 16px;
	}

	.apcb-oem-modal__header h2 {
		font-size: 28px;
	}

	.apcb-oem-modal__search,
	.apcb-oem-modal__status {
		padding-left: 20px;
		padding-right: 20px;
	}

	.apcb-oem-modal__results {
		padding: 0 20px 24px;
	}

	.apcb-oem-result {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	.apcb-oem-result__button {
		grid-column: 1 / -1;
		text-align: center;
	}
}
