/* ==========================================================================
   WP Offer – front-end styles
   Styles: amazing · glass · minimal · bold · spotlight
   ========================================================================== */

.wpo-offers,
.wpo-page,
.wpo-ptimer,
.wpo-topbar,
.wpo-chip,
.wpo-standalone {
	--wpo-text: #1f2430;
	--wpo-muted: #7a8193;
	--wpo-card-bg: #fff;
	--wpo-line: #eceef3;
	--wpo-radius: 18px;
	--wpo-card-radius: 14px;
	--wpo-gap: 16px;
	--wpo-shadow: 0 10px 30px -12px rgba(23, 27, 45, .22);
	box-sizing: border-box;
}
/* Global colors; overridden by plugin settings (inline), shortcode or Elementor. */
:root {
	--wpo-accent: #ef394e;
	--wpo-accent-2: #ff8a3d;
}
.wpo-offers *,
.wpo-page *,
.wpo-ptimer *,
.wpo-topbar * {
	box-sizing: border-box;
}
.wpo-icon {
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Countdown
   -------------------------------------------------------------------------- */
.wpo-timer {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	direction: rtl;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.wpo-timer [hidden] {
	display: none !important;
}
.wpo-timer__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 52px;
}
.wpo-timer__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	padding: 0 6px;
	border-radius: 12px;
	background: #fff;
	color: var(--wpo-accent);
	font-size: 24px;
	font-weight: 800;
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35);
}
.wpo-timer__label {
	font-size: 11px;
	font-weight: 500;
	opacity: .85;
}
.wpo-timer__sep {
	align-self: flex-start;
	height: 52px;
	display: flex;
	align-items: center;
	font-size: 22px;
	font-weight: 800;
	opacity: .7;
}
.wpo-timer__expired {
	font-weight: 700;
	direction: rtl;
}
.wpo-tick {
	animation: wpo-tick .35s ease-out;
}
@keyframes wpo-tick {
	0% { transform: translateY(-18%); opacity: .55; }
	100% { transform: none; opacity: 1; }
}

/* Inline variant reads like a clock: 02:14:33:05 */
.wpo-timer--inline {
	direction: ltr;
	align-items: center;
	gap: 2px;
	font-weight: 700;
}
.wpo-timer--inline .wpo-timer__unit {
	min-width: 0;
	gap: 0;
}
.wpo-timer--inline .wpo-timer__num {
	height: auto;
	padding: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	border-radius: 0;
}
.wpo-timer--inline .wpo-timer__label {
	display: none;
}
.wpo-timer--inline .wpo-timer__sep {
	height: auto;
	font-size: inherit;
	opacity: .6;
}

/* --------------------------------------------------------------------------
   Section skeleton
   -------------------------------------------------------------------------- */
.wpo-offers {
	--wpo-cols: var(--wpo-cols-d, 5);
	position: relative;
	direction: rtl;
	margin: 0 0 32px;
	color: var(--wpo-text);
	border-radius: var(--wpo-radius);
}
.wpo-offers__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 18px;
}
.wpo-offers__titles {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-inline-end: auto;
}
.wpo-offers__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	font-size: 24px;
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}
.wpo-offers__title {
	margin: 0;
	padding: 0;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.4;
	color: inherit;
}
.wpo-offers__subtitle {
	margin: 2px 0 0;
	font-size: 13px;
	opacity: .75;
}
.wpo-offers__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	color: var(--wpo-accent);
	background: rgba(239, 57, 78, .08);
	background: color-mix(in srgb, var(--wpo-accent) 10%, transparent);
	transition: transform .2s, background .2s;
}
.wpo-offers__all:hover {
	transform: translateX(-3px);
}
.wpo-offers__body {
	position: relative;
	min-width: 0;
}

/* Grid + slider track */
.wpo-grid {
	display: grid;
	grid-template-columns: repeat(var(--wpo-cols), minmax(0, 1fr));
	gap: var(--wpo-gap);
}
.wpo-track {
	display: flex;
	gap: var(--wpo-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 14px;
	margin: -4px -2px -14px;
	cursor: grab;
}
.wpo-track::-webkit-scrollbar {
	display: none;
}
.wpo-track.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
}
.wpo-track.is-dragging a {
	pointer-events: none;
}
.wpo-track > .wpo-card {
	flex: 0 0 calc((100% - (var(--wpo-cols) - 1) * var(--wpo-gap)) / var(--wpo-cols));
	scroll-snap-align: start;
}

/* Themes such as Woodmart style every <button> (padding, min-height, background,
   position). The arrows reset all of that and use variables for their colors. */
.wpo-offers .wpo-nav {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 40%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: var(--wpo-nav-fg, var(--wpo-text));
	background: var(--wpo-nav-bg, #fff);
	box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .3);
	-webkit-backdrop-filter: var(--wpo-nav-blur, none);
	backdrop-filter: var(--wpo-nav-blur, none);
	cursor: pointer;
	transition: transform .2s, opacity .2s;
}
.wpo-offers .wpo-nav:hover,
.wpo-offers .wpo-nav:focus,
.wpo-offers .wpo-nav:active {
	color: var(--wpo-nav-fg, var(--wpo-text));
	background: var(--wpo-nav-bg, #fff);
	box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .3);
}
.wpo-offers .wpo-nav:hover {
	transform: scale(1.08);
}
.wpo-offers .wpo-nav:focus-visible {
	outline: 2px solid var(--wpo-accent);
	outline-offset: 2px;
}
.wpo-offers .wpo-nav--prev {
	inset-inline-start: -14px;
}
.wpo-offers .wpo-nav--next {
	inset-inline-end: -14px;
}
[dir="ltr"] .wpo-nav .wpo-icon,
[dir="ltr"] .wpo-offers__all .wpo-icon {
	transform: scaleX(-1);
}
.wpo-offers .wpo-no-scroll .wpo-nav {
	display: none;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.wpo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--wpo-card-radius);
	background: var(--wpo-card-bg);
	color: var(--wpo-text);
	transition: transform .25s ease, box-shadow .25s ease;
}
.wpo-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wpo-shadow);
}
.wpo-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f6f7fb;
}
.wpo-card__img,
.wpo-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
	transition: transform .5s ease;
}
.wpo-card:hover .wpo-card__media img {
	transform: scale(1.06);
}
.wpo-card__badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	background: var(--wpo-accent);
	box-shadow: 0 6px 14px -6px var(--wpo-accent);
}
.wpo-card__ribbon {
	display: none;
}
.wpo-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 12px 14px 14px;
}
.wpo-card__kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	color: var(--wpo-accent);
}
.wpo-card__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	min-height: 3.4em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wpo-card__title a {
	color: inherit !important;
	text-decoration: none !important;
}
.wpo-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
	color: var(--wpo-muted);
}
.wpo-card__timer {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--wpo-accent);
	background: rgba(239, 57, 78, .08);
	background: color-mix(in srgb, var(--wpo-accent) 9%, transparent);
}

