/* RaceMe shop UX – see inc/raceme-shop/bootstrap.php */

/* ------------------------------------------------------------------ cart: auto update */
.woocommerce-cart-form button[name="update_cart"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* ------------------------------------------------------------------ shipping note */
tr.rm-ship-note td {
	padding-top: 0 !important;
	text-align: left !important;
	border-top: 0 !important;
	white-space: normal !important;
}
.rm-ship-note p {
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
	font-size: 12px !important;
	letter-spacing: 0 !important;
	white-space: normal !important;
}
tr.rm-ship-note td::before {
	display: none !important;
	content: none !important;
}
.rm-ship-note p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}
.rm-ship-note__days {
	color: #555;
}
.rm-ship-note__ca {
	margin-top: 2px !important;
	color: #ff2626;
	font-weight: 700;
}

/* ------------------------------------------------------------------ payment badges */
.rm-pay-badges {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	vertical-align: middle;
}
.rm-pay-badges img {
	display: block;
	width: 40px;
	height: 25px;
	max-width: none;
	margin: 0 !important;
	border-radius: 3px;
	box-shadow: none;
}

/* checkout payment list */
.woocommerce-checkout #payment ul.payment_methods li > label {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.woocommerce-checkout #payment .rm-pay-badges--gateway {
	margin-left: auto;
}
.woocommerce-checkout #payment li.payment_method_stripe > label,
.woocommerce-checkout #payment li.payment_method_ppcp-gateway > label {
	width: calc(100% - 40px);
}
.woocommerce-checkout #payment .stripe-cards-icon {
	display: none !important;
}

.rm-secure-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 14px !important;
	font-size: 12px;
	line-height: 1.5;
	color: #555;
}
/* lock icon via CSS – gateway descriptions are run through wp_kses, which strips inline SVG */
.rm-secure-note::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a9b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
}
.woocommerce-checkout #payment #wc-stripe-upe-form {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
@media (max-width: 767px) {
	.woocommerce-checkout #payment div.payment_box {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.woocommerce-checkout #payment .rm-pay-badges--gateway {
		margin-left: 0;
	}
}
.rm-lock {
	flex-shrink: 0;
	color: #1a9b3c;
	vertical-align: -2px;
}
.rm-secure-note .rm-lock {
	margin-top: 1px;
}

.rm-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 0 0 14px;
	font-size: 12px;
	color: #555;
}
.rm-checkout-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ------------------------------------------------------------------ footer */
.rm-footer-pay {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rm-footer-pay .rm-pay-badges {
	gap: 8px;
}
.rm-footer-pay .rm-pay-badges img {
	width: 48px;
	height: 30px;
}
.rm-footer-pay__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}
.rm-footer-pay__note .rm-lock {
	color: #2fc25b;
}

/* ------------------------------------------------------------------ checkout: invalid fields */
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection {
	border-color: #d0021b !important;
	box-shadow: 0 0 0 1px #d0021b !important;
}
.woocommerce-checkout .form-row.woocommerce-invalid label,
.woocommerce-checkout .form-row .checkout-inline-error-message,
.woocommerce-checkout .form-row [id$="-description"][role="alert"] {
	color: #d0021b !important;
}

/* ------------------------------------------------------------------ phones: no iOS zoom on focus */
@media (max-width: 991px) {
	.woocommerce-checkout input.input-text,
	.woocommerce-checkout select,
	.woocommerce-checkout textarea,
	.woocommerce-checkout .select2-container .select2-selection,
	.woocommerce-account input.input-text,
	.woocommerce-cart-form input.qty,
	.woocommerce-cart-form #coupon_code,
	.single-product form.cart input.qty {
		font-size: 16px !important;
	}
}

