.promodose-timed-offers {
	--promodose-offer-columns: 4;
	--promodose-offer-tablet-columns: 2;
	--promodose-offer-mobile-columns: 1;
	--promodose-offer-direction: rtl;
	background:
		radial-gradient(circle at 8% 14%, color-mix(in srgb, var(--wp--preset--color--turquoise) 20%, transparent) 0, transparent 28%),
		radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--wp--preset--color--rose) 13%, transparent) 0, transparent 24%),
		linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--navy) 90%, #000) 0%, var(--wp--preset--color--navy) 48%, color-mix(in srgb, var(--wp--preset--color--navy) 86%, #000) 100%);
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--turquoise) 18%, transparent);
	color: var(--wp--preset--color--base);
	direction: var(--promodose-offer-direction);
	margin-block-start: 0;
	overflow: hidden;
	padding-block: clamp(3.75rem, 7vw, 6.25rem);
	position: relative;
}

.promodose-timed-offers.is-content-direction-ltr {
	--promodose-offer-direction: ltr;
}

.promodose-timed-offers.is-surface-light {
	background:
		radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--wp--preset--color--turquoise) 12%, transparent) 0, transparent 28%),
		linear-gradient(180deg, var(--wp--preset--color--base) 0%, color-mix(in srgb, var(--wp--preset--color--turquoise) 7%, var(--wp--preset--color--base)) 100%);
	color: var(--wp--preset--color--navy);
}

.promodose-timed-offers::before {
	background-image:
		linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px),
		linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
	background-size: 46px 46px;
	content: "";
	inset: 0;
	opacity: 0.58;
	pointer-events: none;
	position: absolute;
}

.promodose-timed-offers__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-inline: clamp(1rem, 3vw, 2rem);
	position: relative;
	z-index: 1;
}

.promodose-timed-offers__header {
	align-items: end;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr) auto auto;
	margin-block-end: clamp(1.75rem, 4vw, 3rem);
}

.promodose-timed-offers__copy {
	display: grid;
	gap: 0.65rem;
	max-width: 720px;
}

.promodose-timed-offers__eyebrow {
	align-items: center;
	color: #ffb347;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 900;
	gap: 0.6rem;
	margin: 0;
}

.promodose-timed-offers__eyebrow::before {
	background: #ffb347;
	border-radius: 999px;
	content: "";
	height: 4px;
	width: 44px;
}

.promodose-timed-offers__title {
	color: currentColor;
	font-size: clamp(1.7rem, 3vw, 2.65rem);
	line-height: 1.16;
	margin: 0;
}

.promodose-timed-offers__description {
	color: rgb(255 255 255 / 74%);
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.8;
	margin: 0;
	max-width: 650px;
}

.is-surface-light .promodose-timed-offers__description {
	color: var(--wp--preset--color--muted);
}

.promodose-timed-offers__summary {
	align-items: center;
	background: rgb(255 255 255 / 8%);
	border: 1px solid rgb(255 255 255 / 14%);
	border-radius: 8px;
	display: grid;
	gap: 0.25rem;
	justify-items: center;
	min-width: 210px;
	padding: 0.75rem 1rem;
}

.promodose-timed-offers__summary-label {
	color: rgb(255 255 255 / 70%);
	font-size: 0.78rem;
	font-weight: 700;
}

.promodose-timed-offers__summary-time {
	color: #ffb347;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.promodose-timed-offers__view-all {
	color: var(--wp--preset--color--turquoise);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.promodose-timed-offers__view-all::before {
	content: "← ";
}

.promodose-timed-offers__grid {
	display: grid;
	gap: clamp(1rem, 2vw, 1.25rem);
	grid-template-columns: repeat(var(--promodose-offer-columns), minmax(0, 1fr));
}

.promodose-offer-card {
	background: rgb(255 255 255 / 4%);
	border: 1px solid rgb(95 153 213 / 35%);
	border-radius: 12px;
	box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
	box-sizing: border-box;
	color: var(--wp--preset--color--base);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.promodose-offer-card:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--turquoise) 58%, transparent);
	box-shadow: 0 24px 72px rgb(0 0 0 / 24%);
	transform: translateY(-4px);
}

