/**
 * רוטציית באנרי מפרסמים - מצגת מתחלפת + חיצים.
 * !important כדי שלא יידרס ע"י Elementor / תבנית.
 */
.hm-ad-rotator,
.hm-home .hm-ad-rotator,
.hm-post .hm-ad-rotator,
.elementor-widget-shortcode .hm-ad-rotator,
.elementor-element .hm-ad-rotator {
	position: relative !important;
	width: 100% !important;
	overflow: hidden !important;
}

/* שני סליידרים אחד מתחת לשני כשיש יותר מ-3 פרסומות */
.hm-ad-rotator-stack,
.hm-home .hm-ad-rotator-stack,
.hm-post .hm-ad-rotator-stack,
.hm-home-hero .hm-ad-rotator-stack,
.elementor-widget-shortcode .hm-ad-rotator-stack,
.elementor-element .hm-ad-rotator-stack {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.75rem !important;
	width: 100% !important;
}

.hm-ad-rotator-stack>.hm-ad-rotator,
.hm-ad-rotator-stack>.hm-ad-creative-banner {
	width: 100% !important;
}

.hm-ad-rotator__slide {
	width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hm-ad-rotator__slide:not(.is-active) {
	position: absolute;
	inset-inline: 0;
	top: 0;
}

.hm-ad-rotator__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.hm-ad-rotator .hm-ad-creative-banner,
.hm-ad-rotator .hm-ad-creative-banner img,
.hm-ad-rotator .hm-home__mail-banner,
.hm-ad-rotator .hm-home__mail-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* === ניווט חיצים - כפיית עיצוב === */
.hm-ad-rotator__nav,
.hm-home .hm-ad-rotator__nav,
.hm-post .hm-ad-rotator__nav,
.elementor-widget-shortcode .hm-ad-rotator__nav,
.elementor-element .hm-ad-rotator__nav {
	position: absolute !important;
	inset: 0 !important;
	z-index: 5 !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}

/* אין חיצים כשיש סלייד בודד */
.hm-ad-rotator[data-hm-ad-slides="0"] .hm-ad-rotator__nav,
.hm-ad-rotator[data-hm-ad-slides="1"] .hm-ad-rotator__nav,
.hm-ad-rotator:not(:has([data-hm-ad-rotator-slide] ~ [data-hm-ad-rotator-slide])) .hm-ad-rotator__nav {
	display: none !important;
}

.hm-ad-rotator button.hm-ad-rotator__btn,
.hm-ad-rotator button.hm-ad-rotator__btn[type="button"],
.hm-home .hm-ad-rotator button.hm-ad-rotator__btn,
.hm-post .hm-ad-rotator button.hm-ad-rotator__btn,
.elementor-widget-shortcode .hm-ad-rotator button.hm-ad-rotator__btn,
.elementor-element .hm-ad-rotator button.hm-ad-rotator__btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	z-index: 6 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.55) !important;
	background-color: rgba(0, 0, 0, 0.55) !important;
	background-image: none !important;
	color: #fff !important;
	font-family: Arial, sans-serif !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	cursor: pointer !important;
	opacity: 0.85 !important;
	pointer-events: auto !important;
	transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease !important;
	box-sizing: border-box !important;
	float: none !important;
	overflow: visible !important;
	/* מונע שיקוף תווי < > ב-RTL */
	direction: ltr !important;
	unicode-bidi: isolate !important;
}

/* שמאל = קודם (<), ימין = הבא (>) - מצביעים החוצה */
.hm-ad-rotator button.hm-ad-rotator__btn--prev,
.hm-home .hm-ad-rotator button.hm-ad-rotator__btn--prev,
.hm-post .hm-ad-rotator button.hm-ad-rotator__btn--prev,
.hm-singer-archive .hm-ad-rotator button.hm-ad-rotator__btn--prev,
.elementor-widget-shortcode .hm-ad-rotator button.hm-ad-rotator__btn--prev,
.elementor-element .hm-ad-rotator button.hm-ad-rotator__btn--prev {
	left: 8px !important;
	right: auto !important;
}

.hm-ad-rotator button.hm-ad-rotator__btn--next,
.hm-home .hm-ad-rotator button.hm-ad-rotator__btn--next,
.hm-post .hm-ad-rotator button.hm-ad-rotator__btn--next,
.hm-singer-archive .hm-ad-rotator button.hm-ad-rotator__btn--next,
.elementor-widget-shortcode .hm-ad-rotator button.hm-ad-rotator__btn--next,
.elementor-element .hm-ad-rotator button.hm-ad-rotator__btn--next {
	right: 8px !important;
	left: auto !important;
}

.hm-ad-rotator button.hm-ad-rotator__btn:hover,
.hm-ad-rotator button.hm-ad-rotator__btn:focus,
.hm-ad-rotator button.hm-ad-rotator__btn:focus-visible,
.hm-home .hm-ad-rotator button.hm-ad-rotator__btn:hover,
.hm-home .hm-ad-rotator button.hm-ad-rotator__btn:focus,
.hm-post .hm-ad-rotator button.hm-ad-rotator__btn:hover,
.hm-post .hm-ad-rotator button.hm-ad-rotator__btn:focus {
	background: rgba(0, 0, 0, 0.78) !important;
	background-color: rgba(0, 0, 0, 0.78) !important;
	color: #fff !important;
	opacity: 1 !important;
	transform: translateY(-50%) scale(1.06) !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.hm-ad-rotator button.hm-ad-rotator__btn .hm-ad-rotator__btn-icon,
.hm-ad-rotator .hm-ad-rotator__btn-icon {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	line-height: 1 !important;
	color: inherit !important;
	font-size: inherit !important;
	font-family: inherit !important;
	font-weight: inherit !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	pointer-events: none !important;
	transform: none !important;
}

@media (max-width: 480px) {

	.hm-ad-rotator button.hm-ad-rotator__btn,
	.hm-home .hm-ad-rotator button.hm-ad-rotator__btn,
	.hm-post .hm-ad-rotator button.hm-ad-rotator__btn {
		width: 30px !important;
		min-width: 30px !important;
		max-width: 30px !important;
		height: 30px !important;
		min-height: 30px !important;
		max-height: 30px !important;
		font-size: 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-ad-rotator__slide {
		transition: none;
	}

	.hm-ad-rotator button.hm-ad-rotator__btn,
	.hm-ad-rotator button.hm-ad-rotator__btn:hover,
	.hm-ad-rotator button.hm-ad-rotator__btn:focus {
		transition: none !important;
	}
}