/* ------------------------------------------------------------------ product: sticky add to cart */
.rm-buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 990;
	background: #1b1b1b;
	border-top: 2px solid #ff2626;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
	transform: translateY(110%);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
	padding-bottom: env(safe-area-inset-bottom, 0);
}
.rm-buybar.is-visible {
	transform: translateY(0);
}
.rm-buybar__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 20px;
}
.rm-buybar__product {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
}
.rm-buybar__img {
	width: 48px !important;
	height: 48px !important;
	object-fit: contain;
	background: #fff;
	border-radius: 2px;
	flex-shrink: 0;
}
.rm-buybar__name {
	overflow: hidden;
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.rm-buybar__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	color: #fff;
	line-height: 1.2;
}
.rm-buybar__price del {
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}
.rm-buybar__price strong {
	font-family: Michroma, sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: #fff;
}
.rm-buybar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-shrink: 0;
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 0;
	background: #ff2626;
	color: #fff;
	font-family: Michroma, sans-serif;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s;
}
.rm-buybar__btn:hover,
.rm-buybar__btn:focus-visible {
	background: #d91a1a;
}
.rm-buybar__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* hide the bar while a Bricks popup (e.g. "added to cart") is open */
body:has(.brx-popup:not(.hide)) .rm-buybar {
	transform: translateY(110%);
}
/* keep floating widgets above the bar: Tidio chat bubble (moved back down while the chat is open) */
#tidio-chat {
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.rm-buybar-on:not(.rm-tidio-open) #tidio-chat {
	transform: translateY(-76px);
}
@media (max-width: 767px) {
	.rm-buybar__inner {
		gap: 12px;
		padding: 10px 14px;
	}
	.rm-buybar__product {
		display: none;
	}
	.rm-buybar__price {
		flex: 1 1 auto;
		align-items: flex-start;
	}
	.rm-buybar__btn {
		flex: 1 1 auto;
		max-width: 220px;
		padding: 0 18px;
		font-size: 13px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rm-buybar {
		transition: none;
	}
}

/* ------------------------------------------------------------------ mobile cart: image next to name */
@media (max-width: 767px) {
	.woocommerce-cart-form table.shop_table_responsive tr.cart_item {
		display: grid !important;
		grid-template-columns: 76px auto minmax(0, 1fr) 32px;
		grid-template-areas:
			"thumb name name remove"
			"thumb price price price"
			"thumb qty subtotal subtotal";
		column-gap: 14px;
		row-gap: 6px;
		align-items: center;
		padding: 16px 0 !important;
		border-bottom: 1px solid #e6e6e6;
	}
	.woocommerce-cart-form table.shop_table_responsive tr.cart_item > * {
		display: block !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
		background: none !important;
		min-width: 0;
	}
	.woocommerce-cart-form table.shop_table_responsive tr.cart_item > *::before {
		display: none !important;
		content: none !important;
	}
	.woocommerce-cart-form tr.cart_item .product-thumbnail {
		grid-area: thumb;
		align-self: start;
	}
	.woocommerce-cart-form tr.cart_item .product-thumbnail img {
		width: 76px !important;
		height: 76px !important;
		max-width: none !important;
		object-fit: contain;
		margin: 0 !important;
	}
	.woocommerce-cart-form tr.cart_item .product-name {
		grid-area: name;
		align-self: start;
	}
	.woocommerce-cart-form tr.cart_item .product-name,
	.woocommerce-cart-form tr.cart_item .product-name a {
		font-size: 13px !important;
		line-height: 1.45 !important;
	}
	.woocommerce-cart-form tr.cart_item .product-remove {
		grid-area: remove;
		align-self: start;
		justify-self: end;
	}
	.woocommerce-cart-form tr.cart_item .product-remove a.remove {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		margin: -12px -12px 0 0;
		font-size: 22px !important;
		line-height: 1 !important;
	}
	.woocommerce-cart-form tr.cart_item .product-price {
		grid-area: price;
		align-self: start;
		font-size: 13px;
	}
	.woocommerce-cart-form tr.cart_item .product-price del,
	.woocommerce-cart-form tr.cart_item .product-price ins {
		display: inline !important;
		margin-right: 6px;
	}
	.woocommerce-cart-form tr.cart_item .product-quantity {
		grid-area: qty;
	}
	.woocommerce-cart-form tr.cart_item .product-subtotal {
		grid-area: subtotal;
		justify-self: end;
		font-weight: 700;
	}
	.woocommerce-cart-form tr.cart_item .quantity {
		display: inline-flex !important;
		width: auto !important;
		margin: 4px 0 0 !important;
	}
	.woocommerce-cart-form tr.cart_item .quantity input.qty {
		width: 48px !important;
		min-width: 0 !important;
		height: 44px !important;
		padding: 0 !important;
		text-align: center;
	}
	/* +/- tap targets: 44px */
	.woocommerce-cart-form tr.cart_item .quantity .action {
		width: 44px !important;
		min-width: 44px;
		height: 44px !important;
	}
	.woocommerce-cart-form tr.cart_item .product-subtotal {
		align-self: center;
		margin-top: 4px;
	}
}

/* ------------------------------------------------------------------ homepage hero: selling points */
.rm-hero-points ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 18px;
	padding: 0;
	list-style: none;
}
.rm-hero-points li {
	position: relative;
	margin: 0;
	padding-left: 32px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	line-height: 1.4;
	text-align: left;
}
.rm-hero-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ff2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px;
}
.rm-hero-points li strong {
	color: #fff;
	font-weight: 700;
}
@media (max-width: 767px) {
	.rm-hero-points {
		width: fit-content;
		margin-inline: auto;
	}
	.rm-hero-points li {
		font-size: 15px;
	}
}

/* footer "We accept" heading sits below the social icons */
.rm-footer-pay-heading {
	margin-top: 36px !important;
}

/* ------------------------------------------------------------------ product cards (category, homepage, related, cart) */
/* whole card clickable: the title link is stretched over the card; image, category link and button stay on top */
.product-item {
	position: relative;
}
.product-item .product-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.product-item .product-badges,
.product-item .product-image,
.product-item .brxe-product-meta a,
.product-item .brxe-product-add-to-cart {
	position: relative;
	z-index: 3;
}
.product-item .product-badges {
	position: absolute;
}
/* long model ranges ("2500/3500/4500/5500") wrap instead of widening the page on phones */
.product-item .product-title,
.product-item .product-title a {
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ mobile menu: 44px tap targets in submenus */
@media (max-width: 991px) {
	.bricks-mobile-menu .sub-menu > li > a {
		display: flex !important;
		align-items: center;
		min-height: 44px;
	}
}

/* ---------- Reviews block: Customer Reviews + Success Stories (migration 2026_12_04_reviews_block) ---------- */
.rm-reviews-block{background:#fff;padding-top:40px;padding-bottom:0}
.rm-reviews-block > .brxe-container:last-child{margin-bottom:0!important}
.rm-success-stories > .brxe-section{padding-top:56px;padding-bottom:80px}
.rm-reviews-block-part + .rm-success-stories > .brxe-section{padding-top:40px;padding-bottom:30px}
@media (max-width:767px){
  .rm-reviews-block{padding-top:32px}
  .rm-success-stories > .brxe-section{padding-top:40px;padding-bottom:56px}
  .rm-reviews-block-part + .rm-success-stories > .brxe-section{padding-bottom:20px}
  /* 3 story images: a swipeable strip (next image peeks out) instead of 3 unreadable thumbnails */
  .rm-success-stories .brxe-image-gallery{display:flex!important;flex-wrap:nowrap!important;gap:12px!important;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
  .rm-success-stories .brxe-image-gallery::-webkit-scrollbar{display:none}
  .rm-success-stories .brxe-image-gallery > li{flex:0 0 84%;scroll-snap-align:start}
}
