/* Temporary Black Friday styling, loaded by includes/rvs_black_friday.php. Colours that Flatsome prints itself are set there. */

/* Open Sans Condensed ExtraBold Italic (SIL Open Font License), self-hosted. */
@font-face {
	font-family: "RVS Race";
	src: url("open-sans-condensed-800-italic.woff2") format("woff2");
	font-weight: 800;
	font-style: italic;
	font-display: swap;
}

@property --rvs-v {
	syntax: "<number>";
	inherits: true;
	initial-value: 20;
}

@property --rvs-vi {
	syntax: "<integer>";
	inherits: true;
	initial-value: 20;
}

.rvs-bf-race {
	font-family: "RVS Race", "Arial Narrow", Arial, sans-serif;
	font-style: italic;
	font-weight: 800;
	text-transform: uppercase;
}

/* Header and footer */
.rvs-bf .footer-1 {
	border-top: 8px solid #D81E29;
}

.rvs-bf .header-search-form .button,
.rvs-bf .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
	background-color: #D81E29 !important;
}

.rvs-bf .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit::before {
	border-color: transparent #D81E29;
}

/* Simple checkout layouts have a white header: the white logo needs a dark background. */
.rvs-bf .focused-checkout-logo,
.rvs-bf .cart-header .logo {
	padding: 12px 16px;
	background: #0B0C0E;
}

.rvs-bf .header-bottom li.html a {
	color: #FF6B73;
}

/* Buttons: overrule the fixed colours in style.css */
.rvs-bf button[type="submit"],
.rvs-bf .button.wc-forward:not(.checkout):not(.checkout-button),
.rvs-bf .button.alt:not(.is-outline),
.rvs-bf .button#place_order,
.rvs-bf .button.checkout,
.rvs-bf .checkout-button,
.rvs-bf .single_add_to_cart_button.button,
.rvs-bf .current .breadcrumb-step,
.rvs-bf [data-icon-label]::after {
	background-color: #D81E29 !important;
	color: #FFFFFF !important;
}

.rvs-bf .widget_shopping_cart .button.wc-forward:not(.checkout),
.rvs-bf .off-canvas-cart .button.wc-forward:not(.checkout),
.rvs-bf .coupon button[type="submit"] {
	background-color: #0B0C0E !important;
	color: #FFFFFF !important;
	text-shadow: none;
}

.rvs-bf .dgwt-wcas-sf-wrapp button[type="submit"] {
	background-color: #D81E29 !important;
}

