/*
Theme Name: Braids & Bundles
Description: Child theme of Hello Elementor for the Braids & Bundles store.
Template: hello-elementor
Version: 2.4.3
Text Domain: braids-bundles
*/

:root {
	--bb-ink: #391a24;
	--bb-muted: #5a454c;
	--bb-accent: #aa4d76;
	--bb-accent-dark: #8f3c62;
	--bb-page: #fef5f8;
	--bb-line: #f0dde3;
	--bb-tint-1: #fee3ec;
	--bb-tint-2: #fbd7e3;
	--bb-serif: "Cormorant Garamond", Georgia, serif;
	--bb-sans: "Karla", -apple-system, "Segoe UI", sans-serif;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--bb-accent);
	outline-offset: 3px;
}

/* Italic accent word used in the logo and hero headline */
.bb-accent em {
	color: var(--bb-accent);
	font-style: italic;
}

/* Logo stays on one line */
.bb-logo {
	flex: none;
	white-space: nowrap;
}

/* Image tiles lift slightly on hover */
.bb-tile img {
	transition: transform .3s ease;
}

.bb-tile a:hover img {
	transform: translateY(-4px);
}

/* Footer link lists */
.bb-links p {
	margin: 0;
}

.bb-links a {
	color: var(--bb-muted);
}

.bb-links a:hover {
	color: var(--bb-accent);
}

/* Store category pills */
.bb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-filters a {
	padding: 8px 20px;
	border-radius: 999px;
	background: var(--bb-tint-1);
	color: var(--bb-ink);
	font-size: 15px;
	line-height: 1.3;
	transition: background-color .2s ease;
}

.bb-filters a:hover {
	background: var(--bb-tint-2);
}

.bb-filters a.is-active {
	background: var(--bb-accent);
	color: #fff;
}

/* Product cards */
.woocommerce ul.products li.product,
.elementor-widget-wc-archive-products ul.products li.product {
	display: flex;
	flex-direction: column;
	margin: 0;
	text-align: left;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	margin: 0 0 14px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 28px;
	transition: transform .3s ease;
}

.woocommerce ul.products li.product a:hover img {
	transform: translateY(-4px);
}

.bb-card__cat {
	display: block;
	margin-bottom: 2px;
	color: var(--bb-muted);
	font-size: 13px;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.bb-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 8px;
}

.woocommerce ul.products li.product .bb-card__row .price {
	margin: 0;
	color: var(--bb-accent);
	font-size: 16px;
	font-weight: 400;
}

.woocommerce ul.products li.product .bb-card__row .button {
	margin: 0;
	padding: 5px 13px;
	border: 1px solid #e8ccd6;
	border-radius: 999px;
	background: transparent;
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.woocommerce ul.products li.product .bb-card__row .button:hover {
	border-color: var(--bb-accent);
	background: var(--bb-accent);
	color: #fff;
}

.woocommerce ul.products li.product .bb-card__row .button.added::after {
	margin-left: 4px;
	font-family: inherit;
	content: "\2713";
}

.woocommerce ul.products li.product .added_to_cart {
	display: none;
}

/* Single product */
.bb-product .woocommerce-product-gallery img {
	border-radius: 28px;
}

.bb-product .price {
	color: var(--bb-accent);
}

.bb-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.bb-product form.cart .qty {
	width: 72px;
	height: 46px;
	border: 1px solid #e8ccd6;
	border-radius: 999px;
	background: transparent;
	text-align: center;
}

.woocommerce .bb-product form.cart button.single_add_to_cart_button.alt {
	padding: 13px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--bb-accent);
	color: #fff;
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 500;
}

.woocommerce .bb-product form.cart button.single_add_to_cart_button.alt:hover {
	background: var(--bb-accent-dark);
}

/* Cart, checkout and account pages keep the same column as the design */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
	width: 100%;
	max-width: 1288px;
	margin: 0 auto;
	padding: 56px 24px 96px;
}

.woocommerce-cart .page-header,
.woocommerce-checkout .page-header,
.woocommerce-account .page-header {
	max-width: none;
	padding: 0;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button {
	border-radius: 999px;
	background: var(--bb-accent);
	color: #fff;
}

.wc-block-components-button:not(.is-link):hover {
	background: var(--bb-accent-dark);
	color: #fff;
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--bb-accent);
	background: var(--bb-tint-1);
	color: var(--bb-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--bb-accent);
}