.wpo-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	margin-top: auto;
}
.wpo-price__regular {
	font-size: 12px;
	color: var(--wpo-muted);
	opacity: .9;
}
.wpo-price__now {
	font-size: 16px;
	font-weight: 800;
	color: inherit;
}
.wpo-price__now small {
	font-size: 11px;
	font-weight: 500;
	opacity: .7;
}
.wpo-price .amount,
.wpo-price bdi {
	color: inherit;
	font-weight: inherit;
}
.wpo-price .woocommerce-Price-currencySymbol {
	font-size: .75em;
	font-weight: 500;
}

.wpo-progress {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.wpo-progress__track {
	height: 6px;
	overflow: hidden;
	border-radius: 99px;
	background: rgba(0, 0, 0, .08);
}
.wpo-progress__bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--wpo-accent-2), var(--wpo-accent));
}
.wpo-progress--hot .wpo-progress__bar {
	background-size: 30px 30px;
	background-image: linear-gradient(45deg, rgba(255, 255, 255, .25) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .25) 50%, rgba(255, 255, 255, .25) 75%, transparent 75%), linear-gradient(90deg, var(--wpo-accent-2), var(--wpo-accent));
	animation: wpo-stripes 1s linear infinite;
}
@keyframes wpo-stripes {
	to { background-position: 30px 0, 0 0; }
}
.wpo-progress__text {
	font-size: 11px;
	color: var(--wpo-muted);
}
.wpo-progress--hot .wpo-progress__text {
	color: var(--wpo-accent);
	font-weight: 700;
}

.wpo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	border: 0;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	cursor: pointer;
	transition: filter .2s, transform .2s;
}
.wpo-btn:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}
.wpo-btn.loading {
	opacity: .65;
	pointer-events: none;
}
.wpo-btn.added::after {
	content: "✓";
	margin-inline-start: 4px;
}
.wpo-btn--ghost {
	color: var(--wpo-accent) !important;
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--wpo-accent);
}
.wpo-card .added_to_cart {
	display: block;
	text-align: center;
	font-size: 12px;
	color: var(--wpo-accent);
}

/* ==========================================================================
   Style 1 · amazing
   ========================================================================== */
.wpo-style-amazing {
	--wpo-cols-d: 4;
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding: 20px;
	color: #fff;
	background:
		radial-gradient(circle at 12% 120%, rgba(255, 255, 255, .18), transparent 40%),
		linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	box-shadow: 0 20px 40px -24px var(--wpo-accent);
}
.wpo-style-amazing .wpo-offers__head {
	flex: 0 0 210px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	text-align: center;
}
.wpo-style-amazing .wpo-offers__titles {
	flex-direction: column;
	margin: 0;
}
.wpo-style-amazing .wpo-offers__icon {
	width: 64px;
	height: 64px;
	font-size: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	animation: wpo-pulse 2.2s ease-in-out infinite;
}
.wpo-style-amazing .wpo-offers__title {
	font-size: 24px;
}
.wpo-style-amazing .wpo-timer__unit {
	min-width: 40px;
}
.wpo-style-amazing .wpo-timer__num {
	height: 42px;
	font-size: 19px;
	border-radius: 10px;
}
.wpo-style-amazing .wpo-timer__sep {
	height: 42px;
}
.wpo-style-amazing .wpo-offers__all {
	color: #fff;
	background: rgba(255, 255, 255, .18);
}
.wpo-style-amazing .wpo-offers__body {
	flex: 1;
}
.wpo-style-amazing .wpo-card {
	border-radius: 12px;
}
.wpo-offers.wpo-style-amazing .wpo-nav--prev {
	inset-inline-start: -10px;
}
@keyframes wpo-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); }
	50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   Style 2 · glass (dark neon)
   ========================================================================== */
.wpo-style-glass {
	--wpo-text: #f4f5fb;
	--wpo-muted: #a9aec4;
	--wpo-card-bg: rgba(255, 255, 255, .07);
	padding: 24px;
	overflow: hidden;
	color: var(--wpo-text);
	background:
		radial-gradient(600px 300px at 90% -10%, color-mix(in srgb, var(--wpo-accent) 55%, transparent), transparent 70%),
		radial-gradient(500px 300px at 0% 110%, color-mix(in srgb, var(--wpo-accent-2) 45%, transparent), transparent 70%),
		#12121f;
}
.wpo-style-glass .wpo-offers__icon {
	box-shadow: 0 0 24px var(--wpo-accent);
}
.wpo-style-glass .wpo-timer__num {
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: inset 0 0 18px rgba(255, 255, 255, .05);
	text-shadow: 0 0 14px var(--wpo-accent), 0 0 4px var(--wpo-accent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.wpo-style-glass .wpo-offers__all {
	color: #fff;
	background: rgba(255, 255, 255, .1);
}
.wpo-style-glass .wpo-card {
	border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.wpo-style-glass .wpo-card:hover {
	box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--wpo-accent) 70%, transparent);
	border-color: color-mix(in srgb, var(--wpo-accent) 60%, transparent);
}
.wpo-style-glass .wpo-card__media {
	background: rgba(255, 255, 255, .04);
}
.wpo-style-glass .wpo-card__badge {
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}
.wpo-style-glass .wpo-progress__track {
	background: rgba(255, 255, 255, .12);
}
.wpo-style-glass .wpo-nav {
	--wpo-nav-fg: #fff;
	--wpo-nav-bg: rgba(255, 255, 255, .14);
	--wpo-nav-blur: blur(8px);
}
.wpo-style-glass .wpo-card__timer {
	color: #fff;
	background: rgba(255, 255, 255, .1);
}

/* ==========================================================================
   Style 3 · minimal
   ========================================================================== */
.wpo-style-minimal .wpo-offers__head {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--wpo-line);
}
.wpo-style-minimal .wpo-offers__icon {
	width: 40px;
	height: 40px;
	font-size: 20px;
	border-radius: 12px;
}
.wpo-style-minimal .wpo-offers__title {
	position: relative;
}
.wpo-style-minimal .wpo-timer {
	gap: 4px;
}
.wpo-style-minimal .wpo-timer__unit {
	min-width: 44px;
	flex-direction: row;
	align-items: baseline;
	gap: 3px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(239, 57, 78, .08);
	background: color-mix(in srgb, var(--wpo-accent) 8%, transparent);
	color: var(--wpo-accent);
}
.wpo-style-minimal .wpo-timer__num {
	width: auto;
	height: auto;
	padding: 0;
	background: none;
	box-shadow: none;
	font-size: 18px;
}
.wpo-style-minimal .wpo-timer__label {
	font-size: 10px;
}
.wpo-style-minimal .wpo-timer__sep {
	display: none;
}
.wpo-style-minimal .wpo-card {
	border: 1px solid var(--wpo-line);
}
.wpo-style-minimal .wpo-card:hover {
	border-color: transparent;
}

/* ==========================================================================
   Style 4 · bold (ribbon + dark flip boxes)
   ========================================================================== */
