/* Clear old/new pricing on shop cards and single-product pages. */
.tbd-price-wrap,
.woocommerce .tbd-price-wrap,
.woocommerce-page .tbd-price-wrap {
	display: inline-flex !important;
	align-items: baseline;
	flex-wrap: nowrap !important;
	gap: 9px;
	max-width: 100%;
	white-space: nowrap;
	vertical-align: middle;
}

.tbd-price-wrap del,
.woocommerce .tbd-price-wrap del,
.woocommerce-page .tbd-price-wrap del,
.woocommerce .price del,
.woocommerce-page .price del {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: .62 !important;
	color: #6f6672 !important;
	font-size: .88em !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	position: static !important;
	order: 1 !important;
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	overflow: visible !important;
	clip: auto !important;
	transform: none !important;
}

.tbd-price-wrap del::before,
.tbd-price-wrap del::after,
.woocommerce .tbd-price-wrap del::before,
.woocommerce .tbd-price-wrap del::after,
.woocommerce-page .tbd-price-wrap del::before,
.woocommerce-page .tbd-price-wrap del::after {
	content: none !important;
	display: none !important;
}

.tbd-price-wrap ins,
.woocommerce .tbd-price-wrap ins,
.woocommerce-page .tbd-price-wrap ins,
.woocommerce .price ins,
.woocommerce-page .price ins {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	color: #e21e7b !important;
	font-size: 1.08em !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	position: static !important;
	order: 2 !important;
	flex: 0 0 auto !important;
	overflow: visible !important;
	clip: auto !important;
	transform: none !important;
}

.tbd-price-wrap del .amount,
.woocommerce .tbd-price-wrap del .amount,
.woocommerce-page .tbd-price-wrap del .amount {
	color: inherit !important;
	text-decoration-line: line-through !important;
	text-decoration-thickness: 2px !important;
	text-decoration-color: #de2c83 !important;
}

.tbd-price-wrap ins .amount,
.woocommerce .tbd-price-wrap ins .amount,
.woocommerce-page .tbd-price-wrap ins .amount {
	color: inherit !important;
}

@media (min-width: 769px) {
	.woocommerce ul.products li.product .price,
	.woocommerce-page ul.products li.product .price,
	ul.products li.product .price,
	.woocommerce .wc-block-grid__product .price,
	.woocommerce-page .wc-block-grid__product .price,
	.wc-block-grid__product .wc-block-grid__product-price {
		overflow: visible !important;
		text-align: left !important;
	}

	.woocommerce ul.products li.product .price .tbd-price-wrap,
	.woocommerce-page ul.products li.product .price .tbd-price-wrap,
	ul.products li.product .price .tbd-price-wrap,
	.woocommerce .wc-block-grid__product .price .tbd-price-wrap,
	.woocommerce-page .wc-block-grid__product .price .tbd-price-wrap,
	.wc-block-grid__product .wc-block-grid__product-price .tbd-price-wrap {
		display: inline-flex !important;
		justify-content: flex-start !important;
		width: auto !important;
		margin-right: auto !important;
		margin-left: 0 !important;
	}
}

/* The percentage badge sits on the product image in archives and galleries. */
ul.products li.product,
.wc-block-grid__product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce .wc-block-grid__product,
.woocommerce-page .wc-block-grid__product,
.woocommerce .astra-shop-thumbnail-wrap,
.woocommerce-page .astra-shop-thumbnail-wrap,
.woocommerce .wc-block-grid__product-image,
.woocommerce-page .wc-block-grid__product-image,
.single-product div.product,
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .woocommerce-product-gallery__wrapper {
	position: relative !important;
}

.woocommerce span.onsale.tbd-sale-badge,
.woocommerce-page span.onsale.tbd-sale-badge,
.tbd-sale-badge {
	box-sizing: border-box !important;
	position: absolute !important;
	top: auto !important;
	bottom: 22px !important;
	left: 12px !important;
	right: auto !important;
	z-index: 12 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 66px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 8px 12px !important;
	border: 2px solid rgba(238, 40, 132, .34) !important;
	border-radius: 999px !important;
	color: #e92682 !important;
	font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: .015em;
	background: rgba(255, 255, 255, .97) !important;
	box-shadow: 0 8px 22px rgba(128, 29, 91, .2) !important;
	backdrop-filter: blur(5px);
}

