:root {
	--burtono-green: #185544;
	--burtono-green-dark: #103f34;
	--burtono-red: #c8102e;
	--burtono-line: #d8e1dc;
}

/* Reuse the approved official logo in page-level shells that previously used text. */
.bt-brand,
.btp-brand {
	display: block !important;
	flex: 0 0 auto !important;
	width: 212px !important;
	height: 60px !important;
	overflow: hidden !important;
	background: url("https://www.burtono.com/wp-content/uploads/2026/07/burtono-sports-gloves-factory-logo.png") left center / contain no-repeat !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	white-space: nowrap !important;
}

/* Align page-level calls to action with the homepage green/red brand system. */
.bt-menu .quote,
.btp-nav .quote,
.bt-btn.primary,
.btp-btn.primary,
.bt-form-submit,
.wpcf7 input[type="submit"] {
	border-color: var(--burtono-green) !important;
	background: var(--burtono-green) !important;
	color: #fff !important;
}

.bt-menu .quote:hover,
.btp-nav .quote:hover,
.bt-btn.primary:hover,
.btp-btn.primary:hover,
.bt-form-submit:hover,
.wpcf7 input[type="submit"]:hover {
	border-color: var(--burtono-green-dark) !important;
	background: var(--burtono-green-dark) !important;
}

.bt-menu .quote:focus-visible,
.btp-nav .quote:focus-visible,
.bt-btn:focus-visible,
.btp-btn:focus-visible,
.wpcf7 input[type="submit"]:focus-visible,
.burtono-shell-toggle:focus-visible {
	outline: 3px solid rgba(200, 16, 46, .38) !important;
	outline-offset: 3px !important;
}

/* Prevent article tables from widening the entire mobile page. */
body.archive .bt-table,
body.single-post .bt-table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Keep the complete RFQ in the contact hero while preserving the existing form. */
.bt-contact-hero .btp-wrap {
	grid-template-columns: minmax(0, .84fr) minmax(520px, 1.16fr) !important;
	align-items: start !important;
}

/* The page-level style is emitted after this plugin. Use the page ID so a
 * long RFQ never vertically centres and hides the introductory copy on desktop. */
body.page-id-15 .bt-contact-hero .btp-wrap {
	align-items: start !important;
}

.bt-contact-form-first {
	padding: 24px !important;
	border-color: #c9d9d2 !important;
	border-radius: 14px !important;
	box-shadow: 0 18px 48px rgba(20, 52, 43, .10) !important;
}

.bt-contact-form-first .bt-contact-form-intro {
	margin-bottom: 18px;
}

.bt-contact-form-first .bt-contact-form-intro h2 {
	margin: 6px 0 5px !important;
	font-size: 27px !important;
	line-height: 1.1 !important;
}

.bt-contact-form-first .bt-contact-form-intro p {
	margin: 0 !important;
	color: #62706b !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
}

.bt-contact-form-first .bt-contact-form-intro .btp-kicker {
	color: var(--burtono-green) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .11em !important;
	text-transform: uppercase !important;
}

.bt-contact-form-first .bt-form-grid {
	gap: 12px !important;
}

.bt-contact-form-first label {
	font-size: 12px !important;
}

.bt-contact-form-first input,
.bt-contact-form-first select,
.bt-contact-form-first textarea {
	margin-top: 5px !important;
	padding: 10px 11px !important;
	border-color: #cad7d1 !important;
	border-radius: 7px !important;
	font-size: 13px !important;
}

.bt-contact-form-first textarea {
	min-height: 104px !important;
}

.bt-contact-form-first .bt-form-consent {
	display: block;
	grid-column: 1 / -1;
	padding-top: 4px;
	font-size: 12px !important;
}

.bt-contact-form-first .bt-form-consent > .bt-form-label {
	display: block;
	margin-bottom: 7px;
	font-weight: 700;
	color: #172522;
}

.bt-contact-form-first .bt-form-consent .wpcf7-list-item {
	margin: 0 !important;
}

.bt-contact-form-first .bt-form-consent .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	color: #44534d;
}

.bt-contact-form-first .bt-form-consent input[type="checkbox"] {
	width: auto !important;
	margin: 2px 0 0 !important;
	accent-color: var(--burtono-green);
}

.bt-contact-form-first .bt-form-privacy-note {
	margin: 7px 0 0 !important;
	color: #68756f !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
}