.wpo-style-bold {
	padding: 26px 22px;
	background:
		repeating-linear-gradient(135deg, rgba(0, 0, 0, .025) 0 12px, transparent 12px 24px),
		#fff6ee;
	border: 2px dashed color-mix(in srgb, var(--wpo-accent) 35%, transparent);
}
.wpo-style-bold .wpo-offers__head {
	flex-direction: column;
	text-align: center;
	margin-bottom: 24px;
}
.wpo-style-bold .wpo-offers__titles {
	flex-direction: column;
	margin: 0;
}
.wpo-style-bold .wpo-offers__title {
	font-size: 28px;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wpo-style-bold .wpo-offers__icon {
	transform: rotate(-8deg);
}
.wpo-style-bold .wpo-timer__num {
	position: relative;
	height: 58px;
	min-width: 58px;
	font-size: 28px;
	color: #fff;
	background: linear-gradient(180deg, #2b2d3a 50%, #1c1d27 50%);
	border-radius: 10px;
	box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .6);
}
.wpo-style-bold .wpo-timer__num::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: rgba(0, 0, 0, .45);
}
.wpo-style-bold .wpo-timer__sep {
	height: 58px;
	color: var(--wpo-accent);
	opacity: 1;
}
.wpo-style-bold .wpo-card {
	box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .4);
}
.wpo-style-bold .wpo-card__badge {
	display: none;
}
.wpo-style-bold .wpo-card__ribbon {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	z-index: 2;
	display: block;
	width: 110px;
	height: 110px;
	overflow: hidden;
	pointer-events: none;
}
.wpo-style-bold .wpo-card__ribbon span {
	position: absolute;
	top: 22px;
	right: -32px;
	width: 150px;
	padding: 5px 0;
	text-align: center;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	transform: rotate(45deg);
	box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45);
}
[dir="ltr"] .wpo-style-bold .wpo-card__ribbon span {
	right: auto;
	left: -32px;
	transform: rotate(-45deg);
}
.wpo-style-bold .wpo-btn {
	border-radius: 999px;
}

/* ==========================================================================
   Style 5 · spotlight (featured + grid)
   ========================================================================== */
.wpo-style-spotlight {
	--wpo-cols-d: 4;
	padding: 22px;
	background: linear-gradient(160deg, #f6f3ff, #fff4f1);
}
.wpo-style-spotlight .wpo-grid {
	grid-auto-flow: dense;
}
.wpo-style-spotlight .wpo-card--featured {
	grid-column: span 2;
	grid-row: span 2;
	box-shadow: var(--wpo-shadow);
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__media {
	flex: 1 1 auto;
	aspect-ratio: auto;
	min-height: 240px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__media img {
	position: absolute;
	inset: 0;
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__body {
	flex: none;
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__body {
	gap: 12px;
	padding: 18px 20px 20px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__title {
	font-size: 18px;
	font-weight: 800;
	min-height: 0;
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__badge {
	top: 16px;
	inset-inline-start: 16px;
	padding: 8px 16px;
	font-size: 18px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-price__now {
	font-size: 22px;
	color: var(--wpo-accent);
}
.wpo-style-spotlight .wpo-card--featured .wpo-card__timer {
	align-self: stretch;
	justify-content: center;
	padding: 10px;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	color: #fff;
	border-radius: 12px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-timer__num {
	height: 44px;
	font-size: 20px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-timer__sep {
	height: 44px;
}
.wpo-style-spotlight .wpo-card--featured .wpo-price {
	flex-direction: row-reverse;
	justify-content: flex-start;
	align-items: baseline;
	gap: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.wpo-offers {
		--wpo-cols: var(--wpo-cols-t, 3);
	}
	.wpo-style-amazing {
		flex-direction: column;
	}
	.wpo-style-amazing .wpo-offers__head {
		flex: none;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		text-align: start;
	}
	.wpo-style-amazing .wpo-offers__titles {
		flex-direction: row;
	}
	.wpo-style-amazing .wpo-offers__icon {
		width: 48px;
		height: 48px;
		font-size: 26px;
	}
}
@media (max-width: 640px) {
	.wpo-offers {
		--wpo-cols: var(--wpo-cols-m, 2);
		--wpo-gap: 10px;
	}
	.wpo-style-amazing,
	.wpo-style-glass,
	.wpo-style-bold,
	.wpo-style-spotlight {
		padding: 14px;
		border-radius: 14px;
	}
	.wpo-offers__head {
		gap: 12px;
	}
	.wpo-offers__title {
		font-size: 18px;
	}
	.wpo-style-bold .wpo-offers__title {
		font-size: 22px;
	}
	.wpo-timer__unit {
		min-width: 40px;
	}
	.wpo-timer__num,
	.wpo-timer__sep {
		height: 40px;
		font-size: 18px;
	}
	.wpo-style-bold .wpo-timer__num,
	.wpo-style-bold .wpo-timer__sep {
		height: 44px;
		min-width: 44px;
		font-size: 20px;
	}
	.wpo-offers__timer {
		order: 3;
		width: 100%;
		justify-content: center;
	}
	.wpo-style-minimal .wpo-offers__timer {
		justify-content: flex-start;
	}
	.wpo-track > .wpo-card {
		flex-basis: calc((100% - (var(--wpo-cols) - 1) * var(--wpo-gap)) / var(--wpo-cols) - 18px);
	}
	.wpo-offers .wpo-nav {
		display: none;
	}
	.wpo-card__body {
		padding: 10px;
	}
	.wpo-card__title {
		font-size: 13px;
	}
	.wpo-style-spotlight .wpo-card--featured {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

/* ==========================================================================
   Offers page
   ========================================================================== */
.wpo-page {
	direction: rtl;
	color: var(--wpo-text);
}
.wpo-page__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding: 32px;
	margin-bottom: 22px;
	overflow: hidden;
	border-radius: var(--wpo-radius);
	color: #fff;
	background:
		radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .25), transparent 45%),
		linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}
.wpo-page__hero::after {
	content: "%";
	position: absolute;
	inset-inline-end: 4%;
	bottom: -60px;
	font-size: 220px;
	font-weight: 900;
	line-height: 1;
	color: rgba(255, 255, 255, .08);
	pointer-events: none;
}
.wpo-page__hero-text {
	display: flex;
	align-items: center;
	gap: 16px;
}
.wpo-page__hero-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	font-size: 32px;
	background: rgba(255, 255, 255, .2);
}
.wpo-page__title {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.4;
	color: #fff;
}
.wpo-page__subtitle {
	margin: 4px 0 0;
	opacity: .9;
}
.wpo-page__timer {
	position: relative;
	z-index: 1;
}
.wpo-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.wpo-tab {
	flex: none;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	color: var(--wpo-text);
	background: #f2f3f7;
	transition: background .2s, color .2s;
}
.wpo-tab.is-active,
.wpo-tab:hover {
	color: #fff;
	background: var(--wpo-accent);
}
.wpo-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
	padding: 12px;
	border: 1px solid var(--wpo-line);
	border-radius: 14px;
	background: #fff;
}
.wpo-filters.is-loading {
	opacity: .6;
	pointer-events: none;
}
.wpo-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: var(--wpo-muted);
}
.wpo-filter select {
	min-width: 170px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wpo-line);
	border-radius: 10px;
	font: inherit;
	color: var(--wpo-text);
	background-color: #fafbfd;
}
.wpo-count {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--wpo-muted);
}
.wpo-offers--page {
	--wpo-cols-d: 4;
}
.wpo-offers--page.wpo-style-amazing,
.wpo-offers--page.wpo-style-glass,
.wpo-offers--page.wpo-style-bold,
.wpo-offers--page.wpo-style-spotlight {
	display: block;
}
.wpo-empty {
	padding: 48px 20px;
	text-align: center;
	border: 1px dashed var(--wpo-line);
	border-radius: 14px;
	color: var(--wpo-muted);
}
.wpo-pagination ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.wpo-pagination a,
.wpo-pagination span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	text-decoration: none !important;
	color: var(--wpo-text);
	background: #f2f3f7;
}
.wpo-pagination .current {
	color: #fff;
	background: var(--wpo-accent);
}
@media (max-width: 640px) {
	.wpo-page__hero {
		padding: 22px 18px;
	}
	.wpo-page__title {
		font-size: 21px;
	}
	.wpo-page__timer {
		width: 100%;
		justify-content: center;
	}
	.wpo-filter {
		flex: 1 1 100%;
	}
	.wpo-filter select {
		flex: 1;
		min-width: 0;
	}
}

/* ==========================================================================
   Single product countdown
   ========================================================================== */
.wpo-ptimer {
	direction: rtl;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 16px;
	position: relative;
	z-index: 2;
	clear: both;
	line-height: 1.5;
}
.wpo-ptimer__info {
	display: flex;
	align-items: center;
	gap: 10px;
}
.wpo-ptimer__icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 22px;
	flex: none;
}
.wpo-ptimer__text {
	display: flex;
	flex-direction: column;
}
.wpo-ptimer__title {
	font-size: 15px;
	font-weight: 900;
}
.wpo-ptimer__off {
	font-size: 12px;
	opacity: .9;
}
.wpo-ptimer .wpo-progress {
	flex: 1 1 100%;
}
.wpo-ptimer .wpo-timer__unit {
	min-width: 42px;
}
.wpo-ptimer .wpo-timer__num,
.wpo-ptimer .wpo-timer__sep {
	height: 40px;
	font-size: 18px;
}
.wpo-ptimer .wpo-timer__label {
	font-size: 10px;
}

/* gradient */
.wpo-ptimer--gradient {
	color: #fff;
	background:
		radial-gradient(circle at 10% 0, rgba(255, 255, 255, .22), transparent 40%),
		linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	box-shadow: 0 14px 30px -18px var(--wpo-accent);
}
.wpo-ptimer--gradient .wpo-ptimer__icon {
	background: rgba(255, 255, 255, .2);
	animation: wpo-pulse 2.2s ease-in-out infinite;
}
.wpo-ptimer--gradient .wpo-progress__track {
	background: rgba(255, 255, 255, .25);
}
.wpo-ptimer--gradient .wpo-progress__bar {
	background: #fff;
}
.wpo-ptimer--gradient .wpo-progress__text {
	color: #fff;
}

/* boxes */
.wpo-ptimer--boxes {
	color: var(--wpo-text);
	background: #fff;
	border: 1.5px solid color-mix(in srgb, var(--wpo-accent) 30%, transparent);
	box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .35);
}
.wpo-ptimer--boxes .wpo-ptimer__icon {
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}
.wpo-ptimer--boxes .wpo-ptimer__title {
	color: var(--wpo-accent);
}
.wpo-ptimer--boxes .wpo-timer__num {
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}

/* minimal */
.wpo-ptimer--minimal {
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--wpo-accent);
	background: color-mix(in srgb, var(--wpo-accent) 8%, #fff);
}
.wpo-ptimer--minimal .wpo-ptimer__icon {
	width: 30px;
	height: 30px;
	font-size: 20px;
}
.wpo-ptimer--minimal .wpo-ptimer__text {
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
}
.wpo-ptimer--minimal .wpo-timer {
	font-size: 20px;
}
.wpo-ptimer--minimal .wpo-timer__num {
	height: auto;
	font-size: inherit;
}
.wpo-ptimer--minimal .wpo-timer__sep {
	height: auto;
	font-size: inherit;
}

.wpo-ptimer.wpo-is-expired .wpo-timer {
	font-size: 14px;
}

/* Inside the WooCommerce gallery */
.woocommerce-product-gallery.wpo-has-ptimer .woocommerce-product-gallery__trigger {
	top: calc(var(--wpo-pt-offset, 0px) + .5em) !important;
}
.wpo-ptimer-at-gallery div.product > span.onsale {
	display: none;
}
.wpo-ptimer-holder[hidden] {
	display: none !important;
}

/* ==========================================================================
   Shop loop chip + sale flash
   ========================================================================== */
.wpo-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 6px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	color: var(--wpo-accent);
	background: color-mix(in srgb, var(--wpo-accent) 9%, transparent);
}
.wpo-chip .wpo-timer {
	font-weight: 700;
}
.wpo-chip.wpo-is-expired {
	display: none;
}
.woocommerce span.onsale.wpo-onsale,
span.onsale.wpo-onsale {
	min-width: 0;
	min-height: 0;
	padding: 4px 10px;
	border-radius: 999px;
	line-height: 1.6;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}

