/* ویترین‌یار — بنر تایپ‌شونده (سایت و پیش‌نمایش پنل) */

.vy-bn-banner {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: var(--vy-bn-h, 80px);
	margin: 0;
	padding: 0;
	overflow: hidden;
	z-index: var(--vy-bn-z, 9998);
	border-radius: var(--vy-bn-radius, 0px);
	background: var(--vy-bn-bg, #2563eb);
	color: var(--vy-bn-color, #fff);
	font-family: var(--vy-bn-ff, inherit);
	font-weight: var(--vy-bn-fw, 700);
	font-size: var(--vy-bn-fs-d, 26px);
	line-height: 1.35;
	isolation: isolate;
}
.vy-bn-banner *,
.vy-bn-banner *::before,
.vy-bn-banner *::after {
	box-sizing: border-box;
}
.vy-bn-banner.vy-bn-h-auto {
	height: auto;
	min-height: var(--vy-bn-h, 80px);
}
.vy-bn-banner.vy-bn-has-shadow {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.vy-bn-banner[hidden],
.vy-bn-spacer[hidden],
.vy-bn-banner [hidden] {
	display: none !important;
}

/* ---------- جایگاه ---------- */
.vy-bn-pos-fixed {
	position: fixed;
	inset-inline: 0;
}
.vy-bn-pos-fixed.vy-bn-place-top { top: 0; }
.vy-bn-pos-fixed.vy-bn-place-bottom { bottom: 0; }
.vy-bn-pos-sticky { position: sticky; }
.vy-bn-pos-sticky.vy-bn-place-top { top: 0; }
.vy-bn-pos-sticky.vy-bn-place-bottom { bottom: 0; }
.vy-bn-spacer { width: 100%; }

/* فاصله از نوار مدیریت وردپرس */
body.admin-bar .vy-bn-pos-fixed.vy-bn-place-top,
body.admin-bar .vy-bn-pos-sticky.vy-bn-place-top { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .vy-bn-pos-fixed.vy-bn-place-top,
	body.admin-bar .vy-bn-pos-sticky.vy-bn-place-top { top: 46px; }
}
@media screen and (max-width: 600px) {
	/* زیر ۶۰۰ پیکسل نوار مدیریت همراه صفحه اسکرول می‌شود. */
	body.admin-bar .vy-bn-pos-fixed.vy-bn-place-top,
	body.admin-bar .vy-bn-pos-sticky.vy-bn-place-top { top: 0; }
}

/* ---------- لایه‌های پس‌زمینه (محو شدن بین اسلایدها) ---------- */
.vy-bn-layer {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 600ms ease;
	z-index: 0;
}
.vy-bn-layer.is-visible { opacity: 1; }
.vy-bn-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--vy-bn-overlay, rgba(0, 0, 0, 0.35));
	opacity: 0;
	transition: opacity 400ms ease;
	pointer-events: none;
}
.vy-bn-has-overlay.vy-bn-on-image .vy-bn-overlay { opacity: 1; }

/* ---------- چیدمان ---------- */
.vy-bn-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--vy-bn-maxw, 100%);
	height: 100%;
	margin: 0 auto;
	padding: 10px 56px;
	display: flex;
	align-items: center;
}
.vy-bn-h-auto .vy-bn-inner { padding-block: 16px; }
.vy-bn-content {
	display: flex;
	align-items: center;
	gap: var(--vy-bn-gap, 14px);
	width: 100%;
	min-width: 0;
}
.vy-bn-align-start .vy-bn-content { justify-content: flex-start; }
.vy-bn-align-center .vy-bn-content { justify-content: center; }
.vy-bn-align-end .vy-bn-content { justify-content: flex-end; }

/* «بعد» و «زیر» با order، تا ترازبندی ابتدا/انتها برعکس نشود. */
.vy-bn-logo-after .vy-bn-logo,
.vy-bn-logo-below .vy-bn-logo { order: 2; }
.vy-bn-logo-above .vy-bn-content,
.vy-bn-logo-below .vy-bn-content {
	flex-direction: column;
	justify-content: center;
}
.vy-bn-logo-above.vy-bn-align-start .vy-bn-content,
.vy-bn-logo-below.vy-bn-align-start .vy-bn-content { align-items: flex-start; }
.vy-bn-logo-above.vy-bn-align-end .vy-bn-content,
.vy-bn-logo-below.vy-bn-align-end .vy-bn-content { align-items: flex-end; }

.vy-bn-logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}
.vy-bn-logo img {
	display: block;
	height: var(--vy-bn-logo-h, 40px);
	width: auto;
	max-width: 42vw;
	object-fit: contain;
}
.vy-bn-banner:not(.vy-bn-has-logo) .vy-bn-logo { display: none; }

/* ---------- متن ---------- */
.vy-bn-textlink {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.vy-bn-textlink:hover,
.vy-bn-textlink:focus {
	color: inherit;
	text-decoration: none;
}
.vy-bn-text {
	display: inline-block;
	min-width: 0;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: clip;
}
.vy-bn-h-auto .vy-bn-text { white-space: normal; }
.vy-bn-has-textshadow .vy-bn-text { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }

.vy-bn-cursor {
	display: none;
	flex: 0 0 auto;
	width: var(--vy-bn-cursor-w, 3px);
	height: 1.1em;
	margin-inline-start: 4px;
	background: var(--vy-bn-cursor-c, #fff);
	border-radius: 1px;
	animation: vy-bn-blink 0.9s step-end infinite;
}
.vy-bn-has-cursor .vy-bn-cursor { display: inline-block; }
@keyframes vy-bn-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.vy-bn-banner.vy-bn-clickable { cursor: pointer; }
.vy-bn-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- دکمهٔ بستن ---------- */
.vy-bn-close {
	position: absolute;
	top: 50%;
	inset-inline-end: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-height: 0;
	padding: 0;
	margin: 0;
	color: inherit;
	background: rgba(0, 0, 0, 0.18);
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	opacity: 0.8;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.vy-bn-close:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.35);
	transform: translateY(-50%) scale(1.08);
}
.vy-bn-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	opacity: 1;
}
.vy-bn-textlink:focus-visible,
.vy-bn-logo:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 3px;
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 1024px) {
	.vy-bn-banner { font-size: var(--vy-bn-fs-t, 22px); }
	.vy-bn-inner { padding-inline: 48px; }
}
@media (max-width: 768px) {
	.vy-bn-banner { font-size: var(--vy-bn-fs-m, 18px); }
	.vy-bn-inner { padding-inline: 44px; }
	.vy-bn-logo img { height: calc(var(--vy-bn-logo-h, 40px) * 0.8); }
	.vy-bn-logo-hide-mobile .vy-bn-logo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vy-bn-cursor { animation: none; }
	.vy-bn-layer,
	.vy-bn-overlay { transition-duration: 1ms; }
}
