.st-flash-sale-panel {
	display: flex;
	width: 100%;
	margin: 10px 0;
	padding: 10px 14px;
	flex-direction: column;
	gap: 6px;
	overflow: hidden;
	color: #313131;
	background: #fef4f4;
	border: 1px solid #d53134;
	border-radius: 8px;
	font-family: var(--st-font-family, "Jost", sans-serif);
}

.st-flash-sale-panel header {
	display: flex;
	gap: 8px;
	align-items: center;
	color: #d53134;
	font-size: 12px;
	font-weight: 700;
	line-height: 15px;
}

.st-flash-sale-panel header img {
	display: block;
	width: 13px;
	height: 17px;
	object-fit: contain;
}

.st-flash-sale-prices {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 0;
}

.st-flash-sale-prices del {
	color: #939393;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.st-flash-sale-prices > strong {
	color: #d53134;
	font-size: 24px;
	font-weight: 600;
	line-height: 26px;
}

.st-flash-sale-prices > span {
	padding: 0 8px;
	color: #fff;
	background: #d53134;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	line-height: 22px;
	white-space: nowrap;
}

.st-flash-sale-availability,
.st-flash-sale-schedule {
	display: flex;
	gap: 5px;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	line-height: 16px;
}

.st-flash-sale-availability strong { color: #d53134; }
.st-flash-sale-availability span { color: #939393; }
.st-flash-sale-availability b { margin: 0 2px; font-weight: 500; }

.st-flash-sale-progress {
	position: relative;
	height: 8px;
	margin-top: 0;
	background: #d9d9d9;
	border-radius: 10px;
}

.st-flash-sale-progress > span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	min-width: 0;
	background: linear-gradient(90deg, #d42c2e, #de5937);
	border-radius: inherit;
}

.st-flash-sale-progress b {
	position: absolute;
	top: -2px;
	right: 6px;
	color: #fff;
	font-size: 10px;
	font-weight: 500;
	line-height: 12px;
}

.st-flash-sale-panel > p {
	margin: 0;
	color: #939393;
	font-size: 12px;
	font-weight: 500;
	line-height: 15px;
}

.st-flash-sale-panel.is-scheduled { background: #fffaf0; border-color: #ffb526; }
.st-flash-sale-panel.is-scheduled header { color: #9a6500; }
.st-flash-sale-panel.is-sold_out { background: #f7f7f7; border-color: #939393; }
.st-flash-sale-panel.is-sold_out header { color: #626262; }

.st-product-card { position: relative; }
.st-single-gallery-panel { position: relative; }
.st-flash-sale-badge {
	position: absolute;
	z-index: 3;
	top: 15px;
	left: 0;
	display: inline-flex;
	width: 89px;
	height: 24px;
	align-items: center;
	gap: 9px;
	padding: 5px;
	color: #fff;
	background: #d53134;
	border-radius: 0 100px 100px 0;
	font-size: 10px;
	font-weight: 600;
	line-height: 14px;
	white-space: nowrap;
}

.st-flash-sale-badge img {
	display: block;
	width: 11px;
	height: 14px;
	filter: brightness(0) invert(1);
}

.st-flash-sale-badge.is-scheduled { color: #313131; background: #ffb526; }
.st-flash-sale-badge.is-scheduled img { filter: none; }
.st-flash-sale-badge.is-sold_out { background: #777; }
.st-flash-sale-badge.is-scheduled,
.st-flash-sale-badge.is-sold_out { width: auto; min-width: 89px; padding-right: 10px; }

.st-cart-flash-sale-badge {
	position: static;
	display: inline-flex;
	width: auto;
	min-width: 0;
	margin-top: 6px;
	padding-right: 9px;
	border-radius: 30px;
}

.st-cart-flash-price {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	white-space: nowrap;
}

.st-cart-flash-price del {
	color: #929292;
	font-size: 11px;
}

.st-cart-flash-price ins {
	color: #d53134;
	font-weight: 600;
	text-decoration: none;
}

.products .product { position: relative; }
.products .product > .st-flash-sale-badge { top: 15px; }

.st-product-card .st-flash-sale-price {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	white-space: nowrap;
}

.st-product-card .st-flash-sale-price del {
	margin: 0;
	color: #848484;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
}

.st-product-card .st-flash-sale-price ins {
	color: #d53134;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
}

.st-product-card .st-flash-sale-price ins .woocommerce-Price-amount {
	color: inherit;
}

.st-product-card-footer > .st-flash-sale-card-details {
	display: contents;
}

.st-flash-sale-card-progress {
	grid-column: 1 / -1;
	position: relative;
	height: 4px;
	margin: 0 0 5px;
	overflow: hidden;
	background: #d9d9d9;
	border-radius: 10px;
}

.st-flash-sale-card-progress > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #d42c2e, #de5937);
	border-radius: inherit;
}

.st-flash-sale-card-availability,
.st-flash-sale-card-schedule {
	grid-column: 1;
	align-self: center;
	color: #313131;
	font-size: 10px;
	font-weight: 500;
	line-height: 18px;
	white-space: nowrap;
}

.st-flash-sale-card-availability strong { font-weight: 700; }
.st-flash-sale-card-availability b { margin: 0 6px; font-weight: 500; }

.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions {
	align-self: center;
	gap: 8px !important;
}

.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions > .sentai-wishlist-button,
.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions > .sentai-wishlist-form {
	order: 1;
}

.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions > form:not(.sentai-wishlist-form) {
	order: 2;
}

.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions .st-icon-button,
.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions .sentai-wishlist-button,
.st-product-card-footer:has(.st-flash-sale-card-details) .st-product-card-actions .sentai-wishlist-toggle-button {
	width: 20px;
	min-width: 20px;
	height: 20px;
	min-height: 20px;
	padding: 0;
	font-size: 20px;
	line-height: 20px;
}

.products .product .st-flash-sale-card-details {
	margin-top: 4px;
}

.products .product .st-flash-sale-card-progress {
	display: block;
}

@media (max-width: 575.98px) {
	.st-flash-sale-panel { padding: 9px 11px; gap: 6px; }
	.st-flash-sale-prices { gap: 5px; flex-wrap: nowrap; }
	.st-flash-sale-prices > strong { font-size: 20px; line-height: 22px; }
	.st-flash-sale-prices del { font-size: 11px; line-height: 18px; }
	.st-flash-sale-prices > span { padding: 0 5px; font-size: 9px; line-height: 18px; }
	.st-flash-sale-availability,
	.st-flash-sale-schedule { align-items: flex-start; flex-wrap: wrap; font-size: 12px; }
}