/* ==========================================================================
   Announcement bar
   Styles: gradient · dark · light · split · ticker
   Effects: flow · shine · stripes · sparkles · aurora
   Layout switches on the bar's own width (container query), so it adapts
   the same way on phones, laptops and in the settings preview.
   ========================================================================== */
.wpo-topbar {
	--tb-bg: linear-gradient(90deg, var(--wpo-accent), var(--wpo-accent-2));
	--tb-fg: #fff;
	--tb-box-bg: rgba(255, 255, 255, .96);
	--tb-box-fg: var(--wpo-accent);
	--tb-btn-bg: #fff;
	--tb-btn-fg: var(--wpo-accent);
	--tb-badge-bg: rgba(0, 0, 0, .18);
	--tb-badge-fg: #fff;
	--fx-color: rgba(255, 255, 255, .22);
	--fx-flow: 1;
	--fx-glow-1: rgba(255, 255, 255, .45);
	--fx-glow-2: var(--wpo-accent-2);
	container-type: inline-size;
	position: relative;
	z-index: 9999;
	overflow: hidden;
	direction: rtl;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tb-fg);
	background: var(--tb-bg);
	transition: opacity .3s, transform .3s;
}
.wpo-topbar--fixed {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
}
.wpo-topbar--sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}
@media (max-width: 600px) {
	.wpo-topbar--sticky {
		top: 0;
	}
}
.wpo-topbar.is-closing {
	opacity: 0;
	transform: translateY(-100%);
}
.wpo-topbar.wpo-is-expired {
	display: none;
}
.wpo-topbar__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1240px;
	min-height: 54px;
	margin: 0 auto;
	padding: 8px 56px;
}
.wpo-topbar__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	color: var(--tb-badge-fg);
	background: var(--tb-badge-bg);
}
.wpo-topbar__badge .wpo-icon {
	font-size: 16px;
	animation: wpo-shake 2.6s ease-in-out infinite;
}
.wpo-topbar__badge[data-empty] .wpo-topbar__badge-text {
	display: none;
}
.wpo-topbar__msg {
	flex: 1 1 auto;
	min-width: 0;
	font-size: var(--tb-font, 14px);
	font-weight: 700;
}
.wpo-topbar__text {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.wpo-tb-mobile,
.wpo-topbar__marquee {
	display: none;
}
.wpo-topbar__actions {
	display: contents;
}
.wpo-topbar__badge { order: 1; }
.wpo-topbar__msg { order: 3; }
.wpo-topbar__timer { order: 5; }
.wpo-topbar__btn { order: 6; }
.wpo-cta--before_text .wpo-topbar__btn { order: 2; }
.wpo-cta--after_text .wpo-topbar__btn { order: 4; }

/* Compact countdown */
.wpo-topbar .wpo-timer {
	gap: 4px;
	align-items: center;
}
.wpo-topbar .wpo-timer__unit {
	min-width: 0;
	flex-direction: row;
	align-items: baseline;
	gap: 3px;
	padding: 4px 8px;
	border-radius: 8px;
	color: var(--tb-box-fg);
	background: var(--tb-box-bg);
	box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35);
}
.wpo-topbar .wpo-timer__num {
	width: auto;
	height: auto;
	padding: 0;
	font-size: 15px;
	font-weight: 900;
	color: inherit;
	background: none;
	box-shadow: none;
	border-radius: 0;
}
.wpo-topbar .wpo-timer__label {
	font-size: 10px;
	font-weight: 600;
	opacity: .75;
}
.wpo-topbar .wpo-timer__sep {
	height: auto;
	font-size: 13px;
	align-self: center;
	color: var(--tb-fg);
	opacity: .6;
}

