.shpub-popup {
	position: fixed;
	left: 16px;
	right: 16px;
	z-index: 99999;
	color: #1d2327;
	font-family: inherit;
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.shpub-popup[hidden] {
	display: none;
}

.shpub-popup.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.shpub-popup--top {
	top: 16px;
}

.shpub-popup--clean.shpub-popup--top,
.shpub-popup--design-two.shpub-popup--top {
	top: 0;
}

.shpub-popup--bottom {
	bottom: 16px;
	transform: translateY(12px);
}

.shpub-popup__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px 18px;
	border-radius: 8px;
	background: #fff;
}

.shpub-popup--clean,
.shpub-popup--design-two {
	left: 0;
	right: 0;
	background-image:
		var(--shpub-background-image),
		linear-gradient(90deg, var(--shpub-gradient-start, #0b718f), var(--shpub-background-color, #168bb0) 50%, var(--shpub-gradient-end, #168bb0));
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.shpub-popup--clean .shpub-popup__inner,
.shpub-popup--design-two .shpub-popup__inner {
	position: relative;
	overflow: hidden;
	max-width: 1180px;
	min-height: 74px;
	padding: 6px 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--shpub-content-color, #fff);
}

.shpub-sale-bar {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 2.1fr 1.25fr 1.15fr;
	align-items: center;
	gap: 16px;
	width: 100%;
	color: var(--shpub-content-color, #fff);
}

.shpub-sale-bar__brand {
	text-align: center;
	text-shadow:
		0 2px 2px rgba(0, 0, 0, 0.28),
		0 0 8px rgba(255, 255, 255, 0.18);
}

.shpub-sale-bar__brand span {
	display: block;
	color: var(--shpub-sale-text-color, #ffe92f);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(28px, 2.2vw, 39px);
	font-style: italic;
	font-weight: 800;
	line-height: 0.85;
	text-transform: capitalize;
	animation: shpub-sale-text-glow 2.6s ease-in-out infinite;
}

.shpub-sale-bar__brand strong {
	display: block;
	color: var(--shpub-sale-text-color, #ffe92f);
	font-size: clamp(25px, 1.8vw, 33px);
	font-weight: 900;
	line-height: 0.95;
	text-transform: uppercase;
	animation: shpub-sale-text-glow 2.6s ease-in-out infinite;
	animation-delay: 0.16s;
}

.shpub-sale-bar--design-two .shpub-sale-bar__brand {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	justify-self: center;
	min-width: 150px;
	min-height: 58px;
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.14);
	text-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
}

.shpub-sale-bar--design-two .shpub-sale-bar__brand::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.22) 65%, transparent 100%);
	background-size: 240% 100%;
	opacity: 0.85;
	animation: shpub-design-two-border-light 2.8s linear infinite;
}

.shpub-sale-bar--design-two .shpub-sale-bar__brand span,
.shpub-sale-bar--design-two .shpub-sale-bar__brand strong {
	position: relative;
	z-index: 1;
}

.shpub-sale-bar--design-two .shpub-sale-bar__brand span {
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(14px, 0.9vw, 17px);
	font-style: normal;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
}

.shpub-sale-bar--design-two .shpub-sale-bar__brand strong {
	font-size: clamp(24px, 1.75vw, 32px);
	line-height: 1;
}

@keyframes shpub-sale-text-glow {
	0%,
	100% {
		filter: brightness(1);
		text-shadow:
			0 2px 2px rgba(0, 0, 0, 0.28),
			0 0 6px rgba(255, 255, 255, 0.12);
	}

	50% {
		filter: brightness(1.16);
		text-shadow:
			0 2px 2px rgba(0, 0, 0, 0.28),
			0 0 14px rgba(255, 255, 255, 0.42);
	}
}

@keyframes shpub-design-two-border-light {
	0% {
		background-position: 160% 0;
	}

	100% {
		background-position: -160% 0;
	}
}

.shpub-sale-bar__message {
	color: var(--shpub-main-text-color, #fff);
	text-align: center;
	font-size: clamp(18px, 1.25vw, 23px);
	font-weight: 800;
	line-height: 1.2;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.shpub-sale-bar__message span,
.shpub-sale-bar__message strong {
	display: inline;
}

.shpub-sale-bar__message strong {
	color: #fff229;
}

.shpub-sale-bar__countdown {
	color: var(--shpub-timer-heading-color, #fff);
	text-align: center;
}

.shpub-sale-bar__countdown p,
.shpub-sale-bar__coupon p {
	margin: 0 0 4px;
	color: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.shpub-sale-bar__countdown > div {
	display: grid;
	grid-template-columns: repeat(3, max-content);
	justify-content: center;
	gap: 4px;
}

.shpub-sale-bar__countdown span {
	display: block;
	min-width: 54px;
	padding: 2px 5px;
	border: 1px solid rgba(47, 64, 88, 0.22);
	border-radius: 4px;
	background: var(--shpub-timer-background-color, #fff);
	color: var(--shpub-timer-text-color, #2f4058);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.shpub-sale-bar__countdown span strong,
.shpub-sale-bar__countdown span small {
	color: var(--shpub-timer-text-color, #2f4058);
}

.shpub-sale-bar__countdown strong {
	display: block;
	font-size: 18px;
	line-height: 0.95;
}

.shpub-sale-bar--design-two .shpub-sale-bar__countdown > div {
	gap: 6px;
}

.shpub-sale-bar--design-two .shpub-sale-bar__countdown span {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 35px;
	min-width: 35px;
	height: 35px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.58);
	border-radius: 50%;
	font-size: 0;
	text-transform: uppercase;
}

.shpub-sale-bar--design-two .shpub-sale-bar__countdown strong {
	font-size: 14px;
}

.shpub-sale-bar__coupon {
	color: var(--shpub-content-color, #fff);
	text-align: center;
}

.shpub-popup__button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: var(--shpub-coupon-background-color, #f8fbff);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.shpub-popup--clean .shpub-popup__button,
.shpub-popup--design-two .shpub-popup__button {
	position: relative;
	z-index: 1;
	min-width: 150px;
	min-height: 34px;
	padding: 0 18px 0 44px;
	border: 2px dotted rgba(47, 64, 88, 0.55);
	border-radius: 999px;
	background: var(--shpub-coupon-background-color, #f8fbff);
	color: var(--shpub-coupon-text-color, #2f4058);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.shpub-popup--clean .shpub-popup__button::before,
.shpub-popup--design-two .shpub-popup__button::before {
	content: "\2702";
	position: absolute;
	top: 50%;
	left: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: var(--shpub-coupon-background-color, #f8fbff);
	color: var(--shpub-coupon-text-color, #2f4058);
	font-size: 13px;
	line-height: 1;
	transform: translateY(-50%);
}

.shpub-popup__button:hover,
.shpub-popup__button:focus {
	color: #fff;
	filter: brightness(0.92);
}

.shpub-popup--clean .shpub-popup__button:hover,
.shpub-popup--clean .shpub-popup__button:focus,
.shpub-popup--design-two .shpub-popup__button:hover,
.shpub-popup--design-two .shpub-popup__button:focus {
	color: var(--shpub-coupon-text-color, #2f4058);
	filter: brightness(0.96);
}

.shpub-popup__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f0f1;
	color: #1d2327;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.shpub-popup--clean .shpub-popup__close,
.shpub-popup--design-two .shpub-popup__close {
	position: absolute;
	top: 50%;
	right: 14px;
	z-index: 3;
	width: 24px;
	min-width: 24px;
	height: 24px;
	min-height: 24px;
	padding: 0;
	border-radius: 50%;
	background: rgba(42, 58, 75, 0.88);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	aspect-ratio: 1;
	transform: translateY(-50%);
}

.shpub-popup__close:hover,
.shpub-popup__close:focus {
	background: #dcdcde;
}

.shpub-popup--clean .shpub-popup__close:hover,
.shpub-popup--clean .shpub-popup__close:focus,
.shpub-popup--design-two .shpub-popup__close:hover,
.shpub-popup--design-two .shpub-popup__close:focus {
	background: rgba(42, 58, 75, 1);
}

@media (max-width: 900px) {
	.shpub-popup__inner {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.shpub-popup--clean .shpub-popup__inner,
	.shpub-popup--design-two .shpub-popup__inner {
		max-width: calc(100vw - 32px);
		padding: 14px 18px;
	}

	.shpub-sale-bar {
		grid-template-columns: 1fr 2fr;
	}

}

@media (max-width: 640px) {
	.shpub-popup {
		left: 10px;
		right: 10px;
	}

	.shpub-popup--clean,
	.shpub-popup--design-two {
		left: 0;
		right: 0;
	}

	.shpub-popup__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		padding: 14px;
	}

	.shpub-popup--clean .shpub-popup__inner,
	.shpub-popup--design-two .shpub-popup__inner {
		min-height: auto;
		max-width: calc(100vw - 20px);
		padding: 14px 36px 14px 14px;
	}

	.shpub-sale-bar {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.shpub-popup__button {
		width: 100%;
	}

	.shpub-popup--clean .shpub-popup__button,
	.shpub-popup--design-two .shpub-popup__button {
		width: min(100%, 280px);
		min-width: 0;
		margin: 8px auto 0;
		padding-right: 18px;
		padding-left: 44px;
	}

	.shpub-popup__close {
		position: absolute;
		top: 8px;
		right: 8px;
		width: 32px;
		height: 32px;
	}

	.shpub-popup--clean .shpub-popup__close,
	.shpub-popup--design-two .shpub-popup__close {
		top: 12px;
		right: 10px;
		transform: none;
	}

	.shpub-sale-bar--design-two .shpub-sale-bar__brand {
		min-width: 132px;
		min-height: 54px;
	}

	.shpub-sale-bar--design-two .shpub-sale-bar__countdown span {
		width: 35px;
		min-width: 35px;
		height: 35px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.shpub-sale-bar__brand span,
	.shpub-sale-bar__brand strong,
	.shpub-sale-bar--design-two .shpub-sale-bar__brand::before {
		animation: none;
	}
}