/* Section titles */
.rvs-bf .section-title b {
	height: 8px;
	background: repeating-linear-gradient(105deg, #0B0C0E 0 10px, transparent 10px 16px);
	opacity: 1;
}

/* Category and product blocks with a coloured text area (inline colour in the page builder) */
.rvs-bf .box-category .box-text.dark,
.rvs-bf .fp .box-text.dark {
	background-color: #0B0C0E !important;
	border-top: 4px solid #D81E29;
	transition: background-color .2s;
}

.rvs-bf .box-category:hover .box-text.dark,
.rvs-bf .fp.box:hover .box-text.dark {
	background-color: #D81E29 !important;
}

.rvs-bf .fp .box-text.dark del {
	opacity: 1;
}

.rvs-bf .fp .box-text.dark del,
.rvs-bf .fp .box-text.dark del .amount {
	color: #C9CCD1;
}

.rvs-bf .product-small.box:not(.fp) .woocommerce-loop-product__link {
	color: #C21823;
}

/* Badges */
.rvs-bf .badge-inner.on-sale,
.rvs-bf .badge-inner.new-bubble-auto,
.rvs-bf .badge-inner.new-bubble {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background-color: #D81E29;
	color: #FFFFFF;
	font: italic 800 20px/1 "RVS Race", "Arial Narrow", Arial, sans-serif;
	transform: skewX(-12deg);
}

.rvs-bf .badge-inner.new-bubble-auto,
.rvs-bf .badge-inner.new-bubble {
	background-color: #0B0C0E;
	font-size: 16px;
}

.rvs-bf .badge-container .badge {
	width: auto;
	height: auto;
}

/* Tabs */
.rvs-bf .nav-tabs > li.active > a {
	border-top-color: #D81E29;
}

/* Message strips */
.rvs-bf-strip {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px 6px;
	padding: 10px 16px 10px 0;
	background: #0B0C0E;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.rvs-bf-strip .amount,
.rvs-bf-strip strong {
	color: #FFFFFF;
	white-space: nowrap;
}

.rvs-bf-strip strong {
	padding: 1px 7px;
	border: 1px dashed #FF6B73;
}

.rvs-bf-strip b {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	align-self: stretch;
	margin: -10px 0 -10px -6px;
	padding: 0 18px;
	background: #D81E29;
	font: italic 800 24px/1 "RVS Race", "Arial Narrow", Arial, sans-serif;
	transform: skewX(-12deg);
}

.rvs-bf .woocommerce-checkout-review-order-table .rvs-bf-row td {
	padding: 12px 0 0;
	border: 0;
}

/* Homepage banner */
.rvs-bf-hero {
	padding: 20px 0;
	background: #0B0C0E;
}

.rvs-bf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.rvs-bf-hero__main {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 470px;
	overflow: hidden;
	background: #16181C;
}

.rvs-bf-hero__photo {
	position: absolute;
	top: -4px;
	left: -4px;
	width: calc(100% + 8px);
	max-width: none;
	height: 338px;
	object-fit: cover;
	object-position: 50% 0;
}

.rvs-bf-hero__bar {
	position: relative;
	display: flex;
	align-items: flex-end;
}

.rvs-bf-hero__text {
	flex: 1;
	min-width: 0;
	padding: 14px 24px 20px;
	background: #16181C;
}

.rvs-bf-hero__text h1 {
	margin: 0 0 6px;
	color: #FFFFFF;
	font-size: 50px;
	font-weight: 800;
	font-style: italic;
	line-height: 1;
}

.rvs-bf-hero__text p {
	margin: 0 0 12px;
	color: #E4E6E9;
	font-size: 16px;
	line-height: 1.4;
}

.rvs-bf-hero__text p strong {
	padding: 1px 7px;
	border: 1px dashed #FF6B73;
	color: #FFFFFF;
}

.rvs-bf-hero__text .rvs-bf-hero__small {
	margin: 12px 0 0;
	color: #C9CCD1;
	font-size: 13px;
}

.rvs-bf-strip small {
	display: block;
	color: #C9CCD1;
	font-size: 12px;
	font-weight: 400;
}

.rvs-bf-hero__main:only-child {
	grid-column: 1 / -1;
}

.rvs-bf-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 30px;
	background: #D81E29;
	color: #FFFFFF;
	font-size: 20px;
	transform: skewX(-12deg);
}

.rvs-bf-hero__cta:hover,
.rvs-bf-hero__cta:focus-visible {
	background: #FFFFFF;
	color: #0B0C0E;
}

.rvs-bf-hero__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rvs-bf-hero__deals {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	min-height: 225px;
	overflow: hidden;
}

.rvs-bf-hero__deals {
	padding: 20px 26px;
	background: #D81E29;
	color: #FFFFFF;
	font-size: 17px;
}

.rvs-bf-hero__deals:hover {
	background: #C21823;
	color: #FFFFFF;
}

.rvs-bf-hero__deals .rvs-bf-race {
	font-size: 26px;
	line-height: 1;
}

.rvs-bf-hero__deals .rvs-bf-hero__big {
	font-size: 104px;
	line-height: .95;
}

/* Slider (Flickity, part of Flatsome) */
.rvs-bf-hero__slider {
	position: relative;
	flex: 1;
	min-height: 225px;
	overflow: hidden;
	background: #FFFFFF;
}

.rvs-bf-hero__slider .slider,
.rvs-bf-hero__slider .flickity-viewport {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100% !important;
	margin: 0;
}

/* Absolute positions: Flatsome shows slides as inline blocks until the slider is ready. */
.rvs-bf-hero__slider .rvs-bf-hero__product {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #FFFFFF;
	white-space: normal;
}

.rvs-bf-hero__slider .rvs-bf-hero__product img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 62px);
	object-fit: contain;
}

