/*!
 * Vero Ticker News - front-end styles
 * Copyright (c) Vero Bit Web - https://verobitweb.net - All rights reserved.
 */

/* ---------- Base bar ---------- */
.vtn-ticker {
	/* Effective values (desktop). Mobile overrides them below. */
	--vtn-x-height: var(--vtn-height, 56px);
	--vtn-x-radius: var(--vtn-radius, 50px);
	--vtn-x-font-size: var(--vtn-font-size, 18px);
	--vtn-x-label-font-size: var(--vtn-label-font-size, 18px);
	--vtn-x-mt: var(--vtn-mt, 10px);
	--vtn-x-mb: var(--vtn-mb, 10px);
	--vtn-x-side: var(--vtn-side, 0px);
	--vtn-x-btn: calc(var(--vtn-x-height) * .6);
	box-sizing: border-box;
	position: relative;
	display: block;
	width: 100%;
	max-width: var(--vtn-max-width, 100%);
	height: var(--vtn-x-height);
	margin: var(--vtn-x-mt) auto var(--vtn-x-mb);
	padding: 0;
	background: var(--vtn-background, #1f3ee0);
	border: var(--vtn-border, 0 solid transparent);
	border-radius: var(--vtn-x-radius);
	color: var(--vtn-text, #fff);
	font-family: var(--vtn-font, inherit);
	font-size: var(--vtn-x-font-size);
	font-weight: var(--vtn-weight, 600);
	line-height: 1.2;
	text-align: left;
	overflow: hidden;
	isolation: isolate;
	z-index: 1;
}

.vtn-ticker *,
.vtn-ticker *::before,
.vtn-ticker *::after {
	box-sizing: border-box;
}

.vtn-ticker.vtn-shadow {
	box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .45);
}

.vtn-ticker.is-closed {
	display: none !important;
}

.vtn-inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 100%;
}

/* ---------- Label ---------- */
.vtn-label {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: .6em;
	padding: 0 1.1em 0 calc(var(--vtn-x-height) * .22);
	background: var(--vtn-label-bg, transparent);
	color: var(--vtn-label-color, #fff);
	font-size: var(--vtn-x-label-font-size);
	white-space: nowrap;
	border-right: 1px solid var(--vtn-divider, rgba(255, 255, 255, .35));
	z-index: 2;
}

.vtn-label-badge .vtn-label {
	margin: 5px;
	padding: 0 1em 0 .7em;
	border-right: 0;
	border-radius: max(0px, calc(var(--vtn-x-radius) - 5px));
}

.vtn-label-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.vtn-dot {
	position: relative;
	width: 1.55em;
	height: 1.55em;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: .95;
}

.vtn-dot > span {
	display: block;
	width: .72em;
	height: .72em;
	border-radius: 50%;
	background: currentColor;
}

.vtn-dot::after {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0;
}

/* Label animations */
.vtn-label-anim-pulse .vtn-dot::after {
	animation: vtn-ring 1.8s ease-out infinite;
}

.vtn-label-anim-pulse .vtn-label-icon:not(.vtn-dot) {
	animation: vtn-breathe 1.8s ease-in-out infinite;
}

.vtn-label-anim-blink .vtn-label-icon {
	animation: vtn-blink 1.1s steps(2, start) infinite;
}

.vtn-label-anim-shake .vtn-label-icon {
	animation: vtn-shake 2.4s ease-in-out infinite;
	transform-origin: 50% 60%;
}

.vtn-label-anim-glow .vtn-label {
	animation: vtn-glow 2.2s ease-in-out infinite;
}

/* ---------- Viewport / items ---------- */
.vtn-viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	overflow: hidden;
}

.vtn-mode-marquee .vtn-viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

.vtn-track {
	height: 100%;
}

.vtn-mode-marquee .vtn-track {
	display: flex;
	align-items: center;
	width: max-content;
	will-change: transform;
}

