/**
 * USP Bar Styles - Kloira Homepage
 * Desktop: static centered row | Mobile: marquee scroll
 *
 * @package Kloira
 * @since 1.0.0
 */

/* ==========================================================================
   USP Bar Container
   ========================================================================== */

.usp-bar {
	width: 100%;
	height: 96px;
	background: #FFFFFF;
	border-bottom: 1px solid var(--color-border, #DDDDDD);
}

/* Desktop container - visible on desktop, hidden on mobile */
.usp-bar__desktop {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1440px;
	height: 100%;
	margin: 0 auto;
	padding: 0;
}

/* Marquee container - hidden on desktop, visible on mobile */
.usp-bar__marquee {
	display: none;
}

/* ==========================================================================
   USP Item
   ========================================================================== */

.usp-bar__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

a.usp-bar__item:hover {
	opacity: 0.8;
	text-decoration: none;
}

/* ==========================================================================
   USP Icon
   ========================================================================== */

.usp-bar__icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.usp-bar__icon img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.usp-bar__icon svg {
	width: 44px;
	height: 44px;
}

/* ==========================================================================
   USP Content
   ========================================================================== */

.usp-bar__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.usp-bar__title {
	font-family: "Roboto Flex", sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 21px;
	color: #111111;
}

.usp-bar__description {
	font-family: "Roboto Flex", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 19px;
	color: #666666;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.usp-bar__divider {
	width: 1px;
	height: 32px;
	background-color: var(--color-border, #DDDDDD);
	flex-shrink: 0;
}

/* ==========================================================================
   Desktop Responsive
   ========================================================================== */

@media (max-width: 1440px) {
	.usp-bar__desktop {
		padding: 0 60px;
	}

	.usp-bar__icon {
		width: 40px;
		height: 40px;
	}

	.usp-bar__icon img,
	.usp-bar__icon svg {
		width: 40px;
		height: 40px;
	}

	.usp-bar__title {
		font-size: 16px;
		line-height: 19px;
	}

	.usp-bar__description {
		font-size: 14px;
		line-height: 17px;
	}
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1200px) {
	.usp-bar {
		height: auto;
		padding: 24px 0;
	}

	.usp-bar__desktop {
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px 40px;
		padding: 0 40px;
	}

	.usp-bar__desktop .usp-bar__divider {
		display: none;
	}

	.usp-bar__item {
		gap: 12px;
	}
}

/* ==========================================================================
   Mobile - Marquee
   ========================================================================== */

@media (max-width: 767px) {
	.usp-bar {
		height: 70px;
		padding: 0;
		overflow: hidden;
	}

	.usp-bar__desktop {
		display: none;
	}

	.usp-bar__marquee {
		display: flex;
		flex-direction: row;
		align-items: center;
		height: 100%;
		width: max-content;
		animation: uspMarquee 25s linear infinite;
	}

	.usp-bar__marquee:hover {
		animation-play-state: paused;
	}

	.usp-bar__marquee-track {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 24px;
		padding-right: 24px;
		height: 100%;
	}

	.usp-bar__marquee .usp-bar__item {
		gap: 12px;
	}

	.usp-bar__marquee .usp-bar__icon {
		width: 32px;
		height: 32px;
	}

	.usp-bar__marquee .usp-bar__icon img,
	.usp-bar__marquee .usp-bar__icon svg {
		width: 32px;
		height: 32px;
	}

	.usp-bar__marquee .usp-bar__content {
		gap: 4px;
	}

	.usp-bar__marquee .usp-bar__title {
		font-size: 14px;
		line-height: 16px;
		font-weight: 600;
	}

	.usp-bar__marquee .usp-bar__description {
		font-size: 12px;
		line-height: 14px;
	}

	.usp-bar__marquee .usp-bar__divider {
		width: 1px;
		height: 20px;
		background-color: #DDDDDD;
		flex-shrink: 0;
	}
}

/* ==========================================================================
   Marquee Animation
   ========================================================================== */

@keyframes uspMarquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.usp-bar__marquee {
		animation: none;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.usp-bar__marquee::-webkit-scrollbar {
		display: none;
	}
}