.rvs-bf-hero__slider .flickity-prev-next-button {
	top: 0;
	bottom: 62px;
	z-index: 2;
}

.rvs-bf-hero__off {
	position: absolute;
	top: 16px;
	right: 14px;
	padding: 6px 20px;
	background: #D81E29;
	color: #FFFFFF;
	font-size: 26px;
	line-height: 1.2;
	transform: skewX(-12deg);
}

.rvs-bf-hero__name {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 62px;
	padding: 10px 16px;
	overflow: hidden;
	background: #0B0C0E;
	color: #FFFFFF;
	font-size: 14px;
	line-height: 1.4;
}

.rvs-bf-hero__name > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rvs-bf-hero__name .amount {
	color: #FFFFFF;
}

.rvs-bf-hero__name del,
.rvs-bf-hero__name del .amount {
	color: #C9CCD1;
	font-weight: 400;
	opacity: 1;
}

/* Rev counter: one value (--rvs-v, 0 to 50) drives the needle, band, red zone and digits. */
.rvs-bf .rvs-bf-gauge {
	--rvs-v: 20;
	--rvs-vi: 20;
	container-type: inline-size;
	position: relative;
	flex-shrink: 0;
	width: 330px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 170px 0 0;
	background: #0B0C0E;
	color: #FFFFFF;
	line-height: 1;
	cursor: pointer;
	transition: --rvs-v .7s cubic-bezier(.3, 0, .2, 1), --rvs-vi .7s cubic-bezier(.3, 0, .2, 1);
}

/* Deals only: the needle stays in the red zone. */
.rvs-bf .rvs-bf-gauge.is-deals {
	--rvs-v: 50;
	--rvs-vi: 50;
}

.rvs-bf-gauge svg {
	display: block;
	width: 100%;
	height: auto;
}

.rvs-bf-gauge__needle {
	transform-box: view-box;
	transform-origin: 200px 200px;
	transform: rotate(calc(135deg + var(--rvs-v) * 5.4deg));
}

.rvs-bf-gauge__band {
	stroke-dasharray: calc(var(--rvs-v) * 1px) 100px;
}

.rvs-bf-gauge__glow {
	opacity: clamp(0, calc((var(--rvs-v) - 36) / 8), 1);
}

.rvs-bf-gauge__digits {
	position: absolute;
	right: 0;
	bottom: 4%;
	left: 0;
	text-align: center;
	font: italic 800 40px/1 "RVS Race", "Arial Narrow", Arial, sans-serif;
	font-size: 13cqw;
}

.rvs-bf-gauge__digits::before {
	counter-reset: rvs-bf var(--rvs-vi);
	content: counter(rvs-bf);
}

.rvs-bf .rvs-bf-gauge:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: -6px;
}

.rvs-bf-hero:has(.rvs-bf-hero__cta:hover) .rvs-bf-gauge,
.rvs-bf-hero:has(.rvs-bf-hero__cta:focus-visible) .rvs-bf-gauge {
	--rvs-v: 50 !important;
	--rvs-vi: 50 !important;
}