.burtono-shell-toggle {
	display: none;
}

@media (max-width: 760px) {
	.bt-nav-inner,
	.btp-sitebar > .btp-wrap {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		flex-wrap: wrap !important;
		gap: 12px !important;
	}

	.bt-brand,
	.btp-brand {
		width: 214px !important;
		height: 61px !important;
	}

	.burtono-shell-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		padding: 0;
		border: 1px solid var(--burtono-line);
		border-radius: 8px;
		background: #fff;
		color: #172522;
		font: 700 22px/1 Arial, sans-serif;
		cursor: pointer;
	}

	html.burtono-site-quality-js .bt-menu,
	html.burtono-site-quality-js .btp-nav {
		display: none !important;
		grid-template-columns: 1fr 1fr !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 14px 0 4px !important;
		gap: 8px 14px !important;
		border-top: 1px solid var(--burtono-line) !important;
	}

	html.burtono-site-quality-js [data-burtono-menu-open="true"] > .bt-menu,
	html.burtono-site-quality-js [data-burtono-menu-open="true"] > .btp-nav {
		display: grid !important;
	}

	.bt-menu a,
	.btp-nav a {
		display: flex !important;
		align-items: center !important;
		min-height: 42px !important;
		padding: 8px 10px !important;
		border-radius: 6px !important;
	}

	.bt-menu .quote,
	.btp-nav .quote {
		grid-column: 1 / -1 !important;
		justify-content: center !important;
	}

	.bt-contact-hero .btp-wrap {
		display: flex !important;
		flex-direction: column !important;
		gap: 22px !important;
	}

	.bt-contact-intro {
		display: contents !important;
	}

	.bt-contact-intro > .btp-kicker,
	.bt-contact-intro > h1,
	.bt-contact-intro > .lead {
		order: 1;
	}

	.bt-contact-form-first {
		order: 2;
		width: 100%;
		padding: 19px 16px !important;
	}

	.bt-contact-intro > .btp-facts {
		order: 3;
	}

	.bt-contact-form-first .bt-form-grid {
		grid-template-columns: 1fr !important;
	}

	/*
	 * Keep image-led homepage sections substantial without stacking every card.
	 * Each rail remains touch-scrollable, keyboard-scrollable, and fully reversible
	 * by deactivating this plugin.
	 */
	.home .gb-element-catalog-grid,
	.home .gb-element-process-grid,
	.home .gb-element-certification-grid,
	.home .gb-element-proof-gallery {
		display: flex !important;
		grid-template-columns: none !important;
		align-items: stretch !important;
		gap: 14px !important;
		max-width: none !important;
		margin-right: -18px !important;
		padding: 0 18px 14px 0 !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 0;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: #9db8ad #eef3f0;
	}

	.home .gb-element-catalog-grid > *,
	.home .gb-element-process-grid > *,
	.home .gb-element-certification-grid > *,
	.home .gb-element-proof-gallery > * {
		flex: 0 0 min(84vw, 328px) !important;
		width: min(84vw, 328px) !important;
		max-width: min(84vw, 328px) !important;
		scroll-snap-align: start;
		scroll-snap-stop: normal;
	}

	.home .gb-element-proof-gallery > * {
		flex-basis: min(78vw, 304px) !important;
		width: min(78vw, 304px) !important;
		max-width: min(78vw, 304px) !important;
	}

	.home .gb-element-catalog-grid::-webkit-scrollbar,
	.home .gb-element-process-grid::-webkit-scrollbar,
	.home .gb-element-certification-grid::-webkit-scrollbar,
	.home .gb-element-proof-gallery::-webkit-scrollbar {
		height: 6px;
	}

	.home .gb-element-catalog-grid::-webkit-scrollbar-thumb,
	.home .gb-element-process-grid::-webkit-scrollbar-thumb,
	.home .gb-element-certification-grid::-webkit-scrollbar-thumb,
	.home .gb-element-proof-gallery::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: #9db8ad;
	}

	.home .gb-element-catalog-grid::-webkit-scrollbar-track,
	.home .gb-element-process-grid::-webkit-scrollbar-track,
	.home .gb-element-certification-grid::-webkit-scrollbar-track,
	.home .gb-element-proof-gallery::-webkit-scrollbar-track {
		border-radius: 999px;
		background: #eef3f0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-menu *,
	.btp-nav *,
	.burtono-shell-toggle {
		transition: none !important;
	}
}