.woocommerce-cart .page-header h1,
.woocommerce-checkout .page-header h1,
.woocommerce-account .page-header h1 {
	margin-bottom: 28px;
	font-size: 54px;
}

/* The cart and checkout blocks break out of the column by default */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.wc-block-components-button,
.wc-block-components-button:hover {
	text-decoration: none;
}

.wc-block-cart__submit-button,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button {
	color: #fff;
	text-decoration: none;
}

/* Header nav hugs its content so the logo and bag share one row */
.e-con.bb-nav {
	flex: none;
	width: auto;
}

/* Price rows line up when a product name wraps */
.woocommerce ul.products {
	align-items: stretch;
}

.woocommerce ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
}

/* ==========================================================================
   Motion and editorial layer. Effects are switched on by the classes listed
   in assets/bb-motion.js; hidden start states sit behind html.bb-js.
   ========================================================================== */

html,
body {
	overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

.elementor-button {
	transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.bb-dark .bb-accent em {
	color: #f8b5ce;
}

/* Sticky header turns to frosted glass once the page scrolls */
.bb-header {
	transition: background-color .3s ease, box-shadow .3s ease;
}

.bb-header.elementor-sticky--effects {
	background-color: transparent !important;
	box-shadow: 0 10px 30px -22px rgba(57, 26, 36, .5);
}

/* The blur sits on its own layer: on the header itself it would trap the
   slide-out bag, which is fixed-position, inside the header. */
.bb-header.elementor-sticky--effects::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-color: rgba(254, 245, 248, .8);
	content: "";
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

/* The logo already links home, so small phones drop that menu item */
@media (max-width: 480px) {
	.bb-nav .elementor-nav-menu > li:first-child {
		display: none;
	}
}

/* Slide-out bag (Menu Cart widget) */
.bb-cart .elementor-menu-cart__toggle .elementor-button {
	padding: 9px 18px;
	font-family: var(--bb-sans);
	font-weight: 500;
	border: 0;
	border-radius: 999px;
	background: var(--bb-accent);
	color: #fff;
	font-size: 14px;
	line-height: 1.25;
}

.bb-cart .elementor-menu-cart__toggle .elementor-button:hover {
	background: var(--bb-accent-dark);
	color: #fff;
}

.bb-cart .elementor-menu-cart__toggle .elementor-button-text,
.bb-cart .elementor-menu-cart__toggle .elementor-button-icon svg,
.bb-cart .elementor-menu-cart__toggle .elementor-button-icon i {
	display: none;
}

.bb-cart .elementor-button-icon {
	position: static;
	display: inline-flex;
	color: #fff;
}

.bb-cart .elementor-button-icon::before {
	content: "Bag (";
}

.bb-cart .elementor-button-icon::after {
	content: ")";
}

.bb-cart .elementor-button-icon-qty {
	position: static;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: inherit;
}

.bb-cart .elementor-menu-cart__main {
	width: min(440px, 100vw);
	max-width: 100vw;
	padding: 28px;
	background: var(--bb-page);
	color: var(--bb-ink);
	font-family: var(--bb-sans);
}

.bb-cart .elementor-menu-cart__product-name a {
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 16px;
	font-weight: 500;
}

.bb-cart .elementor-menu-cart__product-image img {
	border-radius: 14px;
}

.bb-cart .elementor-menu-cart__product-price,
.bb-cart .elementor-menu-cart__subtotal {
	color: var(--bb-accent);
	font-family: var(--bb-sans);
	font-size: 15px;
}

.bb-cart .elementor-menu-cart__footer-buttons .elementor-button {
	padding: 13px 20px;
	border-radius: 999px;
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 500;
}

.bb-cart .elementor-menu-cart__footer-buttons .elementor-button-text {
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 500;
}

.bb-cart .elementor-button--view-cart {
	border: 1px solid #e8ccd6;
	background: transparent;
	color: var(--bb-ink);
}

.bb-cart .elementor-button--checkout {
	background: var(--bb-accent);
	color: #fff;
}

/* bb-split: words rise from behind a mask */
.bb-w {
	display: inline-block;
	overflow: hidden;
	margin: 0 -.09em -.14em -.04em;
	padding: 0 .09em .14em .04em;
	vertical-align: top;
}

.bb-w > span {
	display: inline-block;
}

html.bb-js .bb-split .elementor-heading-title {
	animation: bb-show 0s 3s forwards;
	opacity: 0;
}

html.bb-ready .bb-split .elementor-heading-title {
	animation: none;
	opacity: 1;
}

html.bb-js .bb-w > span {
	transform: translateY(115%);
	transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
	transition-delay: calc(var(--i, 0) * 110ms);
}

html.bb-js .bb-split.is-in .bb-w > span {
	transform: none;
}

/* bb-unveil: images wipe open */
html.bb-js .bb-unveil img {
	clip-path: inset(0 0 100% 0);
	transform: scale(1.14);
	transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1);
}

html.bb-js .bb-unveil.is-in img {
	clip-path: inset(-1% -1% -1% -1%);
	transform: none;
}

/* Product cards rise in, and the image softens into an arch on hover */
html.bb-js ul.products li.product {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
	transition-delay: calc(var(--i, 0) * 90ms);
}

html.bb-js ul.products li.product.is-in {
	opacity: 1;
	transform: none;
}

.woocommerce ul.products li.product a img {
	transition: border-radius .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1);
}