@media (prefers-reduced-motion: no-preference) {
	.rvs-bf-gauge.is-start {
		animation: rvs-bf-start 3.4s backwards;
	}

	.rvs-bf-gauge.is-rev {
		animation: rvs-bf-rev 2.4s backwards;
	}

	.rvs-bf-gauge.is-deals.is-start {
		animation-name: rvs-bf-start-deals;
	}

	.rvs-bf-gauge.is-deals.is-rev {
		animation-name: rvs-bf-rev-deals;
	}

	.rvs-bf-gauge.is-start .rvs-bf-gauge__light {
		animation: rvs-bf-light .5s .1s both;
	}

	.rvs-bf-hero__photo.is-start {
		animation: rvs-bf-shake 3.4s backwards;
	}

	.rvs-bf-hero__text.is-start {
		animation: rvs-bf-in .5s 2.5s cubic-bezier(.2, .8, .2, 1) both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rvs-bf .rvs-bf-gauge {
		transition: none;
	}
}

@keyframes rvs-bf-start {
	0%, 14% { --rvs-v: 0; --rvs-vi: 0; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
	42%, 50%, 58% { --rvs-v: 50; --rvs-vi: 50; }
	46%, 54% { --rvs-v: 47.5; --rvs-vi: 48; }
	58% { animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
	82% { --rvs-v: 16.5; --rvs-vi: 17; }
	91% { --rvs-v: 21.4; --rvs-vi: 21; }
	100% { --rvs-v: 20; --rvs-vi: 20; }
}

@keyframes rvs-bf-rev {
	0% { --rvs-v: 20; --rvs-vi: 20; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
	30%, 40%, 50% { --rvs-v: 50; --rvs-vi: 50; }
	35%, 45% { --rvs-v: 47.5; --rvs-vi: 48; }
	50% { animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
	80% { --rvs-v: 16.5; --rvs-vi: 17; }
	91% { --rvs-v: 21.4; --rvs-vi: 21; }
	100% { --rvs-v: 20; --rvs-vi: 20; }
}

@keyframes rvs-bf-start-deals {
	0%, 14% { --rvs-v: 0; --rvs-vi: 0; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
	42%, 50%, 58%, 66%, 100% { --rvs-v: 50; --rvs-vi: 50; }
	46%, 54%, 62% { --rvs-v: 47.5; --rvs-vi: 48; }
}

@keyframes rvs-bf-rev-deals {
	0%, 100% { --rvs-v: 50; --rvs-vi: 50; }
	25% { --rvs-v: 14; --rvs-vi: 14; animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
	65%, 80% { --rvs-v: 50; --rvs-vi: 50; }
	72%, 88% { --rvs-v: 47.5; --rvs-vi: 48; }
}

@keyframes rvs-bf-light {
	0% { opacity: .08; }
	30% { opacity: .7; }
	45% { opacity: .2; }
	100% { opacity: 1; }
}

@keyframes rvs-bf-shake {
	0%, 40%, 60%, 100% { transform: translate(0, 0); }
	42%, 54% { transform: translate(1px, -1px); }
	44%, 52% { transform: translate(-2px, 1px); }
	46%, 50% { transform: translate(2px, 0); }
	48%, 56% { transform: translate(-1px, -1px); }
	58% { transform: translate(1px, 1px); }
}

@keyframes rvs-bf-in {
	from { opacity: 0; transform: translateX(-24px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 849px) {
	.rvs-bf-hero {
		padding-top: 0;
	}

	.rvs-bf-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 15px;
	}

	.rvs-bf-hero__main {
		min-height: 0;
		margin: 0 -15px;
		background: #0B0C0E;
	}

	.rvs-bf-hero__photo {
		position: static;
		width: 100%;
		height: 190px;
		object-position: 60% 0;
	}

	.rvs-bf-hero__bar {
		flex-direction: column;
		align-items: center;
		padding-top: 14px;
	}

	.rvs-bf .rvs-bf-gauge {
		width: 300px;
		max-width: 100%;
		border-radius: 0;
	}

	.rvs-bf-hero__text {
		width: 100%;
		padding: 16px 15px 10px;
		background: none;
		text-align: center;
	}

	.rvs-bf-hero__deals {
		min-height: 170px;
	}

	.rvs-bf-hero__slider {
		min-height: 260px;
	}
}