.promodose-offer-card.is-expiring {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.98);
}

.promodose-offer-card.is-urgent {
	animation: promodose-offer-urgent-glow 1600ms ease-in-out infinite;
}

.promodose-offer-card__media {
	aspect-ratio: 1.35;
	background: color-mix(in srgb, var(--wp--preset--color--navy) 65%, transparent);
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.promodose-offer-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
	width: 100%;
}

.promodose-offer-card:hover .promodose-offer-card__image {
	transform: scale(1.04);
}

.promodose-offer-card__discount {
	background: linear-gradient(135deg, var(--wp--preset--color--rose), var(--wp--preset--color--primary));
	border-radius: 999px;
	box-shadow: 0 14px 28px rgb(0 0 0 / 18%);
	color: var(--wp--preset--color--base);
	font-size: 0.84rem;
	font-weight: 900;
	inset-block-start: 0.8rem;
	inset-inline-end: 0.8rem;
	padding: 0.45rem 0.65rem;
	position: absolute;
}

.promodose-offer-card__body {
	display: grid;
	gap: 0.72rem;
	padding: 1rem;
}

.promodose-offer-card__category {
	color: var(--wp--preset--color--turquoise);
	font-size: 0.78rem;
	font-weight: 800;
}

.promodose-offer-card__title {
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 0;
	min-height: 2.7em;
}

.promodose-offer-card__title a {
	color: currentColor;
	text-decoration: none;
}

.promodose-offer-card__price {
	align-items: baseline;
	color: var(--wp--preset--color--turquoise);
	display: flex;
	flex-wrap: wrap;
	font-size: 1.05rem;
	font-weight: 900;
	gap: 0.45rem;
}

.promodose-offer-card__price del {
	color: rgb(255 255 255 / 50%);
	font-size: 0.9rem;
	font-weight: 700;
}

.promodose-offer-card__price ins {
	text-decoration: none;
}

.promodose-offer-card__countdown {
	background: rgb(255 255 255 / 7%);
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: 8px;
	display: grid;
	gap: 0.55rem;
	padding: 0.7rem;
}

.promodose-offer-card__countdown-top {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	justify-content: space-between;
}

.promodose-offer-card__countdown-top span {
	color: rgb(255 255 255 / 68%);
	font-size: 0.78rem;
	font-weight: 800;
}