.woocommerce ul.products li.product a:hover img {
	border-radius: 50% 50% 28px 28px;
	transform: none;
}

/* bb-marquee */
.bb-marquee {
	width: 100%;
}

.bb-marquee .elementor-heading-title {
	overflow: hidden;
	white-space: nowrap;
}

.bb-marquee__track {
	display: inline-flex;
	animation: bb-marquee 46s linear infinite;
	will-change: transform;
}

.bb-marquee__track > span {
	padding-right: .5em;
}

.bb-marquee:hover .bb-marquee__track {
	animation-play-state: paused;
}

.e-con.bb-tilt {
	left: -3vw;
	width: 106vw;
	max-width: none;
	transform: rotate(-1.4deg);
}

/* Expanding category panels */
.bb-panels.e-con {
	display: flex;
	flex-flow: row nowrap;
	gap: 14px;
	height: 580px;
}

.bb-panels > .bb-panel.e-con {
	position: relative;
	overflow: hidden;
	min-width: 0;
	flex: 1 1 0;
	color: #fff;
	transition: flex-grow .8s cubic-bezier(.16, 1, .3, 1);
}

.e-con.bb-panel::before {
	position: absolute;
	inset: 0;
	display: block;
	width: auto;
	height: auto;
	background: linear-gradient(to top, rgba(42, 17, 25, .92), rgba(42, 17, 25, .72) 26%, rgba(42, 17, 25, 0) 66%);
	border-radius: inherit;
	content: "";
	opacity: 1;
}

.bb-panel > * {
	position: relative;
	z-index: 1;
}

