/*
 * Styles du widget Show coupon.
 */

.nova-show-coupon {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	max-width: 100%;
	padding: 0.78rem 1rem;
	border: 1px dashed rgba(17, 24, 39, 0.24);
	border-radius: 999px;
	background: #fff7ed;
	color: #111827;
	font-weight: 800;
	line-height: 1.25;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.nova-show-coupon__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.45rem;
	height: 1.45rem;
	color: #c2410c;
	font-size: 1.05rem;
}

.nova-show-coupon__text {
	min-width: 0;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.24rem;
	overflow-wrap: anywhere;
}

.nova-show-coupon__label,
.nova-show-coupon__separator {
	opacity: 0.86;
}

.nova-show-coupon__code {
	font-weight: 900;
	letter-spacing: 0.02em;
}

.nova-show-coupon--home-banner,
.nova-show-coupon--product {
	position: relative;
	padding: calc(0.82rem + 2px) calc(0.9rem + 2px) calc(0.82rem + 2px) calc(0.78rem + 2px);
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111827;
	font-family: var(--nova-banner-button-font, "Montserrat", Arial, sans-serif);
	font-size: max(0.92rem, calc(var(--nova-banner-text-size, 1rem) * 0.72));
	line-height: 1.2;
	text-transform: none;
	box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
	overflow: hidden;
	transform: translateY(0);
}

.nova-show-coupon--home-banner {
	margin-top: 1.2rem;
}

.nova-show-coupon--home-banner::before,
.nova-show-coupon--product::before {
	content: "";
	position: absolute;
	inset: 2px;
	z-index: 1;
	border-radius: inherit;
	background: linear-gradient(135deg, #ffffff 0%, #f8ece7 100%);
}

.nova-show-coupon--home-banner::after,
.nova-show-coupon--product::after {
	content: "";
	position: absolute;
	inset: -45%;
	z-index: 0;
	background: conic-gradient(from 0deg, transparent 0deg, transparent 250deg, #ef4444 290deg, #ef4444 326deg, transparent 360deg);
	animation: nova-show-coupon-red-border 2.8s linear infinite;
	pointer-events: none;
}

.nova-show-coupon--home-banner > *,
.nova-show-coupon--product > * {
	position: relative;
	z-index: 2;
}

.nova-show-coupon--home-banner .nova-show-coupon__icon,
.nova-show-coupon--product .nova-show-coupon__icon {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #8ea7b7;
	color: #ffffff;
	font-size: 1.05rem;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nova-show-coupon--home-banner .nova-show-coupon__label,
.nova-show-coupon--home-banner .nova-show-coupon__separator,
.nova-show-coupon--product .nova-show-coupon__label,
.nova-show-coupon--product .nova-show-coupon__separator {
	color: #3f3f46;
	opacity: 1;
}

.nova-show-coupon--home-banner .nova-show-coupon__code,
.nova-show-coupon--product .nova-show-coupon__code {
	display: inline-flex;
	align-items: center;
	min-height: 1.72rem;
	padding: 0.16rem 0.62rem;
	border-radius: 999px;
	background: #ef4444;
	color: #111827;
	box-shadow: 0 8px 18px rgba(239, 68, 68, 0.22);
}

.nova-banner-widget--align-center .nova-show-coupon--home-banner {
	margin-inline: auto;
}

.nova-banner-widget--align-right .nova-show-coupon--home-banner {
	margin-left: auto;
}

.nova-show-coupon--product {
	display: flex;
	width: fit-content;
	margin: 0 0 12px;
}

.nova-show-coupon--product-category {
	display: flex;
	width: fit-content;
	margin: 0 0 clamp(24px, 3vw, 38px);
}

@media (max-width: 640px) {
	.nova-show-coupon {
		width: 100%;
		justify-content: center;
		text-align: center;
	}

	.nova-show-coupon--home-banner,
	.nova-show-coupon--product,
	.nova-show-coupon--product-category {
		width: fit-content;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.nova-show-coupon--home-banner {
		justify-content: center;
		border-radius: 18px;
		text-align: center;
	}
}

@keyframes nova-show-coupon-red-border {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nova-show-coupon--home-banner::after {
		animation: none;
	}
}
