/* ================================================
   Rotating Carrier Logos (Option 1)
   Continuous chain of carrier logos that scrolls
   around the centered company logo.

   Loaded as its own file (cache-busted via filemtime)
   so updates are never masked by the theme's fixed
   stylesheet version.
   ================================================ */

/* Static fallback banner image (used when no carrier logos are configured) */
.tp-partners-bar > img {
	width: 100%;
	height: auto;
	display: block;
}

.iaot-carrier-band {
	position: relative;
	width: 100%;
	background-color: #fff;
	padding: 14px 0;
	overflow: hidden;
	line-height: normal;
}

.iaot-carrier-viewport {
	width: 100%;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.iaot-carrier-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	width: max-content;
	animation: iaot-scroll-right 40s linear infinite;
}

/* The duplicated set keeps the loop seamless; its wrapper must not become a
   flex item, so let its children participate in the track layout directly. */
.iaot-carrier-clone {
	display: contents;
}

.iaot-carrier-item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 34px;
}

/* Force logo sizing regardless of any theme/plugin image rules. */
.iaot-carrier-band .iaot-carrier-item img {
	max-height: 56px !important;
	max-width: 170px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
	object-fit: contain;
}

/* Company logo pinned in the centre; carrier logos flow around / behind it. */
.iaot-center-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	background: #fff;
	padding: 8px 26px;
	border-radius: 10px;
	box-shadow: 0 0 24px 14px rgba(255, 255, 255, 0.95);
}

.iaot-center-logo img {
	max-height: 68px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
}

/* Move the chain to the right; two identical sets make it seamless. */
@keyframes iaot-scroll-right {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

.iaot-carrier-band:hover .iaot-carrier-track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.iaot-carrier-track {
		animation: none;
	}
}

@media only screen and (max-width: 767px) {
	.iaot-carrier-item {
		height: 46px;
		padding: 0 20px;
	}
	.iaot-carrier-band .iaot-carrier-item img {
		max-height: 42px !important;
		max-width: 120px !important;
	}
	.iaot-center-logo {
		padding: 6px 16px;
	}
	.iaot-center-logo img {
		max-height: 48px !important;
	}
}