.bb-panel__cta {
	transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) {
	.bb-panels:hover > .bb-panel.e-con {
		flex-grow: .75;
	}

	.bb-panels > .bb-panel.e-con:hover,
	.bb-panels > .bb-panel.e-con:focus-visible {
		flex-grow: 2.7;
	}

	html.bb-js .bb-panel__cta {
		opacity: 0;
		transform: translateY(10px);
	}

	.bb-panel:hover .bb-panel__cta,
	.bb-panel:focus-visible .bb-panel__cta {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.bb-panels.e-con {
		overflow-x: auto;
		width: calc(100% + 40px);
		max-width: none;
		height: auto;
		margin-inline: -20px !important;
		padding-inline: 20px;
		scroll-padding-inline: 20px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.bb-panels > .bb-panel.e-con {
		height: 430px;
		flex: 0 0 74vw;
		scroll-snap-align: start;
	}
}

/* bb-rail: swipeable product row */
.bb-rail {
	position: relative;
}

.bb-rail ul.products {
	display: flex !important;
	gap: 24px;
	overflow-x: auto;
	margin: 0;
	padding: 0 0 4px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.bb-rail ul.products::-webkit-scrollbar,
.bb-panels::-webkit-scrollbar {
	display: none;
}

.bb-rail ul.products::before,
.bb-rail ul.products::after {
	display: none;
}

.bb-rail ul.products li.product {
	width: auto !important;
	flex: 0 0 clamp(216px, 23vw, 292px);
	scroll-snap-align: start;
}

.bb-rail__nav {
	position: absolute;
	top: -84px;
	right: 0;
	display: flex;
	gap: 10px;
}

.bb-rail__nav button {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(254, 227, 236, .35);
	border-radius: 50%;
	background: transparent;
	color: #fee3ec;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}

.bb-rail__nav button:hover:not(:disabled),
.bb-rail__nav button:focus:not(:disabled) {
	background: #fee3ec;
	color: var(--bb-ink);
}

.bb-rail__nav button:disabled {
	cursor: default;
	opacity: .3;
}

@media (max-width: 767px) {
	.bb-rail__nav {
		display: none;
	}

	.bb-rail ul.products {
		width: calc(100% + 20px);
		padding-right: 20px;
	}

	.bb-rail ul.products li.product {
		flex-basis: 62vw;
	}
}

.bb-dark .bb-card__cat {
	color: #d9a9bc;
}

.bb-dark .woocommerce ul.products li.product .bb-card__row .button,
.woocommerce .bb-dark ul.products li.product .bb-card__row .button {
	border-color: rgba(254, 227, 236, .35);
	color: #fee3ec;
}

.bb-dark .woocommerce ul.products li.product .bb-card__row .button:hover,
.woocommerce .bb-dark ul.products li.product .bb-card__row .button:hover {
	border-color: #fee3ec;
	background: #fee3ec;
	color: var(--bb-ink);
}

.bb-dark .bb-links a,
.bb-dark .bb-links {
	color: #d9a9bc;
}

.bb-dark .bb-links a:hover {
	color: #fff;
}

/* bb-scrub */
.bb-sw {
	transition: opacity .3s linear;
}

/* Living gradient behind the closing call to action */
.e-con.bb-aurora {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.e-con.bb-aurora::before {
	position: absolute;
	z-index: -1;
	inset: -45%;
	display: block;
	width: auto;
	height: auto;
	background:
		radial-gradient(38% 42% at 24% 34%, #f8b5ce 0, transparent 70%),
		radial-gradient(34% 40% at 74% 28%, #fee3ec 0, transparent 70%),
		radial-gradient(40% 46% at 62% 74%, #e58fb2 0, transparent 70%);
	animation: bb-drift 16s ease-in-out infinite alternate;
	content: "";
	opacity: 1;
}

/* bb-badge */
.bb-badge {
	position: relative;
	width: 138px;
	height: 138px;
	border-radius: 50%;
	background: var(--bb-ink);
	box-shadow: 0 18px 40px -18px rgba(57, 26, 36, .7);
}

.bb-badge svg {
	display: block;
	width: 100%;
	height: 100%;
	animation: bb-spin 24s linear infinite;
}

.bb-badge text {
	fill: #fee3ec;
	font-family: var(--bb-sans);
	font-size: 17px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bb-badge::after {
	position: absolute;
	top: 50%;
	left: 50%;
	color: #f8b5ce;
	content: "\2726";
	font-size: 26px;
	line-height: 1;
	transform: translate(-50%, -50%);
}

/* bb-braid */
.bb-braid-page {
	position: relative;
}

.bb-braid-page > .e-con {
	position: relative;
	z-index: 1;
}

.bb-braid__svg {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
}

/* Length and texture guide */
#categories,
#length-guide {
	scroll-margin-top: 80px;
}

.bb-guide-ui {
	width: 100%;
}

.bb-guide-textures-ui {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.bb-guide-textures-ui button {
	padding: 9px 20px;
	border: 1px solid #e8b9cb;
	border-radius: 999px;
	background: transparent;
	color: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.bb-guide-textures-ui button:hover,
.bb-guide-textures-ui button:focus {
	border-color: var(--bb-accent);
	background: transparent;
	color: var(--bb-ink);
}

.bb-guide-textures-ui button[aria-pressed="true"] {
	border-color: var(--bb-accent);
	background: var(--bb-accent);
	color: #fff;
}

.bb-guide-readout {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	align-items: baseline;
	margin: 0 0 18px;
}

.bb-guide-size {
	color: var(--bb-ink);
	font-family: var(--bb-serif);
	font-size: 76px;
	line-height: 1;
}

.bb-guide-where {
	color: var(--bb-accent);
	font-family: var(--bb-serif);
	font-size: 30px;
	font-style: italic;
	line-height: 1.1;
}

.bb-guide-range {
	display: block;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bb-guide-range::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--bb-accent) var(--fill, 0%), #f3c3d6 var(--fill, 0%));
}

.bb-guide-range::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: #f3c3d6;
}

.bb-guide-range::-moz-range-progress {
	height: 6px;
	border-radius: 999px;
	background: var(--bb-accent);
}

.bb-guide-range::-webkit-slider-thumb {
	width: 28px;
	height: 28px;
	margin-top: -11px;
	border: 6px solid #fff;
	border-radius: 50%;
	background: var(--bb-accent);
	box-shadow: 0 6px 14px -4px rgba(57, 26, 36, .5);
	-webkit-appearance: none;
	appearance: none;
}

.bb-guide-range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 6px solid #fff;
	border-radius: 50%;
	background: var(--bb-accent);
	box-shadow: 0 6px 14px -4px rgba(57, 26, 36, .5);
}

.bb-guide-scale {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	color: var(--bb-muted);
	font-size: 13px;
}

.bb-guide-note {
	min-height: 1.6em;
	margin: 22px 0 0;
	color: var(--bb-ink);
	font-size: 17px;
}

.bb-guide-figure {
	overflow: hidden;
	border-radius: 50% 50% 32px 32px / 33.4% 33.4% 32px 32px;
	background: linear-gradient(to bottom, #fbd7e3, #f8b5ce);
}

.bb-guide-figure svg {
	display: block;
	width: 100%;
	height: auto;
}

.bb-fig-body {
	fill: #6a3d2e;
}

.bb-fig-cap {
	fill: #1f0b12;
}

.bb-fig-strand,
.bb-fig-shine {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bb-fig-strand {
	stroke: #1f0b12;
	stroke-width: 7;
}

.bb-fig-shine {
	stroke: #5e2a42;
	stroke-width: 2.5;
}

.bb-fig-mark {
	stroke: var(--bb-accent);
	stroke-dasharray: 3 5;
	stroke-width: 1.5;
}

.bb-fig-label {
	fill: var(--bb-ink);
	font-family: var(--bb-sans);
	font-size: 15px;
	font-weight: 500;
}

/* On phones the figure sits directly above the controls, so the hair stays
   in view while the slider moves. */
@media (max-width: 767px) {
	#length-guide > .e-con-inner {
		gap: 14px;
	}

	.bb-guide-copy.e-con {
		display: contents;
	}

	.bb-guide-copy > * {
		order: 3;
	}

	.bb-guide-copy > :nth-child(-n+3) {
		order: 1;
	}

	.bb-guide-stage.e-con {
		order: 2;
		margin-block: 6px 10px;
	}

	.bb-guide-figure {
		width: min(62vw, 250px);
		margin-inline: auto;
	}

	.bb-guide-textures-ui {
		justify-content: center;
		margin-bottom: 16px;
	}

	.bb-guide-textures-ui button {
		padding: 7px 14px;
		font-size: 14px;
	}

	.bb-guide-readout {
		justify-content: center;
		margin-bottom: 8px;
	}

	.bb-guide-size {
		font-size: 54px;
	}

	.bb-guide-where {
		font-size: 24px;
	}

	.bb-guide-note {
		margin-top: 14px;
		text-align: center;
	}
}

.bb-length-link {
	color: var(--bb-accent);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@keyframes bb-marquee {
	to {
		transform: translateX(-50%);
	}
}

@keyframes bb-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes bb-drift {
	to {
		transform: translate(9%, -7%) rotate(24deg) scale(1.12);
	}
}

@keyframes bb-show {
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bb-marquee__track,
	.bb-badge svg,
	.e-con.bb-aurora::before {
		animation: none;
	}

	.bb-panels > .bb-panel.e-con,
	.bb-panel__cta {
		transition: none;
	}
}

/* ==========================================================================
   Legibility, keyboard and touch
   ========================================================================== */

html {
	scroll-padding-top: 96px;
}

/* Cormorant's default figures are old-style: 18 reads as I8 */
body {
	font-variant-numeric: lining-nums;
}

/* Outlined and filled buttons share one height */
.elementor-button {
	border: 1px solid transparent;
}

.bb-dark a:focus-visible,
.bb-dark button:focus-visible {
	outline-color: #f8b5ce;
}

.bb-panel.e-con:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -8px;
}

/* A card that takes focus is never left hidden or mid-reveal */
html.bb-js ul.products li.product:focus-within {
	opacity: 1;
	transform: none;
	transition: none;
}

.bb-aurora .bb-accent em {
	color: var(--bb-accent-dark);
}

.bb-guide-label {
	display: block;
	margin-bottom: 4px;
	color: var(--bb-ink);
	font-size: 15px;
	font-weight: 500;
}

.woocommerce ul.products li.product .bb-card__row .button {
	font-size: 14px;
}

.bb-product form.cart div.quantity,
.bb-product form.cart div.quantity .qty {
	margin: 0 !important;
}

a.bb-length-link.bb-length-link {
	color: var(--bb-accent-dark);
	text-decoration: underline;
}

.bb-product .related > h2 {
	margin: 0 0 32px;
}

/* Cart, checkout and account share the header's column */
body.woocommerce-cart main.site-main,
body.woocommerce-checkout main.site-main,
body.woocommerce-account main.site-main {
	max-width: 1288px;
	padding-inline: 24px;
}

body.woocommerce-cart main.site-main > *,
body.woocommerce-checkout main.site-main > *,
body.woocommerce-account main.site-main > * {
	max-width: none;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button * {
	text-decoration: none !important;
}

/* Pause control for the endless loops */
.bb-marquee {
	position: relative;
}

.bb-pause,
.bb-pause:hover,
.bb-pause:focus {
	position: absolute;
	top: 50%;
	right: calc(3vw + 16px);
	box-sizing: border-box;
	width: 44px;
	min-width: 0;
	height: 44px;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	background: var(--bb-accent-dark);
	transform: translateY(-50%);
}

.bb-pause:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.bb-pause::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 14px;
	border: solid #fff;
	border-width: 0 3px;
	content: "";
	transform: translate(-50%, -50%);
}

.bb-paused .bb-pause::before {
	width: 0;
	height: 0;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-40%, -50%);
}

.bb-paused .bb-marquee__track,
.bb-paused .bb-badge svg,
.bb-paused .e-con.bb-aurora::before {
	animation-play-state: paused;
}

@media (max-width: 767px) {
	.bb-braid__svg {
		opacity: .55;
	}

	.bb-nav .elementor-nav-menu .elementor-item,
	.bb-cart .elementor-menu-cart__toggle .elementor-button,
	.bb-filters a,
	.bb-guide-textures-ui button,
	.woocommerce ul.products li.product .bb-card__row .button,
	.bb-length-link {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
	}

	.woocommerce ul.products li.product .bb-card__row .button {
		padding-inline: 16px;
	}

	.bb-nav .elementor-nav-menu .elementor-item {
		padding-inline: 8px !important;
	}

	.bb-logo .elementor-heading-title a {
		display: inline-block !important;
		line-height: 44px !important;
	}

	.bb-guide-copy > * {
		width: 100%;
		text-align: left;
	}

	.bb-guide-range {
		height: 44px;
	}

	.bb-links a {
		display: inline-block;
		padding-block: 10px;
	}
}

/* WooCommerce's clearfix becomes an empty flex item here */
.bb-product form.cart::before,
.bb-product form.cart::after {
	display: none !important;
}

body.woocommerce-cart .page-header .entry-title,
body.woocommerce-checkout .page-header .entry-title,
body.woocommerce-account .page-header .entry-title {
	max-width: none;
	margin-inline: 0;
}

@media (max-width: 767px) {
	.bb-product form.cart div.quantity .qty,
	.woocommerce .bb-product form.cart button.single_add_to_cart_button.alt {
		min-height: 46px;
	}

	.woocommerce .bb-product .woocommerce-product-gallery__trigger {
		transform: scale(1.23);
		transform-origin: top right;
	}
}

@media (max-width: 359px) {
	.bb-nav.e-con {
		gap: 4px;
	}

	.bb-logo .elementor-heading-title {
		font-size: 20px !important;
	}
}