.vtn-item {
	display: flex;
	align-items: center;
	height: 100%;
	white-space: nowrap;
	text-transform: var(--vtn-transform, uppercase);
}

.vtn-mode-marquee .vtn-item {
	flex: 0 0 auto;
	padding-left: 1.1em;
}

.vtn-item-inner {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	min-width: 0;
	max-width: 100%;
}

.vtn-sep {
	display: inline-block;
	margin-left: 1.1em;
	color: var(--vtn-sep, currentColor);
	font-weight: 700;
}

.vtn-mode-single .vtn-sep {
	display: none;
}

.vtn-ticker a.vtn-link,
.vtn-ticker a.vtn-link:visited {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	border: 0;
	outline-offset: 2px;
	transition: color .25s ease, background-size .3s ease, background-color .25s ease;
}

.vtn-ticker .vtn-text,
.vtn-ticker a.vtn-link {
	min-width: 0;
}

.vtn-mode-single .vtn-text,
.vtn-mode-single a.vtn-link {
	overflow: hidden;
	text-overflow: ellipsis;
}

.vtn-ticker .vtn-text strong,
.vtn-ticker .vtn-link strong,
.vtn-ticker .vtn-text b,
.vtn-ticker .vtn-link b {
	font-weight: 800;
}

/* Hover effects */
.vtn-hover-underline a.vtn-link {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	padding-bottom: 2px;
}

.vtn-hover-underline a.vtn-link:hover,
.vtn-hover-underline a.vtn-link:focus-visible {
	background-size: 100% 2px;
	color: var(--vtn-hover, inherit);
}

.vtn-hover-color a.vtn-link:hover,
.vtn-hover-color a.vtn-link:focus-visible {
	color: var(--vtn-hover, inherit);
}

.vtn-hover-highlight a.vtn-link {
	padding: .12em .4em;
	border-radius: 6px;
}