.wpo-topbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 14px 7px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	text-decoration: none !important;
	color: var(--tb-btn-fg) !important;
	background: var(--tb-btn-bg);
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
	transition: transform .2s, box-shadow .2s;
}
.wpo-topbar__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5);
}
.wpo-topbar__btn .wpo-icon {
	font-size: 14px;
	transition: transform .2s;
}
.wpo-topbar__btn:hover .wpo-icon {
	transform: translateX(-3px);
}
[dir="ltr"] .wpo-topbar__btn .wpo-icon {
	transform: scaleX(-1);
}

.wpo-topbar .wpo-topbar__close {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	inset-inline-end: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-family: inherit;
	font-size: 19px;
	line-height: 1;
	color: var(--tb-fg);
	background: var(--tb-close-bg, rgba(127, 127, 127, .22));
	transform: translateY(-50%);
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.wpo-topbar .wpo-topbar__close:hover,
.wpo-topbar .wpo-topbar__close:focus,
.wpo-topbar .wpo-topbar__close:active {
	color: var(--tb-fg);
	background: var(--tb-close-bg-hover, rgba(127, 127, 127, .38));
	box-shadow: none;
}
.wpo-topbar .wpo-topbar__close:hover {
	transform: translateY(-50%) rotate(90deg);
}
.wpo-topbar .wpo-topbar__close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* --- Style: dark --------------------------------------------------------- */
.wpo-tb--dark {
	--tb-bg:
		radial-gradient(420px 120px at 85% 0%, color-mix(in srgb, var(--wpo-accent) 45%, transparent), transparent 70%),
		radial-gradient(360px 120px at 10% 100%, color-mix(in srgb, var(--wpo-accent-2) 35%, transparent), transparent 70%),
		#0d1020;
	--tb-box-bg: rgba(255, 255, 255, .07);
	--tb-box-fg: #fff;
	--tb-btn-bg: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	--tb-btn-fg: #fff;
	--tb-badge-bg: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	--fx-color: rgba(255, 255, 255, .1);
	--fx-flow: .28;
	--fx-glow-1: var(--wpo-accent);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.wpo-tb--dark .wpo-timer__unit {
	border: 1px solid rgba(255, 255, 255, .14);
}
.wpo-tb--dark .wpo-timer__num {
	text-shadow: 0 0 10px var(--wpo-accent), 0 0 3px var(--wpo-accent);
}
.wpo-tb--dark .wpo-topbar__btn {
	box-shadow: 0 0 18px -4px var(--wpo-accent);
}

/* --- Style: light -------------------------------------------------------- */
.wpo-tb--light {
	--tb-bg: linear-gradient(90deg, color-mix(in srgb, var(--wpo-accent) 9%, #fff), color-mix(in srgb, var(--wpo-accent-2) 12%, #fff));
	--tb-fg: #1f2430;
	--tb-box-bg: var(--wpo-accent);
	--tb-box-fg: #fff;
	--tb-btn-bg: var(--wpo-accent);
	--tb-btn-fg: #fff;
	--tb-badge-bg: color-mix(in srgb, var(--wpo-accent) 14%, #fff);
	--tb-badge-fg: var(--wpo-accent);
	--fx-color: color-mix(in srgb, var(--wpo-accent) 12%, transparent);
	--fx-flow: .14;
	--fx-glow-1: color-mix(in srgb, var(--wpo-accent) 40%, transparent);
	--fx-glow-2: color-mix(in srgb, var(--wpo-accent-2) 45%, transparent);
	--fx-spark: var(--wpo-accent);
	--fx-spark-2: var(--wpo-accent-2);
	border-bottom: 1px solid color-mix(in srgb, var(--wpo-accent) 18%, transparent);
}

/* --- Style: split -------------------------------------------------------- */
.wpo-tb--split {
	--tb-bg: #151827;
	--tb-box-bg: linear-gradient(180deg, var(--wpo-accent), color-mix(in srgb, var(--wpo-accent) 75%, #000));
	--tb-box-fg: #fff;
	--tb-badge-bg: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
	--fx-color: rgba(255, 255, 255, .08);
	--fx-flow: .2;
	--fx-glow-1: var(--wpo-accent);
}
.wpo-tb--split .wpo-topbar__inner {
	padding-block: 0;
}
.wpo-tb--split .wpo-topbar__badge {
	align-self: stretch;
	margin-inline-start: -56px;
	padding: 0 22px 0 34px;
	border-radius: 0;
	font-size: 14px;
	clip-path: polygon(100% 0, 100% 100%, 18px 100%, 0 0);
}
[dir="ltr"] .wpo-tb--split .wpo-topbar__badge {
	padding: 0 34px 0 22px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

/* --- Style: ticker ------------------------------------------------------- */
.wpo-tb--ticker {
	--tb-bg: linear-gradient(90deg, var(--wpo-accent-2), var(--wpo-accent));
	--tb-badge-bg: #fff;
	--tb-badge-fg: var(--wpo-accent);
}
.wpo-tb--ticker .wpo-topbar__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.wpo-tb--ticker .wpo-topbar__marquee {
	display: block;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wpo-topbar__track {
	display: inline-flex;
	width: max-content;
	animation: wpo-ticker 28s linear infinite;
}
.wpo-topbar__track span {
	padding-inline: 28px;
	white-space: nowrap;
}
.wpo-topbar__track span::after {
	content: "✦";
	margin-inline-start: 56px;
	opacity: .7;
}
.wpo-tb--ticker:hover .wpo-topbar__track {
	animation-play-state: paused;
}
/* Persian tickers move left-to-right: new text enters from the left. */
@keyframes wpo-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(50%); }
}
[dir="ltr"] .wpo-topbar__track {
	animation-name: wpo-ticker-ltr;
}
@keyframes wpo-ticker-ltr {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* --- Background effects --------------------------------------------------
   One layer (.wpo-fx) shared by the announcement bar and the product countdown.
   Effects only add light on top, so they work over any background color,
   gradient or image. Colors come from --fx-* variables set by each style.
   -------------------------------------------------------------------------- */
:where(.wpo-topbar, .wpo-ptimer) {
	--fx-color: rgba(255, 255, 255, .22);
	--fx-flow: .35;
	--fx-glow-1: rgba(255, 255, 255, .45);
	--fx-glow-2: var(--wpo-accent-2);
	--fx-spark: #fff;
	--fx-spark-2: rgba(255, 255, 255, .7);
}
.wpo-fx {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}
.wpo-fx::before,
.wpo-fx::after,
.wpo-fx i {
	position: absolute;
	pointer-events: none;
}
.wpo-fx i {
	display: none;
}

/* flow: the brand gradient drifts back and forth */
.wpo-fx--flow {
	opacity: var(--fx-flow);
	background: linear-gradient(100deg, var(--wpo-accent), var(--wpo-accent-2), var(--wpo-accent), var(--wpo-accent-2));
	background-size: 300% 100%;
	animation: wpo-flow 9s ease-in-out infinite alternate;
}
[style*="background"] > .wpo-fx--flow {
	opacity: .3;
}
@keyframes wpo-flow {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

/* shine: a slanted band of light sweeps across */
.wpo-fx--shine i:first-child {
	display: block;
	top: -60%;
	bottom: -60%;
	left: -25%;
	width: 140px;
	background: linear-gradient(90deg, transparent, var(--fx-color), rgba(255, 255, 255, .55), var(--fx-color), transparent);
	transform: skewX(-22deg);
	animation: wpo-shine 5s ease-in-out infinite;
}
@keyframes wpo-shine {
	0%, 15% { left: -25%; }
	65%, 100% { left: 115%; }
}

/* gradient-wave: a wide soft wave of light */
.wpo-fx--gradient-wave::before {
	content: "";
	top: 0;
	left: -60%;
	width: 60%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
	animation: wpo-gradient-wave 4.5s ease-in-out infinite;
}
@keyframes wpo-gradient-wave {
	0% { left: -60%; }
	100% { left: 130%; }
}

/* shimmer: a quick glossy reflection */
.wpo-fx--shimmer::before {
	content: "";
	top: 0;
	left: -60%;
	width: 45%;
	height: 100%;
	background: linear-gradient(75deg, transparent 0%, rgba(255, 255, 255, .4) 50%, transparent 100%);
	animation: wpo-shimmer 3.2s ease-in-out infinite;
}
@keyframes wpo-shimmer {
	0% { left: -60%; }
	60%, 100% { left: 140%; }
}

/* floating-bubbles: small bubbles rising */
.wpo-fx--floating-bubbles::before {
	content: "";
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .16) 2px, transparent 2.5px),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, .16) 1px, transparent 1.5px),
		radial-gradient(circle at 40% 70%, rgba(255, 255, 255, .16) 1.5px, transparent 2px);
	background-size: 60px 60px, 30px 30px, 40px 40px;
	animation: wpo-bubbles 24s linear infinite;
}
@keyframes wpo-bubbles {
	to { background-position: 0 -120px, 0 -120px, 0 -120px; }
}

/* pulse-glow: an inner glow that breathes */
.wpo-fx--pulse-glow {
	animation: wpo-pulse-glow 3s ease-in-out infinite alternate;
}
@keyframes wpo-pulse-glow {
	from { box-shadow: inset 0 0 20px rgba(255, 255, 255, .15); }
	to { box-shadow: inset 0 0 40px rgba(255, 255, 255, .35); }
}

/* sliding-diagonal: diagonal stripes slide sideways (seamless loop) */
.wpo-fx--sliding-diagonal {
	background-image: repeating-linear-gradient(-45deg, var(--fx-color) 0 12px, transparent 12px 24px);
	background-size: 33.94px 33.94px;
	animation: wpo-diagonal 1.6s linear infinite;
}
@keyframes wpo-diagonal {
	to { background-position: 33.94px 0; }
}

/* aurora: multicolor northern lights wash */
.wpo-fx--aurora::before {
	content: "";
	inset: -50%;
	background: linear-gradient(45deg, rgba(102, 126, 234, .35), rgba(240, 147, 251, .35), rgba(245, 87, 108, .35), rgba(118, 75, 162, .35));
	background-size: 400% 400%;
	animation: wpo-aurora 12s ease infinite;
}
@keyframes wpo-aurora {
	0%, 100% { background-position: 0% 50%; }
	25% { background-position: 100% 50%; }
	50% { background-position: 100% 100%; }
	75% { background-position: 0% 100%; }
}

/* lights: two soft blobs of light float around */
.wpo-fx--lights i {
	display: block;
	top: -120%;
	width: 38%;
	height: 340%;
	border-radius: 50%;
	filter: blur(22px);
	opacity: .55;
}
.wpo-fx--lights i:first-child {
	left: -10%;
	background: var(--fx-glow-1);
	animation: wpo-lights-a 11s ease-in-out infinite alternate;
}
.wpo-fx--lights i:nth-child(2) {
	right: -10%;
	background: var(--fx-glow-2);
	animation: wpo-lights-b 13s ease-in-out infinite alternate;
}
@keyframes wpo-lights-a {
	to { transform: translateX(160%) scale(1.2); }
}
@keyframes wpo-lights-b {
	to { transform: translateX(-150%) scale(.85); }
}

/* sparkles: drifting, twinkling dots */
.wpo-fx--sparkles {
	opacity: .9;
	background-image:
		radial-gradient(circle, var(--fx-spark) 0 1.6px, transparent 2.6px),
		radial-gradient(circle, var(--fx-spark-2) 0 1.3px, transparent 2.3px),
		radial-gradient(circle, var(--fx-spark-2) 0 1.8px, transparent 2.8px);
	background-size: 140px 46px, 90px 38px, 210px 54px;
	background-position: 0 0, 40px 12px, 90px 20px;
	animation: wpo-sparkle-drift 14s linear infinite;
}
.wpo-fx--sparkles i:nth-child(2) {
	display: block;
	inset: 0;
	background-image:
		radial-gradient(circle, var(--fx-spark) 0 2.2px, transparent 3.4px),
		radial-gradient(circle, var(--fx-spark) 0 1.6px, transparent 2.8px);
	background-size: 170px 50px, 120px 44px;
	background-position: 60px 8px, 10px 26px;
	animation: wpo-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes wpo-sparkle-drift {
	to { background-position: 140px -46px, -90px -38px, 210px -54px; }
}
@keyframes wpo-twinkle {
	from { opacity: .1; }
	to { opacity: 1; }
}

/* stars-twinkle: a few stars blinking */
.wpo-fx--stars-twinkle::before,
.wpo-fx--stars-twinkle::after {
	content: "";
	inset: 0;
	background-repeat: no-repeat;
}
.wpo-fx--stars-twinkle::before {
	background-image:
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1.5px, transparent 2px),
		radial-gradient(circle, #fff 1px, transparent 1.5px);
	background-size: 6px 6px;
	background-position: 12% 25%, 65% 30%, 40% 80%;
	animation: wpo-stars 2s ease-in-out infinite alternate;
}
.wpo-fx--stars-twinkle::after {
	background-image:
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1.5px, transparent 2px);
	background-size: 6px 6px;
	background-position: 35% 65%, 88% 55%, 78% 18%;
	animation: wpo-stars 2.4s ease-in-out infinite alternate-reverse;
}
@keyframes wpo-stars {
	0% { opacity: .15; }
	100% { opacity: .85; }
}

/* sparkle-glitter: scattered quick sparkles */
.wpo-fx--sparkle-glitter::before {
	content: "";
	inset: 0;
	background-image:
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1px, transparent 1.5px),
		radial-gradient(circle, #fff 1px, transparent 1.5px);
	background-size: 25px 25px;
	background-position: 5% 30%, 25% 70%, 45% 20%, 70% 60%, 90% 35%;
	background-repeat: no-repeat;
	animation: wpo-glitter 1.1s steps(2, jump-none) infinite alternate;
}
@keyframes wpo-glitter {
	0% { opacity: .15; }
	50% { opacity: .9; }
	100% { opacity: .3; }
}

/* confetti-fall: colorful confetti */
.wpo-fx--confetti-fall::before,
.wpo-fx--confetti-fall::after {
	content: "";
	inset: -20px 0;
}
.wpo-fx--confetti-fall::before {
	background-image:
		radial-gradient(circle, #fde68a 2px, transparent 2.5px),
		radial-gradient(circle, #93c5fd 2px, transparent 2.5px);
	background-size: 40px 40px, 55px 55px;
	animation: wpo-confetti-a 3s linear infinite;
}
.wpo-fx--confetti-fall::after {
	background-image:
		radial-gradient(circle, #fca5a5 2px, transparent 2.5px),
		radial-gradient(circle, #86efac 2px, transparent 2.5px);
	background-size: 45px 45px, 60px 60px;
	animation: wpo-confetti-b 3.6s linear infinite;
}
@keyframes wpo-confetti-a {
	from { background-position: 0 0, 20px 0; }
	to { background-position: 0 440px, 20px 440px; }
}
@keyframes wpo-confetti-b {
	from { background-position: 10px 0, 30px 0; }
	to { background-position: 10px 540px, 30px 540px; }
}

/* snow-fall: gentle snow */
.wpo-fx--snow-fall::before,
.wpo-fx--snow-fall::after {
	content: "";
	inset: -20px 0;
}
.wpo-fx--snow-fall::before {
	background-image:
		radial-gradient(circle, #fff 1.5px, transparent 2px),
		radial-gradient(circle, #fff 1px, transparent 1.5px);
	background-size: 30px 30px, 22px 22px;
	animation: wpo-snow-a 6s linear infinite;
}
.wpo-fx--snow-fall::after {
	background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
	background-size: 40px 40px;
	opacity: .7;
	animation: wpo-snow-b 8s linear infinite;
}
@keyframes wpo-snow-a {
	from { background-position: 0 0, 15px 0; }
	to { background-position: 0 330px, 15px 330px; }
}
@keyframes wpo-snow-b {
	from { background-position: 0 0; }
	to { background-position: 0 320px; }
}

/* neon-pulse-border: a glowing frame in the text color */
.wpo-fx--neon-pulse-border {
	animation: wpo-neon 2s ease-in-out infinite alternate;
}
@keyframes wpo-neon {
	from { box-shadow: inset 0 0 8px 0 currentColor, inset 0 0 2px 0 currentColor; }
	to { box-shadow: inset 0 0 22px 2px currentColor, inset 0 0 6px 0 currentColor; }
}

/* hue-shift: the whole element slowly cycles through colors */
.wpo-fxhost--hue-shift {
	animation: wpo-hue 8s linear infinite;
}
@keyframes wpo-hue {
	from { filter: hue-rotate(0deg); }
	to { filter: hue-rotate(360deg); }
}

/* ripple-rings: rings spreading from the center */
.wpo-fx--ripple-rings::before,
.wpo-fx--ripple-rings::after {
	content: "";
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	animation: wpo-ripple 2.4s ease-out infinite;
}
.wpo-fx--ripple-rings::after {
	animation-delay: 1.2s;
}
@keyframes wpo-ripple {
	0% { transform: scale(1); opacity: .8; }
	100% { transform: scale(18); opacity: 0; }
}

/* wave-flow: a wave running along the bottom edge */
.wpo-fx--wave-flow::after {
	content: "";
	left: -25%;
	right: -25%;
	bottom: -6px;
	height: 16px;
	background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, .4) 40%, transparent 62%);
	background-size: 50px 16px;
	background-repeat: repeat-x;
	opacity: .7;
	animation: wpo-wave 4s linear infinite;
}
@keyframes wpo-wave {
	to { background-position: 50px 0; }
}

/* glow-orb: a soft orb of light gliding across */
.wpo-fx--glow-orb::before {
	content: "";
	top: 50%;
	left: -5%;
	width: 120px;
	height: 120px;
	margin-top: -60px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, transparent 70%);
	filter: blur(4px);
	animation: wpo-orb 6s ease-in-out infinite;
}
@keyframes wpo-orb {
	0%, 100% { left: -5%; }
	50% { left: 95%; }
}

@media (prefers-reduced-motion: reduce) {
	.wpo-fx,
	.wpo-fx::before,
	.wpo-fx::after,
	.wpo-fx i,
	.wpo-fxhost--hue-shift {
		animation: none !important;
	}
}

/* --- Rotating messages ---------------------------------------------------- */
.wpo-slides {
	display: grid;
	perspective: 600px;
}
.wpo-slide {
	grid-area: 1 / 1;
	display: block;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.wpo-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .5s ease, transform .5s ease, visibility 0s;
}
.wpo-slides--slide .wpo-slide {
	transform: translateX(-24px);
}
.wpo-slides--zoom .wpo-slide {
	transform: scale(.85);
}
.wpo-slides--flip .wpo-slide {
	transform: rotateX(90deg);
	transform-origin: 50% 50%;
}
.wpo-tb--ticker .wpo-slides {
	display: none;
}

/* --- Frosted glass countdown --------------------------------------------- */
.wpo-timer.wpo-timer--glass {
	gap: 8px;
	align-items: center;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .15);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.wpo-timer.wpo-timer--glass .wpo-timer__unit {
	min-width: 35px;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0;
	border: 0;
	color: inherit;
	background: none;
	box-shadow: none;
}
.wpo-timer.wpo-timer--glass .wpo-timer__num {
	width: auto;
	height: auto;
	padding: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	color: inherit;
	background: none;
	box-shadow: none;
	text-shadow: none;
}
.wpo-timer.wpo-timer--glass .wpo-timer__label {
	display: block;
	font-size: 10px;
	opacity: .9;
}
.wpo-timer.wpo-timer--glass .wpo-timer__sep {
	height: auto;
	align-self: center;
	font-size: 16px;
	color: inherit;
	opacity: .8;
}
.wpo-tb--light .wpo-timer--glass,
.wpo-ptimer--boxes .wpo-timer--glass,
.wpo-ptimer--minimal .wpo-timer--glass {
	background: color-mix(in srgb, var(--wpo-accent) 10%, transparent);
}

/* --- Bar style: classic (centered rotating messages, glass countdown) ---- */
.wpo-tb--classic {
	--tb-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
	--tb-btn-bg: #fff;
	--tb-btn-fg: #6366f1;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.wpo-tb--classic .wpo-topbar__inner {
	gap: 24px;
	min-height: 72px;
	padding: 10px 24px 10px 24px;
	padding-inline-start: 64px;
}
.wpo-tb--classic .wpo-topbar__badge {
	display: none;
}
.wpo-tb--classic .wpo-topbar__msg {
	font-weight: 500;
	text-align: center;
}
.wpo-tb--classic .wpo-topbar__btn {
	padding: 10px 22px;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.wpo-tb--classic .wpo-topbar__btn .wpo-icon {
	display: none;
}
.wpo-topbar.wpo-tb--classic .wpo-topbar__close {
	--tb-close-bg: rgba(255, 255, 255, .18);
	--tb-close-bg-hover: rgba(255, 255, 255, .32);
	inset-inline-start: 16px;
	inset-inline-end: auto;
	width: 32px;
	height: 32px;
}

/* --- Product countdown: classic + effect support ------------------------- */
.wpo-ptimer {
	overflow: hidden;
}
.wpo-ptimer > :not(.wpo-fx) {
	position: relative;
	z-index: 1;
}
.wpo-ptimer--classic {
	--fx-flow: .35;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.wpo-ptimer--classic .wpo-ptimer__icon {
	background: rgba(255, 255, 255, .18);
}
.wpo-ptimer--classic .wpo-progress__track {
	background: rgba(255, 255, 255, .25);
}
.wpo-ptimer--classic .wpo-progress__bar {
	background: #fff;
}
.wpo-ptimer--classic .wpo-progress__text {
	color: inherit;
	opacity: .9;
}
.wpo-ptimer--boxes,
.wpo-ptimer--minimal {
	--fx-color: color-mix(in srgb, var(--wpo-accent) 12%, transparent);
	--fx-glow-1: color-mix(in srgb, var(--wpo-accent) 35%, transparent);
	--fx-glow-2: color-mix(in srgb, var(--wpo-accent-2) 40%, transparent);
	--fx-spark: var(--wpo-accent);
	--fx-spark-2: var(--wpo-accent-2);
	--fx-flow: .12;
}

/* --- Phones and narrow containers ---------------------------------------- */
@container (max-width: 767px) {
	.wpo-topbar__inner {
		flex-wrap: wrap;
		gap: 6px 8px;
		min-height: 0;
		padding: 8px 12px 9px 44px;
	}
	.wpo-topbar__badge {
		padding: 4px 8px;
		font-size: 11px;
	}
	.wpo-topbar__badge-text {
		display: none;
	}
	.wpo-topbar__msg {
		flex: 1 1 0;
		align-self: center;
		font-size: var(--tb-font-m, 13px);
	}
	.wpo-slide {
		align-self: center;
		white-space: normal;
		line-height: 1.6;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.wpo-tb-desktop {
		display: none;
	}
	.wpo-tb-mobile {
		display: block;
		white-space: normal;
		line-height: 1.6;
	}
	.wpo-topbar__actions {
		display: flex;
		align-items: center;
		flex: 1 1 100%;
		justify-content: space-between;
		gap: 8px;
		order: 10;
	}
	.wpo-topbar .wpo-topbar__actions .wpo-topbar__timer {
		order: 1;
	}
	.wpo-topbar .wpo-topbar__actions .wpo-topbar__btn {
		order: 2;
	}
	/* classic: countdown on top, message, then a full-width button */
	.wpo-tb--classic .wpo-topbar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px 14px;
	}
	.wpo-tb--classic .wpo-topbar__actions {
		display: contents;
	}
	.wpo-topbar.wpo-tb--classic .wpo-topbar__timer {
		order: 1;
		align-self: center;
	}
	.wpo-topbar.wpo-tb--classic .wpo-topbar__msg {
		order: 2;
	}
	.wpo-topbar.wpo-tb--classic .wpo-topbar__btn {
		order: 3;
		justify-content: center;
		padding: 10px 16px;
	}
	.wpo-topbar.wpo-tb--classic .wpo-topbar__close {
		top: 10px;
		inset-inline-start: 10px;
		width: 26px;
		height: 26px;
	}
	.wpo-timer.wpo-timer--glass {
		gap: 6px;
		padding: 8px 12px;
	}
	.wpo-timer.wpo-timer--glass .wpo-timer__num {
		font-size: 16px;
	}
	.wpo-timer.wpo-timer--glass .wpo-timer__unit {
		min-width: 30px;
	}
	.wpo-topbar .wpo-timer__unit {
		padding: 3px 6px;
	}
	.wpo-topbar .wpo-timer__num {
		font-size: 13px;
	}
	.wpo-topbar__btn {
		padding: 5px 10px 5px 8px;
		font-size: 12px;
	}
	.wpo-topbar .wpo-topbar__close {
		top: 8px;
		inset-inline-end: 8px;
		width: 26px;
		height: 26px;
		font-size: 17px;
		transform: none;
	}
	.wpo-topbar .wpo-topbar__close:hover {
		transform: rotate(90deg);
	}
	.wpo-tb--split .wpo-topbar__inner {
		padding-block: 8px 9px;
	}
	.wpo-tb--split .wpo-topbar__badge {
		align-self: center;
		margin: 0;
		padding: 4px 8px;
		border-radius: 999px;
		clip-path: none;
	}
}
@container (max-width: 420px) {
	.wpo-topbar .wpo-timer__label {
		display: none;
	}
	.wpo-topbar .wpo-timer__unit {
		min-width: 26px;
		justify-content: center;
	}
}

@keyframes wpo-shake {
	0%, 80%, 100% { transform: rotate(0); }
	85% { transform: rotate(-14deg); }
	90% { transform: rotate(12deg); }
	95% { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
	.wpo-topbar *,
	.wpo-fx {
		animation: none !important;
	}
}

/* Standalone [wpo_timer] */
.wpo-standalone .wpo-timer__num {
	color: #fff;
	background: linear-gradient(135deg, var(--wpo-accent), var(--wpo-accent-2));
}

.wpo-admin-hint {
	padding: 14px 18px;
	margin: 10px 0;
	border: 1px dashed #d63638;
	border-radius: 10px;
	direction: rtl;
	font-size: 13px;
	color: #8a2424;
	background: #fff5f5;
}

@media (prefers-reduced-motion: reduce) {
	.wpo-offers *,
	.wpo-ptimer *,
	.wpo-topbar * {
		animation: none !important;
		transition: none !important;
	}
}
