.hmyt-promo-bar-wrapper {
	width: 100%;
	z-index: 99991;
	display: flex;
	justify-content: center;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	color: #ffffff;
}

.hmyt-promo-bar-wrapper.hmyt-pb-active {
	max-height: 100px;
	opacity: 1;
}

/* موقعیت نمایش دسکتاپ */
@media screen and (min-width: 769px) {
	.hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-d-top { position: fixed; top: 0; left: 0; bottom: auto; }
	.hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-d-bottom { position: fixed; bottom: 0; left: 0; top: auto; }
	.admin-bar .hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-d-top { top: 32px; }
}

/* موقعیت نمایش موبایل */
@media screen and (max-width: 768px) {
	.hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-m-top { position: fixed; top: 0; left: 0; bottom: auto; }
	.hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-m-bottom { position: fixed; bottom: 0; left: 0; top: auto; }
	.admin-bar .hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-m-top { top: 46px; }
}

.hmyt-promo-bar-wrapper:not(.hmyt-pb-sticky) {
	position: relative;
}

.hmyt-pb-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
}

.hmyt-pb-content-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	height: 50px;
}

.hmyt-pb-close-wrapper {
	width: 37px;
	height: 50px;
	display: flex;
	align-items: center;
	padding-right: 5px;
}

body .hmyt-pb-close {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer;
	min-height: auto !important; /* خنثی کردن حداقل ارتفاع وودمارت */
	box-shadow: none !important;
	outline: none !important;
}

body .hmyt-pb-close:hover {
	background: transparent !important;
}

body .hmyt-pb-close-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	transition: all 0.2s ease;
	background: rgba(0, 0, 0, 0.11);
}

body .hmyt-pb-close:hover .hmyt-pb-close-icon {
	background: rgba(0, 0, 0, 0.25);
}

.hmyt-pb-close-icon svg {
	width: 10px;
	height: 10px;
	display: block;
	fill: #ffffff;
}

.hmyt-pb-text {
	flex: 1;
	font-size: 14px;
	word-spacing: -1px;
	padding-left: 10px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body .hmyt-pb-btn a {
	text-decoration: none !important;
	font-size: 13px;
	padding: 5px 14px;
	word-spacing: -2px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff !important;
	border-radius: 5px;
	font-weight: 500;
	transition: all 0.2s ease;
	cursor: pointer;
	user-select: none;
	display: block;
	/* خنثی کردن استایل‌های وودمارت */
	text-transform: none !important;
	box-shadow: none !important;
	border: none !important;
	min-height: auto !important;
	font-family: inherit;
	letter-spacing: normal;
}

body .hmyt-pb-btn a:hover {
	background: rgba(0, 0, 0, 0.45) !important;
	color: #fff !important; /* جلوگیری از مشکی شدن متن در هاور وودمارت */
}

body .hmyt-pb-btn a:active {
	background: rgba(0, 0, 0, 0.53) !important;
}

.hmyt-pb-timer-wrapper {
	user-select: none;
	padding-right: 17px;
}

.hmyt-pb-timer {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.11);
	height: 40px;
	padding: 0 13px;
	border-radius: 25px;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.11);
}

.hmyt-pb-timer-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
}