.vtn-hover-highlight a.vtn-link:hover,
.vtn-hover-highlight a.vtn-link:focus-visible {
	background-color: rgba(255, 255, 255, .18);
	background-color: color-mix(in srgb, var(--vtn-hover, #fff) 24%, transparent);
	color: var(--vtn-hover, inherit);
}

/* Icons, badges, thumbnails, meta */
.vtn-icon {
	flex: 0 0 auto;
	line-height: 1;
}

.vtn-icon-emoji {
	font-size: 1.1em;
}

.vtn-ticker .vtn-icon.dashicons {
	width: 1.15em;
	height: 1.15em;
	font-size: 1.15em;
	line-height: 1;
	vertical-align: middle;
}

.vtn-icon-img {
	width: auto;
	height: 1.35em;
	max-width: 3em;
	object-fit: contain;
}

.vtn-ticker .vtn-thumb {
	flex: 0 0 auto;
	width: calc(var(--vtn-x-height) * .6);
	height: calc(var(--vtn-x-height) * .6);
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.vtn-badge {
	display: inline-block;
	flex: 0 0 auto;
	padding: .38em .62em;
	border-radius: 999px;
	background: #ff3b30;
	color: #fff;
	font-size: .6em;
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1;
	text-transform: uppercase;
	animation: vtn-badge 2s ease-in-out infinite;
}

.vtn-meta {
	flex: 0 0 auto;
	font-size: .78em;
	font-weight: 500;
	opacity: .8;
	text-transform: none;
}

.vtn-meta del {
	opacity: .65;
	margin-right: .3em;
}

.vtn-meta ins {
	text-decoration: none;
	background: none;
}

/* ---------- Single-item modes ---------- */
.vtn-mode-single .vtn-track {
	position: relative;
}

.vtn-mode-single .vtn-item {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 1.1em;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: var(--vtn-in, none);
	transition: none;
}

.vtn-mode-single:not(.vtn-ready) .vtn-item:first-child,
.vtn-mode-single .vtn-item.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.vtn-mode-single .vtn-item.is-active,
.vtn-mode-single .vtn-item.is-leaving {
	transition: transform .6s cubic-bezier(.22, .8, .24, 1), opacity .6s ease;
}

.vtn-mode-single .vtn-item.is-leaving {
	opacity: 0;
	visibility: visible;
	transform: var(--vtn-out, none);
}

.vtn-fx-slide_h .vtn-item {
	--vtn-in: translateX(100%);
	--vtn-out: translateX(-100%);
}

.vtn-fx-slide_h.vtn-rev .vtn-item {
	--vtn-in: translateX(-100%);
	--vtn-out: translateX(100%);
}

.vtn-fx-slide_v .vtn-item {
	--vtn-in: translateY(100%);
	--vtn-out: translateY(-100%);
}

.vtn-fx-slide_v.vtn-rev .vtn-item {
	--vtn-in: translateY(-100%);
	--vtn-out: translateY(100%);
}

.vtn-fx-slide_h .vtn-item.is-leaving,
.vtn-fx-slide_v .vtn-item.is-leaving {
	opacity: 1;
}

.vtn-fx-zoom .vtn-item {
	--vtn-in: scale(.6);
	--vtn-out: scale(1.35);
}

.vtn-fx-flip .vtn-viewport {
	perspective: 600px;
}

.vtn-fx-flip .vtn-item {
	--vtn-in: rotateX(-90deg);
	--vtn-out: rotateX(90deg);
	transform-origin: 50% 50%;
	backface-visibility: hidden;
}

.vtn-fx-flip.vtn-rev .vtn-item {
	--vtn-in: rotateX(90deg);
	--vtn-out: rotateX(-90deg);
}

.vtn-fx-typewriter .vtn-item.is-leaving {
	transition: opacity .25s ease;
}

.vtn-fx-typewriter .vtn-item-inner {
	overflow: hidden;
	padding-right: 4px;
	border-right: 2px solid transparent;
}

.vtn-fx-typewriter .vtn-item-inner > *,
.vtn-fx-typewriter .vtn-item-inner > a.vtn-link {
	flex-shrink: 0;
	overflow: visible;
	text-overflow: clip;
}

.vtn-fx-typewriter .vtn-item-inner.vtn-typing {
	animation: vtn-caret .8s step-end infinite;
}

/* ---------- Controls ---------- */
.vtn-controls {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 calc(var(--vtn-x-height) * .3) 0 .5em;
	z-index: 2;
}

.vtn-ticker button.vtn-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-items: center;
	width: var(--vtn-x-btn);
	height: var(--vtn-x-btn);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--vtn-ctrl-bg, transparent);
	box-shadow: none;
	color: var(--vtn-ctrl, #fff);
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	opacity: .9;
	transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.vtn-ticker button.vtn-btn:hover {
	opacity: 1;
	transform: scale(1.12);
	background: var(--vtn-ctrl-bg, transparent);
	color: var(--vtn-ctrl, #fff);
}

.vtn-ticker button.vtn-btn:focus-visible {
	outline: 2px solid var(--vtn-ctrl, #fff);
	outline-offset: 2px;
}

.vtn-arrows-circle button.vtn-btn {
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.vtn-arrows-square button.vtn-btn {
	border-radius: 6px;
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.vtn-btn .vtn-svg {
	display: block;
	width: 60%;
	height: 60%;
	pointer-events: none;
}

.vtn-btn .vtn-svg-play,
.vtn-btn.is-paused .vtn-svg-pause {
	display: none;
}

.vtn-btn.is-paused .vtn-svg-play {
	display: block;
}

/* ---------- Positions ---------- */
.vtn-ticker.vtn-pos-fixed_top,
.vtn-ticker.vtn-pos-fixed_bottom {
	position: fixed;
	left: var(--vtn-x-side);
	right: var(--vtn-x-side);
	width: auto;
	margin: 0 auto;
	z-index: var(--vtn-z, 9999);
}

.vtn-ticker.vtn-pos-fixed_top {
	top: var(--vtn-x-mt);
}

.vtn-ticker.vtn-pos-fixed_bottom {
	bottom: var(--vtn-x-mb);
}

body.admin-bar .vtn-ticker.vtn-pos-fixed_top {
	top: calc(32px + var(--vtn-x-mt));
}

@media screen and (max-width: 782px) {
	body.admin-bar .vtn-ticker.vtn-pos-fixed_top {
		top: calc(46px + var(--vtn-x-mt));
	}
}

body.vtn-push-top {
	padding-top: var(--vtn-push-top, 0) !important;
}

body.vtn-push-bottom {
	padding-bottom: var(--vtn-push-bottom, 0) !important;
}

.vtn-ticker.vtn-boxed {
	width: calc(100% - 2 * var(--vtn-x-side));
}

/* ---------- Entrance animations ---------- */
.vtn-enter-fade {
	animation: vtn-in-fade .7s ease both;
}

.vtn-enter-slide_down {
	animation: vtn-in-down .7s cubic-bezier(.22, .8, .24, 1) both;
}

.vtn-enter-slide_up {
	animation: vtn-in-up .7s cubic-bezier(.22, .8, .24, 1) both;
}

.vtn-enter-zoom {
	animation: vtn-in-zoom .6s cubic-bezier(.22, .8, .24, 1) both;
}

.vtn-ticker.is-closing {
	animation: vtn-out .35s ease forwards;
}

/* ---------- Visibility ---------- */
@media (max-width: 767px) {
	.vtn-ticker.vtn-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.vtn-ticker.vtn-hide-desktop {
		display: none !important;
	}
}

/* ---------- Mobile: automatic adjustments (separate mobile settings off) ---------- */
@media (max-width: 767px) {
	.vtn-ticker:not(.vtn-has-mobile) {
		font-size: calc(var(--vtn-x-font-size) * .86);
	}

	.vtn-ticker:not(.vtn-has-mobile) .vtn-label {
		font-size: calc(var(--vtn-x-label-font-size) * .86);
		padding-right: .8em;
	}
}

@media (max-width: 520px) {
	.vtn-ticker:not(.vtn-has-mobile) {
		--vtn-x-btn: calc(var(--vtn-x-height) * .5);
	}

	.vtn-ticker:not(.vtn-has-mobile) .vtn-label .vtn-label-icon + .vtn-label-text {
		display: none;
	}

	.vtn-ticker:not(.vtn-has-mobile) .vtn-controls {
		gap: 0;
		padding-right: calc(var(--vtn-x-height) * .2);
	}

	.vtn-ticker:not(.vtn-has-mobile).vtn-mode-single .vtn-item {
		padding: 0 .7em;
	}
}

/* ---------- Mobile: separate settings (Mobile tab), screens up to 767px ---------- */
@media (max-width: 767px) {
	.vtn-ticker.vtn-has-mobile {
		--vtn-x-height: var(--vtn-m-height, 40px);
		--vtn-x-radius: var(--vtn-m-radius, 30px);
		--vtn-x-font-size: var(--vtn-m-font-size, 13px);
		--vtn-x-label-font-size: var(--vtn-m-label-font-size, 13px);
		--vtn-x-mt: var(--vtn-m-mt, 6px);
		--vtn-x-mb: var(--vtn-m-mb, 6px);
		--vtn-x-side: var(--vtn-m-side, 6px);
		--vtn-x-btn: var(--vtn-m-btn, 26px);
	}

	.vtn-ticker.vtn-has-mobile:not(.vtn-pos-fixed_top):not(.vtn-pos-fixed_bottom) {
		width: calc(100% - 2 * var(--vtn-x-side));
	}

	.vtn-has-mobile .vtn-label {
		gap: .45em;
		padding: 0 .75em 0 calc(var(--vtn-x-height) * .2);
	}

	.vtn-has-mobile.vtn-label-badge .vtn-label {
		margin: 3px;
		padding: 0 .7em 0 .45em;
		border-radius: max(0px, calc(var(--vtn-x-radius) - 3px));
	}

	.vtn-has-mobile .vtn-dot {
		width: 1.4em;
		height: 1.4em;
		border-width: 1.5px;
	}

	.vtn-has-mobile .vtn-dot::after {
		border-width: 1.5px;
	}

	.vtn-has-mobile .vtn-label-text {
		max-width: 9em;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.vtn-has-mobile .vtn-controls {
		gap: 0;
		padding: 0 calc(var(--vtn-x-height) * .18) 0 .25em;
	}

	.vtn-has-mobile.vtn-arrows-circle .vtn-controls,
	.vtn-has-mobile.vtn-arrows-square .vtn-controls {
		gap: 3px;
	}

	.vtn-has-mobile.vtn-mode-single .vtn-item {
		padding: 0 .75em;
	}

	.vtn-has-mobile.vtn-mode-marquee .vtn-item {
		padding-left: .8em;
	}

	.vtn-has-mobile .vtn-sep {
		margin-left: .8em;
	}

	.vtn-has-mobile .vtn-item-inner {
		gap: .4em;
	}

	.vtn-has-mobile .vtn-badge {
		padding: .32em .5em;
	}

	.vtn-has-mobile.vtn-mode-marquee .vtn-viewport {
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
	}

	/* Label on mobile */
	.vtn-m-label-icon .vtn-label-text,
	.vtn-m-label-text .vtn-label-icon,
	.vtn-m-label-hide .vtn-label {
		display: none !important;
	}

	.vtn-m-label-icon .vtn-label {
		padding-right: calc(var(--vtn-x-height) * .2);
	}

	/* Text case on mobile */
	.vtn-m-upper-on .vtn-item {
		text-transform: uppercase;
	}

	.vtn-m-upper-off .vtn-item {
		text-transform: none;
	}

	/* Elements hidden on mobile */
	.vtn-m-hide-arrows .vtn-prev,
	.vtn-m-hide-arrows .vtn-next,
	.vtn-m-hide-pause .vtn-pause,
	.vtn-m-hide-close .vtn-close,
	.vtn-m-hide-icons .vtn-item-icon,
	.vtn-m-hide-icons .vtn-thumb,
	.vtn-m-hide-badges .vtn-badge,
	.vtn-m-hide-meta .vtn-meta,
	.vtn-m-no-controls .vtn-controls {
		display: none !important;
	}
}

/* ---------- Keyframes ---------- */
@keyframes vtn-ring {
	0% { transform: scale(1); opacity: .8; }
	100% { transform: scale(1.9); opacity: 0; }
}

@keyframes vtn-breathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}

@keyframes vtn-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .15; }
}

@keyframes vtn-shake {
	0%, 60%, 100% { transform: rotate(0); }
	65% { transform: rotate(-14deg); }
	70% { transform: rotate(12deg); }
	75% { transform: rotate(-10deg); }
	80% { transform: rotate(8deg); }
	85% { transform: rotate(-4deg); }
}

@keyframes vtn-glow {
	0%, 100% { text-shadow: 0 0 0 transparent; }
	50% { text-shadow: 0 0 10px currentColor, 0 0 18px currentColor; }
}

@keyframes vtn-badge {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

@keyframes vtn-caret {
	0%, 100% { border-right-color: currentColor; }
	50% { border-right-color: transparent; }
}

@keyframes vtn-in-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes vtn-in-down {
	from { opacity: 0; transform: translateY(-120%); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes vtn-in-up {
	from { opacity: 0; transform: translateY(120%); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes vtn-in-zoom {
	from { opacity: 0; transform: scale(.9); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes vtn-out {
	to { opacity: 0; transform: translateY(-30%); }
}

@media (prefers-reduced-motion: reduce) {
	.vtn-ticker,
	.vtn-ticker *,
	.vtn-ticker *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