.promodose-offer-card__countdown-top strong {
	color: #ffb347;
	font-size: 1.05rem;
	font-weight: 950;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.promodose-offer-card__progress {
	background: rgb(255 255 255 / 12%);
	border-radius: 999px;
	height: 7px;
	overflow: hidden;
}

.promodose-offer-card__progress span {
	background: linear-gradient(90deg, var(--wp--preset--color--turquoise), #ffb347);
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 8%;
	transition: width 300ms ease;
	width: 0;
}

.promodose-offer-card.is-soon .promodose-offer-card__progress span {
	background: linear-gradient(90deg, #ffb347, var(--wp--preset--color--rose));
}

.promodose-offer-card.is-urgent .promodose-offer-card__progress span,
.promodose-offer-card.is-ended .promodose-offer-card__progress span {
	background: var(--wp--preset--color--rose);
}

.promodose-offer-card .add_to_cart_button,
.promodose-offer-card__button {
	align-items: center !important;
	background: var(--wp--preset--color--turquoise) !important;
	border: 0 !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	clear: both !important;
	color: #ffffff !important;
	cursor: pointer !important;
	display: flex !important;
	float: none !important;
	font-family: inherit !important;
	font-size: 0.92rem !important;
	font-weight: 900 !important;
	justify-content: center !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	margin-block-start: auto !important;
	max-width: 100% !important;
	min-height: 44px !important;
	padding: 0.65rem 1rem !important;
	position: relative !important;
	text-align: center !important;
	text-decoration: none !important;
	transition: background-color 180ms ease, transform 180ms ease !important;
	width: 100% !important;
}

.promodose-offer-card .add_to_cart_button:hover,
.promodose-offer-card__button:hover,
.promodose-offer-card__button:focus-visible {
	background: var(--wp--preset--color--primary, #12284a) !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
}

.promodose-offer-card .add_to_cart_button.loading::after {
	inset-block-start: 50% !important;
	transform: translateY(-50%) !important;
}

.promodose-timed-offers__empty {
	background: rgb(255 255 255 / 7%);
	border: 1px dashed rgb(255 255 255 / 18%);
	border-radius: 8px;
	color: rgb(255 255 255 / 74%);
	padding: 1.25rem;
	text-align: center;
}

@keyframes promodose-offer-urgent-glow {
	0%,
	100% {
		box-shadow: 0 18px 48px rgb(0 0 0 / 18%);
	}

	50% {
		box-shadow: 0 22px 70px color-mix(in srgb, var(--wp--preset--color--rose) 24%, transparent);
	}
}

@media (max-width: 980px) {
	.promodose-timed-offers__header {
		align-items: start;
		grid-template-columns: 1fr;
	}

	.promodose-timed-offers__summary {
		justify-self: start;
	}

	.promodose-timed-offers__grid {
		grid-template-columns: repeat(var(--promodose-offer-tablet-columns), minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.promodose-timed-offers {
		padding-block: 2.5rem;
	}

	.promodose-timed-offers__grid {
		gap: 0.75rem;
		grid-template-columns: repeat(var(--promodose-offer-mobile-columns, 2), minmax(0, 1fr));
	}

	.promodose-offer-card {
		box-sizing: border-box;
		direction: rtl;
		width: 100%;
	}

	.promodose-offer-card__discount {
		border-radius: 6px;
		font-size: 0.7rem;
		font-weight: 850;
		inset-block-start: 0.4rem;
		inset-inline-end: 0.4rem;
		padding: 0.22rem 0.42rem;
	}

	.promodose-offer-card .promodose-favorite-button,
	.promodose-favorite-button {
		height: 30px !important;
		min-height: 30px !important;
		min-width: 30px !important;
		width: 30px !important;
	}

	.promodose-offer-card__body {
		align-items: stretch;
		box-sizing: border-box;
		direction: rtl;
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.65rem;
		text-align: center;
		width: 100%;
	}

	.promodose-offer-card__category {
		font-size: 0.72rem;
		text-align: center;
	}

	.promodose-offer-card__title {
		font-size: 0.88rem;
		line-height: 1.3;
		min-height: calc(1.3em * 2);
		text-align: center;
	}

	.promodose-offer-card__price {
		font-size: 0.92rem;
		justify-content: center;
	}

	.promodose-offer-card__countdown {
		border-radius: 6px;
		box-sizing: border-box;
		gap: 0.3rem;
		padding: 0.45rem 0.4rem;
		text-align: center;
		width: 100%;
	}

	.promodose-offer-card__countdown-top {
		align-items: center;
		flex-direction: column;
		gap: 0.15rem;
		justify-content: center;
		text-align: center;
	}

	.promodose-offer-card__countdown-top span {
		font-size: 0.7rem;
		text-align: center;
	}

	.promodose-offer-card__countdown-top strong {
		font-size: 0.9rem;
		text-align: center;
	}

	.promodose-offer-card .add_to_cart_button,
	.promodose-offer-card__button {
		align-items: center !important;
		background: var(--wp--preset--color--turquoise) !important;
		border-radius: 8px !important;
		box-sizing: border-box !important;
		clear: both !important;
		color: #ffffff !important;
		display: flex !important;
		float: none !important;
		font-size: 0.84rem !important;
		font-weight: 900 !important;
		justify-content: center !important;
		margin: 0 !important;
		margin-block-start: auto !important;
		min-height: 38px !important;
		padding: 0.5rem 0.4rem !important;
		position: relative !important;
		text-align: center !important;
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.promodose-offer-card,
	.promodose-offer-card__image,
	.promodose-offer-card__button,
	.promodose-offer-card.is-urgent {
		animation: none !important;
		transition: none;
	}
}
