/**
 * VoSveteIT – vlastný horný app banner.
 * Premenné: --vit-app-banner-btn, --vit-app-banner-btn-hover (inline z PHP).
 * Normálny tok: min-height 80px od prvého HTML kvôli CLS; .vit-app-banner--pending bez viditeľného obsahu.
 */

body.vit-app-banner-active {
	position: relative;
}

.vit-app-banner {
	box-sizing: border-box;
	width: 100%;
	min-height: 80px;
	max-height: 80px;
	margin: 0;
	padding: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	background-color: #3d3d3d;
	background-image: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 4px,
		rgba(255, 255, 255, 0.04) 4px,
		rgba(255, 255, 255, 0.04) 8px
	);
	overflow: hidden;
	transition: min-height 0.2s ease, max-height 0.2s ease, opacity 0.18s ease;
}

/* Rezerva miesta pred behom JS – bez tmavého pásu */
.vit-app-banner--pending {
	background-color: transparent;
	background-image: none;
	box-shadow: none;
}

/* Zatvorenie: zrúšenie výšky pred odstránením uzla z DOM */
.vit-app-banner--dismissing {
	min-height: 0;
	max-height: 0;
	opacity: 0;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
}

.vit-app-banner__inner {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	height: 100%;
	padding: 0 16px 0 8px;
	gap: 10px;
}

.vit-app-banner__close {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 5px;
	/* × má v fontoch často vyšší „optický stred“ – jemný posun nadol */
	padding-top: 2px;
	border: 0;
	border-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 0;
	color: #b1b1b3;
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.vit-app-banner__close:hover,
.vit-app-banner__close:focus {
	color: #eee;
	background: rgba(0, 0, 0, 0.5);
}

.vit-app-banner__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.vit-app-banner__icon {
	flex-shrink: 0;
	width: 57px;
	height: 57px;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.35);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.vit-app-banner__text {
	flex: 1;
	min-width: 0;
	line-height: 1.25;
	color: #ccc;
}

.vit-app-banner__title {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vit-app-banner__author {
	font-size: 11px;
	color: #b1b1b3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vit-app-banner__meta {
	font-size: 11px;
	color: #aaa;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vit-app-banner__price {
	color: #d4d0c8;
}

.vit-app-banner__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	text-transform: none;
	background: var(--vit-app-banner-btn, #1a1f29);
	border-radius: 4px;
	box-shadow: none;
}

.vit-app-banner__cta:hover,
.vit-app-banner__cta:focus {
	color: #fff !important;
	background: var(--vit-app-banner-btn-hover, #151a22);
}

.vit-app-banner__cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