.hmyt-pb-timer-num {
	background: #ffffff;
	color: var(--hmyt-pb-bg, #ef394e);
	height: 25px;
	min-width: 25px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	border-radius: 25px;
	font-weight: bold;
	transition: all 0.2s ease;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
	direction: ltr;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.hmyt-promo-active .hmyt-pb-timer-num.secs {
	animation: top_notify_timer_secs 1s ease-in-out .5s infinite;
	box-shadow: 0 0 0 0px #ffffff;
	opacity: 1;
	filter: blur(0px);
	transform: rotate(10deg);
}

@keyframes top_notify_timer_secs {
	0% { box-shadow: 0 0 0 0px #ffffff; transform: rotate(10deg); opacity: 1; filter: blur(0px); }
	50% { box-shadow: 0 0 0 2px #ffffff; transform: rotate(-10deg); opacity: 1; filter: blur(1px); }
}

.hmyt-pb-timer-label {
	font-size: 9px;
	color: #ffffff;
	font-weight: 500;
	margin-top: 1px;
}

.hmyt-pb-content-img-wrapper {
	position: relative;
	width: 100%;
}

.hmyt-pb-close-img {
	position: absolute;
	right: 15px;
	left: auto;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.hmyt-pb-content-img {
	display: block;
	width: 100%;
	line-height: 0;
}

.hmyt-pb-img-desktop, .hmyt-pb-img-mobile {
	width: 100%;
	height: 70px; /* ارتفاع پیش‌فرض و استاندارد نوار - قابل تغییر */
	object-fit: cover; /* برش هوشمند تصویر برای جلوگیری از دفرمه شدن */
	object-position: center;
	display: block;
}

/* در صورت فعال بودن تیک ارتفاع خودکار، استایل‌های بالا خنثی می‌شوند */
.hmyt-promo-bar-wrapper.hmyt-pb-img-auto .hmyt-pb-img-desktop,
.hmyt-promo-bar-wrapper.hmyt-pb-img-auto .hmyt-pb-img-mobile {
	height: auto !important;
	object-fit: unset !important;
}

.hmyt-pb-img-mobile {
	display: none;
}

@media screen and (max-width: 782px) {
	.admin-bar .hmyt-promo-bar-wrapper.hmyt-pb-sticky.hmyt-pb-top {
		top: 46px;
	}
}

@media screen and (max-width: 768px) {
	.hmyt-promo-bar-wrapper.hmyt-pb-active {
		max-height: 80px;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile.hmyt-pb-active {
		max-height: 150px;
	}
	
	.hmyt-pb-content-row {
		height: 50px;
		flex-wrap: nowrap;
		padding: 0;
		gap: 8px;
		justify-content: space-between;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-content-row {
		height: auto;
		flex-wrap: wrap;
		padding: 10px 0;
		justify-content: flex-start;
		align-items: center;
	}
	
	.hmyt-pb-timer-wrapper {
		display: none !important;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-timer-wrapper {
		display: flex !important;
		order: 4;
		width: 100%;
		justify-content: center;
		margin-top: 8px;
	}
	
	.hmyt-pb-close-wrapper {
		order: unset;
		position: static;
		height: 50px;
		width: 30px;
		padding-right: 0;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-close-wrapper {
		order: 1;
		position: static;
		height: auto;
	}
	
	.hmyt-pb-text {
		order: unset;
		text-align: right;
		padding: 0;
		flex: 1;
		width: auto;
		font-size: 12px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-text {
		order: 2;
		text-align: right;
		flex: 1;
		width: auto;
	}
	
	.hmyt-pb-btn {
		order: unset;
		flex-shrink: 0;
		margin-left: 5px;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-btn {
		order: 3;
		margin-left: 5px;
	}
	
	body .hmyt-pb-btn a {
		font-size: 11px;
		padding: 4px 10px;
	}
	
	.hmyt-pb-img-desktop { display: none; }
	.hmyt-pb-img-mobile { display: block; }
	.hmyt-pb-close-img { right: 10px; left: auto; top: 50%; transform: translateY(-50%); }
	
	/* مدیریت تایمر روی عکس در موبایل */
	.hmyt-pb-timer-img-overlay {
		display: none !important;
	}
	.hmyt-promo-bar-wrapper.hmyt-pb-show-timer-mobile .hmyt-pb-timer-img-overlay {
		display: flex !important;
		left: 10px; /* چسبیدن به سمت چپ */
		top: 50%; /* وسط‌چین کردن عمودی نسبت به ارتفاع عکس */
		bottom: auto;
		transform: translateY(-50%);
		width: max-content;
		margin-top: 0;
	}
}

/* تمام عرض کردن کانتینر در حالت گیف/تصویر */
.hmyt-pb-type-image_gif .hmyt-pb-container {
    max-width: 100%;
    padding: 0;
}

/* افزایش ارتفاع مجاز برای انیمیشن نمایش تصاویر در صورت بلند بودن گیف */
.hmyt-pb-type-image_gif.hmyt-pb-active {
    max-height: 800px;
}

/* استایل شناور کردن تایمر روی عکس */
.hmyt-pb-timer-img-overlay {
    position: absolute;
    left: 45px; /* فاصله‌گیری از دکمه ضربدر */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding-right: 0;
}

@media screen and (max-width: 768px) {
    /* پنهان کردن تایمر روی عکس در موبایل */
    .hmyt-pb-timer-img-overlay {
        display: none !important;
    }
}