/* Header Offers - estilos estruturais (cores de fundo/texto/link vem do
   Theme Settings existente, aplicado no container .top-header ancestral;
   aqui so o que e especifico do conteudo dos dois modos) */

/* --- modo slider --- */
#mh-header-offers-slider.owl-carousel:not(.custom-nav) .owl-nav button {
	color: inherit;
	background: transparent;
	border: none;
	font-size: 18px !important;
}
.mh-header-offers-slider.owl-carousel.nav-position-middle-inside .owl-nav .owl-prev { left: 0; }
.mh-header-offers-slider.owl-carousel.nav-position-middle-inside .owl-nav .owl-next { right: 0; }
.mh-header-offers-slider .item p { margin: 0 !important; }

/* Cada slide tem uma quantidade de texto diferente - sem isso, a faixa mudava
   de altura a cada rotacao (e loop:true mantem os itens clonados/fora de
   tela tambem no mesmo .owl-stage, entao esticar todos pela mesma regra
   garante que o proximo slide ja entra com a altura certa, sem recalculo). */
.mh-header-offers-slider .owl-stage {
	display: flex;
}
.mh-header-offers-slider .owl-item {
	height: auto;
	display: flex;
}
.mh-header-offers-slider .owl-item .item {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mh-header-offers-slider .mh-ho-coupon-wrapper {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-left: .5rem;
	vertical-align: middle;
}
.mh-header-offers-slider .mh-ho-coupon-label {
	font-weight: 400;
}
/* selo (icone + codigo) como um unico "chip" clicavel - cores padrao
   servem de fallback caso o admin nao configure as cores no painel */
.mh-header-offers-slider .mh-ho-coupon-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	border: none;
	border-radius: 8px;
	padding: .35rem .8rem;
	background: #ffc94a;
	color: #1a1a2e;
	font-family: inherit;
	font-size: 1em;
	line-height: 1.2;
	cursor: pointer;
	user-select: all;
}
.mh-header-offers-slider .mh-ho-coupon-icon {
	flex-shrink: 0;
	display: block;
}
.mh-header-offers-slider .mh-ho-coupon-code {
	font-weight: 700;
	letter-spacing: .3px;
	color: inherit;
}
.mh-header-offers-slider .mh-ho-copied-badge {
	margin-left: .35rem;
	font-size: .85em;
	background: #05cbfd;
	color: #001016;
	border-radius: 6px;
	padding: .1rem .4rem;
	font-weight: 700;
	display: inline-block;
}
@media (max-width: 480px) {
	.mh-header-offers-slider .mh-ho-coupon-wrapper { gap: .35rem; }
	.mh-header-offers-slider .mh-ho-coupon-badge { padding: .3rem .6rem; }
}

/* --- modo ticker --- */
.mh-header-offers-ticker {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	position: relative;
	background: transparent;
	padding: 8px 0;
}
.mh-header-offers-ticker__viewport {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}
.mh-header-offers-ticker__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
}
.mh-header-offers-ticker__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	flex-shrink: 0;
}
.mh-header-offers-ticker__item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding-right: 16px;
	font-size: 14px;
	line-height: 1.4;
}
.mh-header-offers-ticker__item::before {
	content: "•";
	margin-right: 12px;
	opacity: 0.6;
}
.mh-header-offers-ticker__item:first-child::before {
	content: none;
	margin-right: 0;
}
.mh-header-offers-ticker__item a {
	color: inherit;
	text-decoration: none;
}
.mh-header-offers-ticker__item a:hover {
	text-decoration: underline;
}
/* "Exibir em" por item - CSS puro serve aqui (sem "slot" de rotacao como no
   slider, entao esconder um item so tira ele da fileira, sem deixar buraco). */
@media (max-width: 767px) {
	.mh-header-offers-ticker__item--desktop-only {
		display: none;
	}
}
@media (min-width: 768px) {
	.mh-header-offers-ticker__item--mobile-only {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.mh-header-offers-ticker__track {
		transform: none !important;
		flex-wrap: wrap;
		width: 100%;
	}
	.mh-header-offers-ticker__group[aria-hidden="true"] {
		display: none;
	}
}