ul.products li.product > .tbd-sale-badge--archive,
.woocommerce ul.products li.product > .tbd-sale-badge--archive,
.woocommerce-page ul.products li.product > .tbd-sale-badge--archive,
.wc-block-grid__product > .tbd-sale-badge--archive,
.woocommerce .wc-block-grid__product > .tbd-sale-badge--archive,
.woocommerce-page .wc-block-grid__product > .tbd-sale-badge--archive {
	top: var(--tbd-badge-top, 50%) !important;
	bottom: auto !important;
	left: var(--tbd-badge-left, 50%) !important;
	right: auto !important;
	opacity: 0 !important;
	transform: translate(-50%, -50%) !important;
	transition: opacity .16s ease, box-shadow .18s ease !important;
}

ul.products li.product > .tbd-sale-badge--archive.is-positioned,
.woocommerce ul.products li.product > .tbd-sale-badge--archive.is-positioned,
.woocommerce-page ul.products li.product > .tbd-sale-badge--archive.is-positioned,
.wc-block-grid__product > .tbd-sale-badge--archive.is-positioned,
.woocommerce .wc-block-grid__product > .tbd-sale-badge--archive.is-positioned,
.woocommerce-page .wc-block-grid__product > .tbd-sale-badge--archive.is-positioned {
	opacity: 1 !important;
}

.single-product div.product > .tbd-sale-badge,
.single-product div.product .woocommerce-product-gallery > .tbd-sale-badge,
.single-product div.product .woocommerce-product-gallery__wrapper > .tbd-sale-badge {
	top: auto !important;
	bottom: 14px !important;
	left: 14px !important;
}

/* Optional sale popup. */
body.tbd-popup-open {
	overflow: hidden;
}

.tbd-sale-popup[hidden] {
	display: none !important;
}

.tbd-sale-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}

.tbd-sale-popup,
.tbd-sale-popup * {
	box-sizing: border-box;
}

.tbd-sale-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 8, 34, .64);
	backdrop-filter: blur(5px);
}

.tbd-sale-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: min(430px, calc(100vw - 34px));
	min-height: 410px;
	padding: 52px 38px 38px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-radius: 34px;
	color: #fff;
	text-align: center;
	background:
		radial-gradient(circle at 18% 15%, rgba(255, 255, 255, .27), transparent 24%),
		radial-gradient(circle at 84% 85%, rgba(106, 24, 194, .32), transparent 28%),
		linear-gradient(145deg, #ff55a7 0%, #f0258e 46%, #9d35df 100%);
	box-shadow: 0 28px 90px rgba(39, 4, 48, .48), inset 0 1px 0 rgba(255, 255, 255, .36);
	overflow: hidden;
	animation: tbd-popup-in .32s cubic-bezier(.2, .8, .2, 1) both;
}

.tbd-sale-popup__dialog::before,
.tbd-sale-popup__dialog::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
}

.tbd-sale-popup__dialog::before {
	width: 280px;
	height: 280px;
	right: -155px;
	top: -130px;
}

.tbd-sale-popup__dialog::after {
	width: 190px;
	height: 190px;
	left: -115px;
	bottom: -100px;
}

.tbd-sale-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	color: #fff;
	font-family: Arial, sans-serif;
	font-size: 29px;
	font-weight: 300;
	line-height: 1;
	background: rgba(82, 12, 83, .18);
	cursor: pointer;
	transition: transform .18s ease, background .18s ease;
}

.tbd-sale-popup__close:hover,
.tbd-sale-popup__close:focus-visible {
	color: #fff;
	background: rgba(82, 12, 83, .38);
	transform: rotate(5deg) scale(1.04);
}

.tbd-sale-popup__spark {
	position: absolute;
	color: rgba(255, 255, 255, .78);
	font-size: 28px;
}

