/**
 * #News bar
 */

.p-news-bar__brand {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 4px;
	background-color: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.p-news-bar__brand--pro-lab {
	background-color: var(--prolab-gold, #e8c547);
	color: #111;
}

.p-news-bar__brand--open-class {
	background-color: var(--openclass, #a8479e);
}

@media (max-width: 768px) {
	.p-news-bar.p-news-bar--hub .p-news-bar__meta {
		gap: 4px;
		width: 100%;
		min-width: 0;
	}

	.p-news-bar--hub .p-news-bar__brand {
		flex-shrink: 0;
		padding: 4px;
		font-size: 10px;
	}

	.p-news-bar.p-news-bar--hub time {
		font-size: 11px;
	}

	.p-news-bar.p-news-bar--hub .p-news-bar__cat {
		display: block;
		min-width: 0;
		padding: 4px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.p-news-bar {
	position: absolute;
	right: 0;
	bottom: 30px;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: min(900px, calc(100% - 40px));
	margin-inline: auto;
	background-color: var(--white);
	border-radius: 6px;
	overflow: hidden;
	color: #111;
	text-decoration: none;

	&:hover,
	a:hover {
		opacity: 1;
		color: #111;
	}

	.p-news-bar__label {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 90px;
		padding: 12px 11px;
		border-radius: 6px 0 0 6px;
		background-image: var(--neon-news-grd, linear-gradient(77deg, #00f5ff 5.4%, #bf00ff 94.5%));
		color: var(--white);
		font-family: var(--ff-en);
		font-size: 16px;
		font-weight: 900;
		line-height: 1.5;
		text-transform: uppercase;
		flex-shrink: 0;
	}

	.p-news-bar__slider {
		flex: 1;
		min-width: 0;
		height: 48px;
		overflow: hidden;
	}

	.p-news-bar__slider:not([data-keen-slider-disabled]) .p-news-bar__slide {
		width: 100%;
		max-width: none;
		height: 100%;
		min-height: 100%;
	}

	.p-news-bar__slide {
		display: flex;
		align-items: center;
		gap: 10px;
		min-width: 0;
		color: inherit;
		text-decoration: none;
	}

	.p-news-bar__meta {
		display: flex;
		align-items: center;
		gap: 10px;
		flex-shrink: 0;
	}

	time {
		font-family: var(--ff-en);
		font-size: 13px;
		font-weight: 700;
		line-height: 1.5;
		white-space: nowrap;
	}

	.p-news-bar__cat {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 6px 10px;
		border: 1px solid #ddd;
		border-radius: 6px;
		background-color: #f6f6f6;
		color: #111;
		font-size: 12px;
		font-weight: 500;
		line-height: 1;
		white-space: nowrap;
	}

	.p-news-bar__title {
		min-width: 0;
		overflow: hidden;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.5;
		text-decoration: underline;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.p-news-bar__more {
		display: inline-flex;
		align-items: center;
		align-self: center;
		gap: 6px;
		margin-right: 16px;
		font-family: var(--ff-en);
		font-size: 12px;
		font-weight: 900;
		text-transform: uppercase;
		text-decoration: none;
		color: #111;
		flex-shrink: 0;

		.c-arrow {
			width: 12px;
			height: 12px;
			max-width: none;
			color: #111;
			--arrow-size: 12px;
		}
	}

	@media (max-width: 768px) {
		bottom: 16px;
		align-items: stretch;
		width: calc(100% - 40px);

		.p-news-bar__label {
			width: 64px;
			padding: 12px 8px;
			font-size: 16px;
		}

		.p-news-bar__slider {
			height: 72px;
		}

		.p-news-bar__slide {
			flex-direction: column;
			align-items: flex-start;
			justify-content: center;
			gap: 5px;
			padding: 8px 12px 8px 0;
		}

		time {
			font-size: 14px;
		}
		.p-news-bar__cat {
			padding: 4px 8px;
			font-size: 10px;
		}
		.p-news-bar__title {
			width: 100%;
		}

		.p-news-bar__more {
			display: none;
		}
	}
}