.tbd-sale-popup__spark--one {
	top: 72px;
	left: 48px;
}

.tbd-sale-popup__spark--two {
	right: 48px;
	bottom: 76px;
}

.tbd-sale-popup__eyebrow {
	position: relative;
	z-index: 2;
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	opacity: .86;
}

.tbd-sale-popup__dialog h2 {
	position: relative;
	z-index: 2;
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp(36px, 9vw, 54px);
	font-weight: 900;
	line-height: .98;
	letter-spacing: -.045em;
}

.tbd-sale-popup__dialog h2 span {
	display: block;
	margin-top: 8px;
	font-size: 1.2em;
	text-shadow: 0 8px 24px rgba(77, 0, 79, .25);
}

.tbd-sale-popup__copy {
	position: relative;
	z-index: 2;
	max-width: 310px;
	margin: 0 0 9px;
	color: #fff;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.45;
}

.tbd-sale-popup__expiry {
	position: relative;
	z-index: 2;
	margin: 0 0 23px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	background: rgba(69, 10, 86, .16);
}

.tbd-sale-popup__countdown {
	position: relative;
	z-index: 2;
	width: min(100%, 330px);
	margin: -10px 0 19px;
}

.tbd-sale-popup__countdown > p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, .92);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tbd-sale-popup__countdown-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

.tbd-sale-popup__countdown.has-days .tbd-sale-popup__countdown-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tbd-sale-popup__countdown-grid > span {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 57px;
	padding: 7px 4px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 13px;
	background: rgba(72, 11, 88, .17);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.tbd-sale-popup__countdown-grid > span[hidden] {
	display: none !important;
}

.tbd-sale-popup__countdown-grid strong {
	color: #fff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
}

.tbd-sale-popup__countdown-grid small {
	margin-top: 5px;
	color: rgba(255, 255, 255, .84);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.tbd-sale-popup__cta {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 210px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	color: #bd176e;
	font-size: 15px;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	background: #fff;
	box-shadow: 0 12px 28px rgba(78, 9, 84, .22);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}

.tbd-sale-popup__cta:hover,
.tbd-sale-popup__cta:focus-visible {
	color: #9d0f5b;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(78, 9, 84, .28);
}

@keyframes tbd-popup-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 520px) {
	.tbd-sale-popup {
		padding: 14px;
	}

	.tbd-sale-popup__dialog {
		width: min(86vw, 330px);
		min-height: 0;
		max-height: calc(100vh - 28px);
		max-height: calc(100dvh - 28px);
		padding: 42px 19px 22px;
		border-radius: 24px;
		overflow-y: auto;
	}

	.tbd-sale-popup__close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
		font-size: 25px;
	}

	.tbd-sale-popup__eyebrow {
		margin-bottom: 9px;
		font-size: 10px;
	}

	.tbd-sale-popup__dialog h2 {
		margin-bottom: 12px;
		font-size: 33px;
	}

	.tbd-sale-popup__dialog h2 span {
		margin-top: 5px;
	}

	.tbd-sale-popup__copy {
		font-size: 14px;
	}

	.tbd-sale-popup__expiry {
		margin-bottom: 18px;
		padding: 6px 10px;
		font-size: 11px;
	}

	.tbd-sale-popup__countdown {
		margin: -7px 0 15px;
	}

	.tbd-sale-popup__countdown-grid {
		gap: 5px;
	}

	.tbd-sale-popup__countdown-grid > span {
		min-height: 48px;
		padding: 6px 2px;
		border-radius: 10px;
	}

	.tbd-sale-popup__countdown-grid strong {
		font-size: 18px;
	}

	.tbd-sale-popup__countdown-grid small {
		font-size: 8px;
	}

	.tbd-sale-popup__cta {
		min-width: 185px;
		padding: 11px 18px;
		font-size: 14px;
	}

	.tbd-sale-popup__spark--one {
		left: 24px;
	}

	.tbd-sale-popup__spark--two {
		right: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbd-sale-popup__dialog {
		animation: none;
	}
}
