/*
Theme Name:   Weldsafe
Description:  Storefront child theme matching the look of www.weldsafe.co.uk.
Author:       Weldsafe Ltd
Template:     storefront
Version:      1.0.41
Text Domain:  weldsafe
*/

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 100 1000;
	font-display: swap;
	src: url("assets/fonts/dm-sans-latin-italic.woff2") format("woff2");
}

:root {
	--ws-red: #ce0e2d;
	--ws-red-dark: #9c0b22;
	--ws-ink: #1c1917;
	--ws-ink-2: #2a2827;
	--ws-stone: #57534e;
	--ws-stone-light: #78716c;
	--ws-line: #d6d3d1;
	--ws-paper: #f5f5f4;
	--ws-white: #fff;
	--ws-radius: 4px;
}

/* ---------- Base ---------- */

body,
button,
input,
select,
textarea,
.button {
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
body {
	background: var(--ws-white);
	color: var(--ws-ink);
}
h1, h2, h3, h4, h5, h6,
.site-title {
	color: var(--ws-ink);
	font-weight: 700;
	letter-spacing: 0;
}
a {
	color: var(--ws-red);
}
a:hover,
a:focus {
	color: var(--ws-red-dark);
}
:focus-visible {
	outline: 3px solid var(--ws-red);
	outline-offset: 2px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wc-block-components-button:not(.is-link),
.added_to_cart {
	background-color: var(--ws-red);
	border-color: var(--ws-red);
	color: var(--ws-white);
	border-radius: var(--ws-radius);
	font-weight: 500;
}
button:hover,
input[type="submit"]:hover,
.button:hover,
.wc-block-components-button:not(.is-link):hover,
.added_to_cart:hover {
	background-color: var(--ws-red-dark);
	border-color: var(--ws-red-dark);
	color: var(--ws-white);
}
button.alt,
.button.alt,
.single_add_to_cart_button,
.checkout-button,
#place_order {
	background-color: var(--ws-red) !important;
	border-color: var(--ws-red) !important;
}
button.alt:hover,
.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover {
	background-color: var(--ws-red-dark) !important;
	border-color: var(--ws-red-dark) !important;
}

.weldsafe-outline-button,
.wp-block-button.is-style-outline > .wp-block-button__link {
	display: inline-block;
	padding: .35em 1.25em;
	border: 2px solid var(--ws-red);
	border-radius: var(--ws-radius);
	color: var(--ws-red);
	background: transparent;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.weldsafe-outline-button:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ws-red);
	color: var(--ws-white);
}

/* ---------- Header ---------- */

.site-header {
	background: var(--ws-white);
	color: var(--ws-ink);
	border-bottom: 0;
	padding-top: 0;
	margin-bottom: 0;
}
.site-header > .col-full {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.site-header > .col-full::before,
.site-header > .col-full::after,
.storefront-primary-navigation > .col-full::before,
.storefront-primary-navigation > .col-full::after {
	display: none;
}
.site-header .site-branding,
.woocommerce-active .site-header .site-branding {
	flex: 0 0 auto;
	width: auto;
	float: none;
	margin: 0 auto 0 0;
}
.site-header .custom-logo-link img,
.site-header .site-logo-anchor img {
	max-width: 200px;
	height: auto;
}
.site-header .site-search,
.woocommerce-active .site-header .site-search {
	flex: 1 1 320px;
	order: 2;
	width: auto;
	max-width: 560px;
	float: none;
	margin: 0;
	clear: none;
}
.site-header .site-search .widget_product_search form input[type="search"],
.site-header .site-search input.search-field {
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-white);
	box-shadow: none;
	padding: .55em 1em .55em 2.6em;
}
.weldsafe-account {
	order: 3;
}
.site-header .site-header-cart,
.woocommerce-active .site-header .site-header-cart {
	order: 4;
	width: auto;
	float: none;
	margin: 0;
	list-style: none;
}
.site-header-cart .cart-contents {
	color: var(--ws-ink);
	padding: .5em 0;
}
.site-header-cart .cart-contents .count {
	opacity: 1;
	background: var(--ws-ink);
	color: var(--ws-white);
	border-radius: 999px;
	padding: 0 .55em;
	font-size: .8em;
}

/* Red menu bar */
.storefront-primary-navigation {
	background: var(--ws-red);
	clear: both;
}
.storefront-primary-navigation > .col-full {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	position: relative;
}
.main-navigation {
	flex: 1 1 auto;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	color: var(--ws-white);
	padding: 1.25em 1em;
	font-weight: 500;
}
.main-navigation ul.menu > li > a:hover,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current-menu-ancestor > a {
	color: var(--ws-white);
	background: var(--ws-red-dark);
}
.main-navigation ul.menu > li.menu-item-has-children > a::after {
	color: var(--ws-white);
}
.main-navigation ul.menu > li.weldsafe-menu-contact {
	display: none;
}
.weldsafe-contact-button {
	display: flex;
	align-items: center;
	padding: 0 2em;
	background: var(--ws-red-dark);
	color: var(--ws-white);
	font-weight: 500;
	text-decoration: none;
}
.weldsafe-contact-button:hover,
.weldsafe-contact-button:focus {
	color: var(--ws-white);
	background: var(--ws-ink-2);
}

/* Drop-downs */
.main-navigation ul ul,
.main-navigation ul.menu ul.sub-menu {
	background: var(--ws-white);
	box-shadow: 0 10px 30px rgba(28, 25, 23, .18);
	border-top: 3px solid var(--ws-red-dark);
}
.main-navigation ul ul li a,
.main-navigation ul.menu ul li a {
	color: var(--ws-ink);
	text-transform: capitalize;
	padding: .45em 1em;
}
.main-navigation ul ul li a:hover,
.main-navigation ul.menu ul li a:hover {
	color: var(--ws-red);
	background: var(--ws-paper);
}

/* Products and Manufacturers open as wide multi-column panels (desktop only) */
@media (min-width: 768px) {
	.main-navigation ul.menu > li.weldsafe-mega {
		position: static;
	}
	.main-navigation ul.menu > li.weldsafe-mega > ul.sub-menu {
		left: 0;
		right: 0;
		width: auto;
		max-height: 75vh;
		overflow-y: auto;
		padding: 1.25em 1.5em;
		columns: 4 200px;
		column-gap: 2em;
	}
	.main-navigation ul.menu > li.weldsafe-mega > ul.sub-menu {
		display: none;
	}
	.main-navigation ul.menu > li.weldsafe-mega:hover > ul.sub-menu,
	.main-navigation ul.menu > li.weldsafe-mega:focus-within > ul.sub-menu,
	.main-navigation ul.menu > li.weldsafe-mega.focus > ul.sub-menu {
		display: block;
	}
	.main-navigation ul.menu > li.weldsafe-mega > ul.sub-menu > li {
		display: block;
		break-inside: avoid;
		margin-bottom: .75em;
	}
	.main-navigation ul.menu > li.weldsafe-mega > ul.sub-menu > li > a {
		width: auto;
		padding: .3em 0;
		font-weight: 700;
		color: var(--ws-red);
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu li {
		display: block;
		float: none;
		width: auto;
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu li a {
		width: auto;
		display: block;
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu ul.sub-menu {
		position: static;
		float: none;
		display: block;
		width: auto;
		left: auto;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0;
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu ul.sub-menu li a {
		width: auto;
		padding: .15em 0;
		font-size: .9em;
		color: var(--ws-stone);
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu li.menu-item-has-children > a::after {
		display: none;
	}
	.main-navigation ul.menu > li.weldsafe-mega ul.sub-menu ul.sub-menu ul.sub-menu {
		padding-left: .75em;
	}
}

/* Small screens */
@media (max-width: 767px) {
	.site-header > .col-full {
		gap: 10px 16px;
	}
	.site-header .site-search {
		flex-basis: 100%;
		max-width: none;
		order: 5;
	}
	.weldsafe-account .weldsafe-outline-button {
		padding: .25em .8em;
	}
	.storefront-primary-navigation > .col-full {
		flex-wrap: wrap;
	}
	.main-navigation {
		flex-basis: 100%;
	}
	.menu-toggle {
		color: var(--ws-white);
		border-color: rgba(255, 255, 255, .6);
		margin: .6em 0;
	}
	.menu-toggle::before,
	.menu-toggle::after,
	.menu-toggle span::before {
		background-color: var(--ws-white);
	}
	.main-navigation .handheld-navigation {
		background: var(--ws-white);
	}
	.main-navigation .handheld-navigation a {
		color: var(--ws-ink);
	}
	.weldsafe-contact-button {
		position: absolute;
		right: 1em;
		top: 0;
		height: 3.4em;
		padding: 0 1em;
	}
}

/* ---------- Content ---------- */

.site-content {
	padding-top: 0;
}
.storefront-breadcrumb {
	background: var(--ws-paper);
	padding: .8em 0;
	margin-bottom: 2em;
}
.woocommerce-breadcrumb {
	font-size: .875em;
	color: var(--ws-stone);
}
.woocommerce-breadcrumb a {
	color: var(--ws-stone);
}
.page-template-template-fullwidth-php .site-main {
	margin-bottom: 0;
}
.page-template-template-fullwidth-php .site-content > .col-full {
	max-width: none;
	padding: 0;
}
.page-template-template-fullwidth-php .hentry,
.page-template-template-fullwidth-php .hentry .entry-content {
	margin: 0;
	padding: 0;
	border: 0;
}

/* ---------- Product listings ---------- */

ul.products li.product {
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 12px 12px 18px;
	background: var(--ws-white);
	transition: box-shadow .2s;
}
ul.products li.product:hover {
	box-shadow: 0 6px 20px rgba(28, 25, 23, .1);
}
ul.products li.product img {
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--ws-white);
}
ul.products li.product .woocommerce-loop-product__title {
	color: var(--ws-ink);
	font-size: 1em;
	font-weight: 500;
}
ul.products li.product .price,
.single-product div.product p.price {
	color: var(--ws-red);
	font-weight: 700;
}
.price .woocommerce-price-suffix {
	color: var(--ws-stone-light);
	font-weight: 400;
}
.onsale {
	border-color: var(--ws-red);
	color: var(--ws-red);
}
.weldsafe-poa {
	color: var(--ws-ink);
	font-weight: 700;
}
.weldsafe-quote-box {
	margin: 0 0 1.5em;
	padding: 1em 1.25em;
	border-left: 4px solid var(--ws-red);
	background: var(--ws-paper);
	border-radius: var(--ws-radius);
}
.weldsafe-quote-box p {
	margin: 0;
}

.woocommerce-tabs ul.tabs li a {
	color: var(--ws-ink);
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--ws-red);
}
.widget_product_categories a,
.wc-block-product-categories-list a {
	color: var(--ws-ink);
}

/* ---------- Homepage blocks ---------- */

.weldsafe-badges {
	background: var(--ws-ink);
	color: var(--ws-white);
	margin: 0 !important;
}
.weldsafe-badges p {
	margin: 0;
	font-size: .95em;
}
.weldsafe-badges .weldsafe-badge::before {
	content: "";
	display: inline-block;
	width: .6em;
	height: .6em;
	margin-right: .6em;
	border-radius: 50%;
	background: var(--ws-red);
	vertical-align: middle;
}
.weldsafe-section {
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 1.5em;
	padding-right: 1.5em;
}
figure.weldsafe-cat-tile {
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
}
figure.weldsafe-cat-tile img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .3s;
}
figure.weldsafe-cat-tile a:hover img {
	transform: scale(1.04);
}
h3.weldsafe-cat-tile {
	font-size: 1.15em;
	margin: .6em 0 1.5em;
	text-transform: capitalize;
}
h3.weldsafe-cat-tile a {
	color: var(--ws-ink);
	text-decoration: none;
}
h3.weldsafe-cat-tile a:hover {
	color: var(--ws-red);
}
.weldsafe-service h2 {
	text-transform: capitalize;
}
.weldsafe-story {
	border-radius: 16px;
	overflow: hidden;
}
.weldsafe-story h2,
.weldsafe-story p {
	color: var(--ws-white);
}
.weldsafe-story .wp-block-button__link {
	background: var(--ws-white);
	color: var(--ws-red);
}
.weldsafe-story .wp-block-button__link:hover {
	background: var(--ws-ink);
	color: var(--ws-white);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--ws-white);
	color: var(--ws-ink);
	border-top: 4px solid var(--ws-red);
	padding: 0;
}
.site-footer a:not(.button) {
	color: var(--ws-red);
}
.weldsafe-footer-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 2em 0 1.5em;
	border-bottom: 1px solid #ececec;
}
.weldsafe-footer-logo img {
	max-width: 160px;
	height: auto;
}
.weldsafe-social {
	display: flex;
	gap: 1.25em;
	list-style: none;
	margin: 0;
}
.weldsafe-footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2em;
	padding: 2em 0;
}
.weldsafe-footer-col h2 {
	font-size: 1.125em;
	text-transform: capitalize;
	margin-bottom: .75em;
	color: var(--ws-ink);
}
.weldsafe-footer-col ul {
	list-style: none;
	margin: 0;
}
.weldsafe-footer-col li {
	margin-bottom: .35em;
}
.weldsafe-footer-col address {
	font-style: normal;
	margin-bottom: 1em;
}
.weldsafe-newsletter {
	display: flex;
	flex-direction: column;
	gap: .6em;
}
.weldsafe-newsletter input[type="email"] {
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-white);
	box-shadow: none;
}
.weldsafe-copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5em 2em;
	padding: 1em 0;
	box-shadow: 0 0 0 100vmax var(--ws-ink);
	clip-path: inset(0 -100vmax);
	background: var(--ws-ink);
	color: #e7e5e4;
	font-size: .85em;
}
.site-footer {
	overflow-x: clip;
}

/* Storefront's mobile footer bar */
.storefront-handheld-footer-bar ul li > a,
.storefront-handheld-footer-bar ul li.search .site-search {
	background-color: var(--ws-ink);
	color: var(--ws-white);
}

/* Homepage spacing */
.weldsafe-section {
	margin-top: 3.5em !important;
	margin-bottom: 0 !important;
}
.weldsafe-section:last-child {
	margin-bottom: 3.5em !important;
}
.weldsafe-badges > .wp-block-columns {
	max-width: 1200px;
	margin: 0 auto !important;
	padding: .9em 1.5em;
	gap: 1em;
}
.weldsafe-badges .wp-block-column {
	text-align: center;
}
.weldsafe-service {
	margin-bottom: 2em;
	gap: 0;
}
.weldsafe-service .wp-block-media-text__media img {
	border-radius: 8px;
}
.weldsafe-story .wp-block-media-text__content {
	padding: 2.5em;
}
.weldsafe-story .wp-block-media-text__media img {
	height: 100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.weldsafe-badges .wp-block-column {
		text-align: left;
	}
	.weldsafe-story .wp-block-media-text__content {
		padding: 1.75em 1.25em;
	}
}

.weldsafe-newsletter-status {
	margin: 0;
	font-size: .875em;
	color: var(--ws-stone);
}
.weldsafe-newsletter-status:empty {
	display: none;
}

/* ---------- Enquiry form (Contact Form 7) ---------- */

.wpcf7 form p {
	margin-bottom: 1em;
}
.wpcf7 label {
	display: block;
	font-weight: 500;
	font-size: .95em;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	margin-top: .3em;
	padding: .6em .8em;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-white);
	box-shadow: none;
	font-weight: 400;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--ws-red);
}
.weldsafe-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	column-gap: 1em;
}
.weldsafe-consent {
	font-size: .9em;
}
.weldsafe-consent .wpcf7-list-item {
	margin: 0 .4em 0 0;
}
.wpcf7 .wpcf7-not-valid-tip {
	color: var(--ws-red-dark);
	font-size: .875em;
}
.wpcf7 form .wpcf7-response-output {
	margin: 1em 0 0;
	padding: .75em 1em;
	border-radius: var(--ws-radius);
}
.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
}
.weldsafe-contact-columns > .wp-block-column:last-child {
	background: var(--ws-paper);
	padding: 1.5em;
	border-radius: 8px;
}
.weldsafe-quote-form {
	margin: 0 0 1.5em;
}
.weldsafe-quote-form > summary {
	display: inline-block;
	cursor: pointer;
	list-style: none;
}
.weldsafe-quote-form > summary::-webkit-details-marker {
	display: none;
}
.weldsafe-quote-form[open] > summary {
	margin-bottom: 1em;
}
.weldsafe-quote-form .wpcf7 {
	padding: 1.25em;
	background: var(--ws-paper);
	border-radius: 8px;
}

/* ---------- Manufacturer logos: identical cells (homepage strip, Manufacturers page, brand archives) ---------- */

.weldsafe-brands,
.weldsafe-brands > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}
.weldsafe-brands {
	margin: 1.5em 0;
}
/* Classic themes wrap group contents in an inner container; let it span the grid and be the grid. */
.weldsafe-brands > .wp-block-group__inner-container {
	grid-column: 1 / -1;
}
.weldsafe-brands .wp-block-image,
.weldsafe-brands .weldsafe-brand-text {
	margin: 0;
	height: 90px;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: var(--ws-white);
	transition: border-color .2s, box-shadow .2s;
}
.weldsafe-brands .wp-block-image:hover,
.weldsafe-brands .wp-block-image:focus-within,
.weldsafe-brands .weldsafe-brand-text:hover,
.weldsafe-brands .weldsafe-brand-text:focus-within {
	border-color: var(--ws-line);
	box-shadow: 0 4px 14px rgba(28, 25, 23, .08);
}
.weldsafe-brands .wp-block-image a,
.weldsafe-brands .weldsafe-brand-text a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.weldsafe-brands .wp-block-image img {
	width: auto;
	height: auto;
	max-width: 85%;
	max-height: 60px;
	object-fit: contain;
}
.weldsafe-brands .weldsafe-brand-text a {
	color: var(--ws-stone);
	font-size: 1.35em;
	font-weight: 800;
	letter-spacing: .02em;
	text-decoration: none;
	text-align: center;
	line-height: 1.1;
	padding: 0 8%;
}
.weldsafe-brands .weldsafe-brand-text a:hover,
.weldsafe-brands .weldsafe-brand-text a:focus {
	color: var(--ws-ink);
}
@media (max-width: 1023px) {
	.weldsafe-brands,
	.weldsafe-brands > .wp-block-group__inner-container {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	.weldsafe-brands,
	.weldsafe-brands > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
}

/* Brand archive pages: the logo in the same cell as above */
.tax-product_brand .brand-thumbnail {
	display: block;
	box-sizing: content-box;
	width: 154px; /* 85% of a 180px cell */
	height: 60px;
	padding: 15px 13px;
	margin: 0 0 1.5em;
	object-fit: contain;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: var(--ws-white);
}

/* Tablets: keep logo, search, Sign In and basket on one line */
@media (min-width: 768px) and (max-width: 1023px) {
	.site-header .site-search,
	.woocommerce-active .site-header .site-search {
		flex: 1 1 160px;
	}
	.site-header > .col-full {
		gap: 12px 16px;
	}
}

@media (max-width: 767px) {
	/* Contact Us goes on the left of the red bar so it does not cover the menu toggle on the right */
	.weldsafe-contact-button {
		right: auto;
		left: 1em;
	}
}
@media (max-width: 767px) {
	.menu-toggle,
	.menu-toggle:hover,
	.menu-toggle:focus {
		background: transparent;
		color: var(--ws-white);
	}
	.menu-toggle span {
		background: transparent;
		color: var(--ws-white);
	}
	.weldsafe-badges > .wp-block-columns,
	.weldsafe-badges .wp-block-columns {
		gap: .4em;
		padding: .8em 1.25em;
	}
	.weldsafe-badges .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Delivery page note */
.weldsafe-note {
	padding: .9em 1.1em;
	border-left: 4px solid var(--ws-red);
	background: var(--ws-paper);
	border-radius: var(--ws-radius);
}

/* ---------- Sidebar: product category accordion (WPB Accordion Menu) ---------- */

.widget .wpb_category_n_menu_accordion {
	border: 1px solid #ececec;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ws-white);
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a {
	background: var(--ws-white);
	color: var(--ws-ink);
	font-family: inherit;
	font-size: .95em;
	font-weight: 500;
	line-height: 1.35;
	padding: .7em 4.2em .7em 1em;
	border-bottom: 1px solid #f0efee;
	text-decoration: none;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul ul li a {
	padding-left: 1.75em;
	font-size: .9em;
	font-weight: 400;
	color: var(--ws-stone);
	background: #fafaf9;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul ul ul li a {
	padding-left: 2.5em;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a:hover,
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a:focus-visible {
	background: var(--ws-paper);
	color: var(--ws-red);
}
/* The category being viewed: red bar and red text; its parents bold */
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li.current-cat > a {
	color: var(--ws-red);
	font-weight: 700;
	background: #fdf2f4;
	box-shadow: inset 4px 0 0 var(--ws-red);
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li.weldsafe-current-cat-ancestor > a,
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark > ul > li.wpb-submenu-indicator-minus > a {
	color: var(--ws-ink);
	font-weight: 700;
}
/* Product counts as small grey pills */
.widget .wpb_category_n_menu_accordion ul li .wpb-wmca-cat-count {
	top: 50%;
	right: 2.9em;
	transform: translateY(-50%);
	min-width: 1.9em;
	height: auto;
	padding: .1em .45em;
	border-radius: 999px;
	background: #f0efee;
	color: var(--ws-stone);
	font-size: .72em;
	font-weight: 600;
	line-height: 1.5;
}
.widget .wpb_category_n_menu_accordion ul li.current-cat > a .wpb-wmca-cat-count {
	background: var(--ws-red);
	color: var(--ws-white);
}
/* Chevron instead of the plugin's "+" */
.widget .wpb_category_n_menu_accordion ul li > a > span.wpb-submenu-indicator {
	width: 2.6em;
	font-size: 0;
	transform: none !important;
}
.widget .wpb_category_n_menu_accordion ul li > a > span.wpb-submenu-indicator::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s;
	opacity: .55;
}
.widget .wpb_category_n_menu_accordion ul li.wpb-submenu-indicator-minus > a > span.wpb-submenu-indicator::before {
	transform: rotate(45deg);
	opacity: 1;
	color: var(--ws-red);
}

/* ---------- Header search: FiboSearch ---------- */

.site-header .dgwt-wcas-search-wrapp {
	max-width: none;
}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	font-family: inherit;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	box-shadow: none;
}
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
	border-color: var(--ws-red);
	box-shadow: 0 0 0 3px rgba(206, 14, 45, .15);
}
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp {
	font-family: "DM Sans", system-ui, sans-serif;
	border-color: var(--ws-line) !important;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 12px 30px rgba(28, 25, 23, .15);
}
.dgwt-wcas-suggestion .dgwt-wcas-st strong,
.dgwt-wcas-suggestion .dgwt-wcas-sp strong {
	color: var(--ws-red);
}
.dgwt-wcas-suggestion .dgwt-wcas-sp,
.dgwt-wcas-suggestion .dgwt-wcas-sp .woocommerce-Price-amount {
	color: var(--ws-red);
	font-weight: 700;
}
.dgwt-wcas-suggestion .dgwt-wcas-sku {
	color: var(--ws-stone-light);
}
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
	color: var(--ws-red);
	font-weight: 600;
}
.dgwt-wcas-suggestion-selected {
	background-color: var(--ws-paper) !important;
}
/* The plugin's dark skin forces some properties with !important; undo those. */
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a {
	color: var(--ws-ink) !important;
	border-left: 0 !important;
	border-bottom: 1px solid #f0efee !important;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul ul li a {
	color: var(--ws-stone) !important;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a:hover,
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a:focus-visible,
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li.current-cat > a {
	color: var(--ws-red) !important;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark > ul ul {
	background: #fafaf9 !important;
	padding-left: 0 !important;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark > ul > li:last-child > a {
	border-bottom: 0 !important;
}
.widget .wpb_category_n_menu_accordion,
.widget .wpb_category_n_menu_accordion ul,
.widget .wpb_category_n_menu_accordion li,
.widget .wpb_category_n_menu_accordion a {
	box-sizing: border-box;
	max-width: 100%;
}

/* Phones: show the search box under the logo (Storefront hides it and uses the bottom bar). */
@media (max-width: 767px) {
	.site-header .site-search,
	.woocommerce-active .site-header .site-search {
		display: block !important;
		flex: 1 1 100%;
		order: 5;
		margin: 0;
	}
	.storefront-handheld-footer-bar ul li.search {
		display: none;
	}
	.storefront-handheld-footer-bar ul.columns-3 li,
	.storefront-handheld-footer-bar ul.columns-2 li {
		width: 50%;
	}
}

/* ---------- Homepage banner (15 Oct): about half the old height; headline on the left, Fronius Fortis range on the right ---------- */

.wp-block-group.weldsafe-hero {
	position: relative;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	color: var(--ws-white);
	overflow: hidden;
	background:
		radial-gradient(ellipse 50% 80% at 74% 70%, rgba(206, 14, 45, .55) 0%, rgba(206, 14, 45, 0) 70%),
		linear-gradient(100deg, #110f0e 0%, var(--ws-ink) 40%, #3a0b14 70%, #6e0a1c 100%);
}
/* Faint diagonal lines for texture */
.wp-block-group.weldsafe-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 24px);
}
/* Text and machines share the page's content width (the logo's left edge) */
.weldsafe-hero > .wp-block-group__inner-container {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 2rem;
	min-height: 360px;
	max-width: calc(66.4989rem + 2 * 2.617924rem) !important;
	margin: 0 auto !important;
	padding: 0 2.617924rem;
	box-sizing: border-box;
}
.weldsafe-hero .wp-block-group__inner-container > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}
.weldsafe-hero-text {
	margin: 0 !important;
	padding: 2rem 0;
}
.weldsafe-hero h1.wp-block-heading {
	margin: 0 0 1em;
	color: var(--ws-white) !important;
	text-transform: none !important;
	font-size: clamp(1.6rem, 2.3vw, 2.1rem) !important;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.weldsafe-hero h1.wp-block-heading::before {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-bottom: .55em;
	background: var(--ws-red);
	border-radius: 2px;
}
.weldsafe-hero .wp-block-buttons {
	margin: 0 !important;
}
.weldsafe-hero .wp-block-button__link {
	padding: .8em 1.8em;
	background: var(--ws-red);
	color: var(--ws-white);
	border-radius: var(--ws-radius);
	font-size: 1.05rem;
	font-weight: 700;
}
.weldsafe-hero .wp-block-button__link:hover {
	background: var(--ws-red-dark);
	color: var(--ws-white);
}

/* The Fortis line-up: smallest to largest left to right (22 Oct), slightly overlapping with the smaller machine in
   front, standing on a common floor line. --h is the Fortis 500's height; the others are sized from it. */
.weldsafe-fortis {
	--h: min(225px, 17vw);
	align-self: end;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 1rem;
}
.weldsafe-fortis-row {
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.weldsafe-fortis-m {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none !important;
	transition: transform .2s ease;
}
.weldsafe-fortis-m + .weldsafe-fortis-m {
	margin-left: calc(var(--h) * -.12);
}
.weldsafe-fortis-m img {
	display: block;
	width: auto;
	height: var(--mh);
	max-width: none;
	filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55));
}
.weldsafe-fortis-270 { --mh: calc(var(--h) * .64); z-index: 5; }
.weldsafe-fortis-320 { --mh: calc(var(--h) * .7); z-index: 4; }
.weldsafe-fortis-400 { --mh: calc(var(--h) * .93); z-index: 3; }
.weldsafe-fortis-500 { --mh: var(--h); z-index: 2; }
.weldsafe-fortis-duo { --mh: calc(var(--h) * 1.04); z-index: 1; }
.weldsafe-fortis-m span {
	margin-top: .55rem;
	padding: .15em .75em;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(0, 0, 0, .4);
	color: var(--ws-white);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease;
}
.weldsafe-fortis-m:hover,
.weldsafe-fortis-m:focus-visible {
	z-index: 6;
	transform: translateY(-6px);
}
.weldsafe-fortis-m:hover span,
.weldsafe-fortis-m:focus-visible span {
	background: var(--ws-red);
	border-color: var(--ws-red);
}
.weldsafe-fortis-all {
	margin: .6rem 0 .9rem;
	color: rgba(255, 255, 255, .8) !important;
	font-size: .85rem;
	text-decoration: none !important;
}
.weldsafe-fortis-all:hover {
	color: var(--ws-white) !important;
}

/* Tablets: even columns */
@media (max-width: 1023px) {
	.weldsafe-hero > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 1rem;
	}
	.weldsafe-fortis {
		--h: 15vw;
	}
	.weldsafe-fortis-m + .weldsafe-fortis-m {
		margin-left: calc(var(--h) * -.03);
	}
	.weldsafe-fortis-m span {
		padding: .1em .45em;
		font-size: .62rem;
		letter-spacing: .02em;
	}
}
/* Phones: text on top, then the five machines in one smaller row */
@media (max-width: 767px) {
	.weldsafe-hero > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
		padding: 0 1.25rem;
	}
	.weldsafe-hero-text {
		padding: 1.75rem 0 .5rem;
	}
	.weldsafe-hero h1.wp-block-heading {
		font-size: 1.5rem !important;
		margin-bottom: .8em;
	}
	/* All five machines in one row, scaled to the screen width (20 Oct: the 400 and 270 C were hidden; 22 Oct: Duo added) */
	.weldsafe-fortis {
		--h: min(110px, 25vw);
		padding-top: .5rem;
	}
	.weldsafe-fortis-row {
		max-width: 100%;
		gap: .35rem;
	}
	.weldsafe-fortis-m + .weldsafe-fortis-m {
		margin-left: 0;
	}
	.weldsafe-fortis-m span {
		padding: .1em .4em;
		font-size: .56rem;
		letter-spacing: .01em;
	}
	/* Labels hang below the machines (room kept by the row's padding) so a two-line label can't lift its machine
	   off the floor line; "Fortis Duo / Split" is wider than its machine, so it wraps to two lines. */
	.weldsafe-fortis-row {
		padding-bottom: 2.6rem;
	}
	.weldsafe-fortis-m span {
		position: absolute;
		top: 100%;
		left: 50%;
		margin-top: .4rem;
		transform: translateX(-50%);
	}
	.weldsafe-fortis-duo span {
		width: max-content;
		max-width: 5.2rem;
		white-space: normal;
		text-align: center;
		line-height: 1.2;
		border-radius: 8px;
	}
}

/* Banner and badge bar run edge to edge at every width, whatever Storefront's page margins are. */
.site {
	overflow-x: clip;
}
.wp-block-group.weldsafe-hero,
.wp-block-group.weldsafe-badges {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}
.home .site-header {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 767px) {
	.storefront-handheld-footer-bar ul li.cart {
		width: 100% !important;
	}
}

/* ---------- About Us timeline (ol.weldsafe-timeline) ---------- */

.entry-content ol.weldsafe-timeline {
	--tl-year: 5.5rem;   /* width of the year column */
	--tl-gap: 1.75rem;   /* space either side of the line */
	position: relative;
	list-style: none;
	margin: 1.5em 0 2.5em;
	padding: 0;
}
/* The vertical line */
.entry-content ol.weldsafe-timeline::before {
	content: "";
	position: absolute;
	top: .4em;
	bottom: .4em;
	left: calc(var(--tl-year) + var(--tl-gap));
	width: 2px;
	background: var(--ws-line);
}
.entry-content ol.weldsafe-timeline > li {
	position: relative;
	display: grid;
	grid-template-columns: var(--tl-year) 1fr;
	column-gap: calc(var(--tl-gap) * 2);
	margin: 0 0 1.6em;
	padding: 0;
	line-height: 1.6;
}
.entry-content ol.weldsafe-timeline > li:last-child {
	margin-bottom: 0;
}
/* The red dot on the line */
.entry-content ol.weldsafe-timeline > li::before {
	content: "";
	position: absolute;
	top: .45em;
	left: calc(var(--tl-year) + var(--tl-gap) + 1px);
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--ws-red);
	box-shadow: 0 0 0 4px var(--ws-white);
}
.entry-content ol.weldsafe-timeline .weldsafe-timeline-year {
	text-align: right;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--ws-ink);
	line-height: 1.4;
}
.entry-content ol.weldsafe-timeline .weldsafe-timeline-text {
	color: var(--ws-stone);
}
/* Phones: line and dots on the left, year above its text */
@media (max-width: 599px) {
	.entry-content ol.weldsafe-timeline::before {
		left: 6px;
	}
	.entry-content ol.weldsafe-timeline > li {
		display: block;
		padding-left: 2rem;
	}
	.entry-content ol.weldsafe-timeline > li::before {
		left: 7px;
		top: .3em;
	}
	.entry-content ol.weldsafe-timeline .weldsafe-timeline-year {
		display: block;
		text-align: left;
		margin-bottom: .15em;
	}
	.entry-content ol.weldsafe-timeline .weldsafe-timeline-text {
		display: block;
	}
}

/* ---------- Services page: card grid and call to action ---------- */

.weldsafe-services-photo img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 8px;
}
/* The grid (classic themes wrap a group's contents in an inner container, so style both) */
.wp-block-group.weldsafe-service-cards,
.wp-block-group.weldsafe-service-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
.wp-block-group.weldsafe-service-cards {
	margin: 1.5rem 0 3rem;
}
.wp-block-group.weldsafe-service-cards > .wp-block-group__inner-container {
	grid-column: 1 / -1;
}
.wp-block-group.weldsafe-service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	padding: 1.75rem 1.5rem;
	background: var(--ws-white);
	border: 1px solid #ececec;
	border-top: 4px solid var(--ws-red);
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(28, 25, 23, .05);
	box-sizing: border-box;
	transition: box-shadow .2s, transform .2s;
}
.wp-block-group.weldsafe-service-card:hover {
	box-shadow: 0 10px 28px rgba(28, 25, 23, .1);
	transform: translateY(-2px);
}
.weldsafe-service-card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.weldsafe-service-card .wp-block-image.weldsafe-service-icon {
	width: 64px;
	height: 64px;
	margin: 0 0 1.1rem;
	padding: 10px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #fdecef;
}
.weldsafe-service-card .wp-block-image.weldsafe-service-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.weldsafe-service-card h3 {
	margin: 0 0 .6rem;
	font-size: 1.15rem;
	line-height: 1.3;
}
.weldsafe-service-card p {
	margin: 0;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--ws-stone);
}
@media (max-width: 1023px) {
	.wp-block-group.weldsafe-service-cards,
	.wp-block-group.weldsafe-service-cards > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	.wp-block-group.weldsafe-service-cards,
	.wp-block-group.weldsafe-service-cards > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* "Need a service?" call to action */
.wp-block-group.weldsafe-cta {
	margin: 0 0 2rem;
	padding: 2rem 2.25rem;
	background: var(--ws-ink);
	color: #e7e5e4;
	border-radius: 8px;
	border-left: 6px solid var(--ws-red);
}
.wp-block-group.weldsafe-cta h2 {
	color: var(--ws-white);
	margin: 0 0 .5rem;
}
.wp-block-group.weldsafe-cta p {
	margin: 0 0 1.25rem;
	max-width: 46rem;
}
.wp-block-group.weldsafe-cta .wp-block-buttons {
	gap: .75rem;
}
.wp-block-group.weldsafe-cta .wp-block-button__link {
	background: var(--ws-red);
	color: var(--ws-white);
	border-radius: var(--ws-radius);
	padding: .7em 1.5em;
	font-weight: 600;
}
.wp-block-group.weldsafe-cta .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ws-white);
	border-color: var(--ws-white);
}
.wp-block-group.weldsafe-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ws-white);
	color: var(--ws-ink);
}
@media (max-width: 599px) {
	.wp-block-group.weldsafe-cta {
		padding: 1.5rem 1.25rem;
	}
}
/* Chevron box sized in rem (its font-size is 0, so em widths collapse); sits after the count, inside the box */
.widget .wpb_category_n_menu_accordion ul li > a > span.wpb-submenu-indicator {
	width: 2.5rem !important;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.widget .wpb_category_n_menu_accordion ul li > a > span.wpb-submenu-indicator::before {
	display: block;
	flex: none;
}
.widget .wpb_category_n_menu_accordion ul li .wpb-wmca-cat-count {
	right: 2.6rem;
}
.widget .wpb_category_n_menu_accordion.wpb_wmca_accordion_wrapper_theme_dark ul li a {
	padding-right: 5.6rem;
}

/* ---------- Sub-category tiles on parent category pages (li.product-category) ---------- */

ul.products li.product-category {
	padding: 0;
	overflow: hidden;
	text-align: left;
}
ul.products li.product-category a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--ws-ink);
}
ul.products li.product-category img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 !important;
	background: var(--ws-paper);
	transition: transform .3s;
}
ul.products li.product-category a:hover img {
	transform: scale(1.04);
}
ul.products li.product-category .woocommerce-loop-category__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5em;
	margin: 0;
	padding: .85em 1em 1em;
	font-size: 1rem;
	font-weight: 600;
	text-transform: capitalize;
	border-top: 3px solid transparent;
	transition: color .2s, border-color .2s;
}
ul.products li.product-category .woocommerce-loop-category__title mark.count {
	flex: none;
	background: #f0efee;
	color: var(--ws-stone);
	border-radius: 999px;
	padding: .1em .55em;
	font-size: .75em;
	font-weight: 600;
}
ul.products li.product-category a:hover .woocommerce-loop-category__title,
ul.products li.product-category a:focus-visible .woocommerce-loop-category__title {
	color: var(--ws-red);
	border-top-color: var(--ws-red);
}
ul.products li.product-category a:hover mark.count {
	background: var(--ws-red);
	color: var(--ws-white);
}
/* Sub-category tiles as an even grid: 4 / 3 / 2 per row */
.site-main ul.products:has(> li.product-category) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-left: 0;
	margin-right: 0;
}
.site-main ul.products:has(> li.product-category)::before,
.site-main ul.products:has(> li.product-category)::after {
	display: none;
}
.site-main ul.products li.product-category {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}
@media (max-width: 1023px) {
	.site-main ul.products:has(> li.product-category) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.site-main ul.products:has(> li.product-category) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .9rem;
	}
	ul.products li.product-category .woocommerce-loop-category__title {
		padding: .65em .7em .75em;
		font-size: .9rem;
	}
}

/* ---------- Footer social icons ---------- */

.weldsafe-social-wrap {
	display: flex;
	align-items: center;
	gap: .9em;
}
.weldsafe-social-label {
	font-size: .9em;
	font-weight: 600;
	color: var(--ws-stone);
}
.weldsafe-social {
	gap: .6em;
}
.site-footer .weldsafe-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ws-red);
	color: var(--ws-white);
	text-decoration: none;
	transition: background-color .2s, transform .2s, box-shadow .2s;
}
.site-footer .weldsafe-social a svg {
	width: 18px;
	height: 18px;
}
.site-footer .weldsafe-social a:hover,
.site-footer .weldsafe-social a:focus-visible {
	color: var(--ws-white);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(28, 25, 23, .2);
}
.site-footer .weldsafe-social a.weldsafe-social-facebook:hover,
.site-footer .weldsafe-social a.weldsafe-social-facebook:focus-visible {
	background: #1877f2;
}
.site-footer .weldsafe-social a.weldsafe-social-linkedin:hover,
.site-footer .weldsafe-social a.weldsafe-social-linkedin:focus-visible {
	background: #0a66c2;
}
.site-footer .weldsafe-social a.weldsafe-social-instagram:hover,
.site-footer .weldsafe-social a.weldsafe-social-instagram:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* ==================== Shop usability (15 Oct 2026) ==================== */

.weldsafe-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* Filters in the sidebar */
.widget_price_filter .price_slider_amount .button {
	padding: .4em 1em;
	font-size: .875em;
}
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle {
	background-color: var(--ws-red);
}
.widget_layered_nav ul li,
.widget_brand_nav ul li {
	padding: .25em 0 .25em 1.6em;
	position: relative;
}
.widget_layered_nav ul li::before,
.widget_brand_nav ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 1em;
	height: 1em;
	border: 2px solid var(--ws-line);
	border-radius: 3px;
	background: var(--ws-white);
}
.widget_layered_nav ul li.chosen::before,
.widget_brand_nav ul li.chosen::before {
	border-color: var(--ws-red);
	background: var(--ws-red);
	box-shadow: inset 0 0 0 2px var(--ws-white);
}
.widget_layered_nav ul li a,
.widget_brand_nav ul li a {
	color: var(--ws-ink);
	text-decoration: none;
}
.widget_layered_nav ul li .count,
.widget_brand_nav ul li .count {
	color: var(--ws-stone-light);
	font-size: .85em;
}
#secondary .widget {
	margin-bottom: 1.75em;
}
#secondary .widget .widget-title,
#secondary .widget .widgettitle {
	font-size: 1rem;
	font-weight: 700;
	border-bottom: 1px solid #ececec;
	padding-bottom: .5em;
	margin-bottom: .75em;
}
.weldsafe-stock-toggle {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	color: var(--ws-ink);
	text-decoration: none;
}
.weldsafe-tick {
	width: 1em;
	height: 1em;
	border: 2px solid var(--ws-line);
	border-radius: 3px;
}
.weldsafe-stock-toggle.is-on .weldsafe-tick {
	border-color: var(--ws-red);
	background: var(--ws-red);
	box-shadow: inset 0 0 0 2px var(--ws-white);
}

/* Phones: the tap-to-open filter panel */
.weldsafe-filter-panel {
	margin: 0 0 1.25em;
	border: 1px solid var(--ws-line);
	border-radius: 8px;
	background: var(--ws-white);
}
.weldsafe-filter-panel > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 1em;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.weldsafe-filter-panel > summary::-webkit-details-marker {
	display: none;
}
.weldsafe-filter-panel > summary::after {
	content: "";
	width: .55em;
	height: .55em;
	border-right: 2px solid var(--ws-red);
	border-bottom: 2px solid var(--ws-red);
	transform: rotate(45deg);
	margin-left: auto;
	transition: transform .2s;
}
.weldsafe-filter-panel[open] > summary::after {
	transform: rotate(-135deg);
}
.weldsafe-filter-badge {
	margin-left: .6em;
	padding: .1em .55em;
	border-radius: 999px;
	background: var(--ws-red);
	color: var(--ws-white);
	font-size: .75em;
}
.weldsafe-filter-panel #secondary {
	width: 100%;
	float: none;
	margin: 0;
	padding: 0 1em 1em;
}

/* Product page trust strip */
.weldsafe-trust {
	list-style: none;
	margin: 1.25em 0 1.5em;
	padding: 1em 1.1em;
	border: 1px solid #ececec;
	border-radius: 8px;
	background: var(--ws-paper);
	font-size: .9rem;
}
.weldsafe-trust li {
	display: flex;
	align-items: flex-start;
	gap: .7em;
	margin: 0;
	padding: .3em 0;
}
.weldsafe-trust .weldsafe-icon {
	width: 1.1em;
	height: 1.1em;
	margin-top: .2em;
	color: var(--ws-red);
}
.single-product .stock.available-on-backorder {
	color: var(--ws-stone);
}

/* Payment logos */
.weldsafe-payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75em 1.5em;
}
.weldsafe-payments .weldsafe-secure {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	font-weight: 600;
	color: var(--ws-ink);
}
.weldsafe-payments .weldsafe-secure .weldsafe-icon {
	color: #15803d;
}
.weldsafe-cards {
	display: inline-flex;
	align-items: center;
	gap: .55em;
}
.weldsafe-card .weldsafe-icon {
	width: auto;
	height: 2em;
	color: var(--ws-stone);
}
.weldsafe-payments.in-footer {
	padding: 1em 0 1.5em;
	border-top: 1px solid #ececec;
}
.weldsafe-payments.in-cart {
	justify-content: center;
	margin-top: 1em;
	font-size: .9em;
}
.weldsafe-payments.in-cart .weldsafe-card .weldsafe-icon {
	height: 1.7em;
}

/* Distraction-free checkout */
.weldsafe-focus-checkout .storefront-primary-navigation,
.weldsafe-focus-checkout .site-header .site-search,
.weldsafe-focus-checkout .weldsafe-account,
.weldsafe-focus-checkout .site-header-cart,
.weldsafe-focus-checkout .storefront-breadcrumb,
.weldsafe-focus-checkout .weldsafe-footer-top,
.weldsafe-focus-checkout .weldsafe-footer-columns,
.weldsafe-focus-checkout .storefront-handheld-footer-bar {
	display: none !important;
}
.weldsafe-checkout-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5em 1.5em;
	margin-left: auto;
	font-size: .95em;
}
.weldsafe-checkout-help .weldsafe-secure {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 700;
}
.weldsafe-checkout-help .weldsafe-secure .weldsafe-icon {
	color: #15803d;
}
.weldsafe-focus-checkout .site-header {
	border-bottom: 4px solid var(--ws-red);
}

/* Phones: comfortable tap targets (at least 44px) */
@media (max-width: 767px) {
	.site-header .weldsafe-outline-button,
	.site-header-cart .cart-contents,
	.woocommerce-ordering select,
	.site-footer .weldsafe-footer-col a,
	.weldsafe-stock-toggle,
	.widget_layered_nav ul li a,
	.widget_brand_nav ul li a,
	.storefront-sorting .page-numbers li a,
	.woocommerce-pagination .page-numbers li a,
	.woocommerce-pagination .page-numbers li span {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
	.site-footer .weldsafe-footer-col li {
		margin: 0;
	}
	.woocommerce-pagination .page-numbers li a,
	.woocommerce-pagination .page-numbers li span {
		min-width: 44px;
		justify-content: center;
	}
	.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
		min-height: 48px;
	}
}
@media (max-width: 767px) {
	.main-navigation .handheld-navigation ul.menu li a,
	.handheld-navigation .dropdown-toggle,
	.widget .wpb_category_n_menu_accordion ul li a {
		min-height: 44px;
	}
}

/* ---------- Footer columns (16 Oct): no underlines, red accent bars, contact icons, light grey panel ---------- */

.weldsafe-footer-columns {
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 2.5em;
	padding: 2.75em 0;
	background: var(--ws-paper);
	box-shadow: 0 0 0 100vmax var(--ws-paper);
	clip-path: inset(0 -100vmax);
}
.weldsafe-footer-col h2 {
	position: relative;
	margin: 0 0 1.4em;
	padding-bottom: .6em;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: .01em;
}
.weldsafe-footer-col h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: var(--ws-red);
}
.weldsafe-footer-col p {
	color: var(--ws-stone);
}
/* Links: dark text, no underline, red on hover with a small chevron sliding in */
.site-footer .weldsafe-footer-col a:not(.button) {
	color: var(--ws-ink);
	text-decoration: none;
	transition: color .15s ease;
}
.site-footer .weldsafe-footer-col a:not(.button):hover {
	color: var(--ws-red);
}
.site-footer .weldsafe-footer-col a:focus-visible {
	outline: 2px solid var(--ws-red);
	outline-offset: 3px;
	border-radius: 2px;
}
.weldsafe-footer-col .menu li {
	margin: 0 0 .7em;
}
.weldsafe-footer-col .menu a {
	display: inline-flex;
	align-items: center;
	transition: color .15s ease, transform .15s ease;
}
.weldsafe-footer-col .menu a::before {
	content: "";
	width: .4em;
	height: .4em;
	margin-right: .6em;
	border-top: 2px solid var(--ws-red);
	border-right: 2px solid var(--ws-red);
	transform: rotate(45deg);
	opacity: .45;
	transition: opacity .15s ease;
}
.weldsafe-footer-col .menu a:hover,
.weldsafe-footer-col .menu a:focus-visible {
	transform: translateX(3px);
}
.weldsafe-footer-col .menu a:hover::before,
.weldsafe-footer-col .menu a:focus-visible::before {
	opacity: 1;
}
/* Visit Us: icon + text rows */
.weldsafe-contact {
	list-style: none;
	margin: 0;
}
.weldsafe-contact li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: .75em;
	align-items: start;
	margin: 0 0 1em;
}
.weldsafe-contact-icon {
	width: 20px;
	height: 20px;
	margin-top: .2em;
	color: var(--ws-red);
}
.weldsafe-contact address,
.weldsafe-contact .weldsafe-hours {
	margin: 0;
	font-style: normal;
	color: var(--ws-stone);
	line-height: 1.6;
}
.weldsafe-contact address {
	color: var(--ws-ink);
}
.weldsafe-contact .weldsafe-hours {
	white-space: nowrap;
}
.weldsafe-hours span {
	display: inline-block;
	min-width: 5.5em;
	font-weight: 600;
	color: var(--ws-ink);
}
.site-footer .weldsafe-footer-col a.weldsafe-directions {
	display: inline-block;
	margin-top: .35em;
	color: var(--ws-red);
	font-size: .9em;
	font-weight: 600;
}
.site-footer .weldsafe-footer-col a.weldsafe-directions::after {
	content: " →";
}
.site-footer .weldsafe-footer-col a.weldsafe-directions:hover {
	color: var(--ws-red-dark);
}
.site-footer .weldsafe-footer-col a.weldsafe-phone {
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: .01em;
}
/* Phone and email: one line each, so centre the icon on it */
.weldsafe-contact li:nth-child(3),
.weldsafe-contact li:nth-child(4) {
	align-items: center;
}
.weldsafe-contact li:nth-child(3) .weldsafe-contact-icon,
.weldsafe-contact li:nth-child(4) .weldsafe-contact-icon {
	margin-top: 0;
}
.weldsafe-footer-col .weldsafe-newsletter input[type="email"] {
	background: var(--ws-white);
}
.weldsafe-payments.in-footer {
	border-top: 0;
	padding-top: 1.5em;
}
@media (max-width: 1023px) {
	.weldsafe-footer-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Phones: one column, full-width 44px rows for links */
@media (max-width: 767px) {
	.weldsafe-footer-columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 2em;
		padding: 2em 0;
	}
	.weldsafe-footer-col h2 {
		margin-bottom: .9em;
	}
	.weldsafe-footer-col .menu li {
		margin: 0;
		border-bottom: 1px solid var(--ws-line);
	}
	.weldsafe-footer-col .menu li:first-child {
		border-top: 1px solid var(--ws-line);
	}
	.site-footer .weldsafe-footer-col .menu a {
		display: flex;
		width: 100%;
	}
	.weldsafe-contact li {
		margin-bottom: .5em;
	}
}

/* ---------- Category cards (16 Oct): homepage "Shop by Category" and sub-category tiles ---------- */

.weldsafe-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 1.25rem 0 0;
}
.weldsafe-cats a.weldsafe-cat-card,
.site-main ul.products li.product-category {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ws-white);
	border: 1px solid var(--ws-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(28, 25, 23, .06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.weldsafe-cats a.weldsafe-cat-card {
	color: var(--ws-ink);
	text-decoration: none;
}
/* Red accent bar that grows along the bottom on hover */
.weldsafe-cats a.weldsafe-cat-card::after,
.site-main ul.products li.product-category::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--ws-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.weldsafe-cats a.weldsafe-cat-card:hover,
.weldsafe-cats a.weldsafe-cat-card:focus-visible,
.site-main ul.products li.product-category:hover,
.site-main ul.products li.product-category:focus-within {
	transform: translateY(-4px);
	border-color: #c9c5c2;
	box-shadow: 0 12px 28px rgba(28, 25, 23, .14);
}
.weldsafe-cats a.weldsafe-cat-card:hover::after,
.weldsafe-cats a.weldsafe-cat-card:focus-visible::after,
.site-main ul.products li.product-category:hover::after,
.site-main ul.products li.product-category:focus-within::after {
	transform: scaleX(1);
}
.weldsafe-cats a.weldsafe-cat-card:focus-visible,
.site-main ul.products li.product-category a:focus-visible {
	outline: 2px solid var(--ws-red);
	outline-offset: 3px;
}
/* Image area: same shape on every card; cut-out product shots are shown whole on white */
.weldsafe-cat-img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--ws-paper);
}
.weldsafe-cat-img img,
.site-main ul.products li.product-category img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .35s ease;
}
.weldsafe-cat-img.is-cutout,
.site-main ul.products li.product-category.is-cutout img {
	background: var(--ws-white);
}
.weldsafe-cat-img.is-cutout img,
.site-main ul.products li.product-category.is-cutout img {
	object-fit: contain;
	padding: 0;
	scale: .86;
}
.weldsafe-cats a.weldsafe-cat-card:hover img,
.weldsafe-cats a.weldsafe-cat-card:focus-visible img,
.site-main ul.products li.product-category:hover img {
	transform: scale(1.05);
}
.weldsafe-cat-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .3em;
	padding: .9em 1.1em 1.1em;
	border-top: 1px solid #ececec;
}
.weldsafe-cat-name {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	transition: color .2s ease;
}
.weldsafe-cat-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	color: var(--ws-stone-light);
	font-size: .85rem;
}
.weldsafe-cat-arrow {
	color: var(--ws-red);
	font-size: 1.1rem;
	font-weight: 700;
	transition: transform .2s ease;
}
.weldsafe-cats a.weldsafe-cat-card:hover .weldsafe-cat-name,
.weldsafe-cats a.weldsafe-cat-card:focus-visible .weldsafe-cat-name {
	color: var(--ws-red);
}
.weldsafe-cats a.weldsafe-cat-card:hover .weldsafe-cat-arrow,
.weldsafe-cats a.weldsafe-cat-card:focus-visible .weldsafe-cat-arrow {
	transform: translateX(4px);
}
/* Sub-category tiles: title row matches the homepage cards (the red bar is now on the card itself) */
.site-main ul.products li.product-category .woocommerce-loop-category__title {
	flex: 1;
	padding: .9em 1.1em 1.1em;
	border-top: 1px solid #ececec;
	font-weight: 700;
	text-transform: none;
}
.site-main ul.products li.product-category a:hover .woocommerce-loop-category__title,
.site-main ul.products li.product-category a:focus-visible .woocommerce-loop-category__title {
	border-top-color: #ececec;
}
@media (max-width: 1023px) {
	.weldsafe-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.weldsafe-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .9rem;
	}
	.weldsafe-cat-body {
		padding: .7em .8em .85em;
	}
	.weldsafe-cat-name {
		font-size: .95rem;
	}
	.weldsafe-cat-meta {
		font-size: .78rem;
	}
}

/* ---------- Underlines (16 Oct): none on navigation and UI links; colour and hover show they are links.
   Links inside paragraphs of page text keep their underline so they stand out in prose. ---------- */

body .site-footer a,
body .hentry .entry-header a,
body .hentry .entry-content a,
body .cat-links a,
body .tags-links a,
body .widget-area .widget a,
body .widget a,
body .woocommerce-breadcrumb a,
body .single-product div.product .product_meta a,
body .single-product div.product .woocommerce-product-rating a,
body .woocommerce-MyAccount-navigation a,
body .woocommerce-loop-product__link,
body .site-header a,
body .main-navigation a {
	text-decoration: none;
}
body .hentry .entry-content p a:not(.button):not(.wp-block-button__link),
body .hentry .entry-content td a:not(.button),
body .woocommerce-Tabs-panel p a:not(.button) {
	text-decoration: underline;
	text-underline-offset: .15em;
}
body .hentry .entry-content p a:not(.button):not(.wp-block-button__link):hover {
	color: var(--ws-red-dark);
}
/* Sub-category tiles: name on top, "38 products →" underneath, as on the homepage cards */
.site-main ul.products li.product-category .woocommerce-loop-category__title {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: .3em;
	font-size: 1rem;
	line-height: 1.3;
}
.site-main ul.products li.product-category .woocommerce-loop-category__title mark.count,
.site-main ul.products li.product-category a:hover .woocommerce-loop-category__title mark.count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding: 0;
	background: none;
	color: var(--ws-stone-light);
	font-size: .85rem;
	font-weight: 400;
}
.site-main ul.products li.product-category a {
	flex: 1;
}
.site-main ul.products li.product-category a:hover .weldsafe-cat-arrow {
	transform: translateX(4px);
}
html body.single-product div.product .product_meta a {
	text-decoration: none;
	font-weight: 600;
}
.site-main ul.products li.product-category img {
	height: auto !important;
	aspect-ratio: 4 / 3 !important;
}

/* ---------- Click-to-play video (About Us, 16 Oct): 16:9, rounded, play button over a thumbnail ---------- */

.weldsafe-video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0 0 2em;
	overflow: hidden;
	border-radius: 10px;
	background: var(--ws-ink);
	box-shadow: 0 8px 24px rgba(28, 25, 23, .12);
}
.weldsafe-video iframe,
.weldsafe-video-play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.weldsafe-video-play {
	display: block;
	padding: 0;
	margin: 0;
	background: none;
	cursor: pointer;
}
.weldsafe-video-play img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .3s ease, filter .3s ease;
}
.weldsafe-video-play:hover img,
.weldsafe-video-play:focus-visible img {
	transform: scale(1.02);
	filter: brightness(.85);
}
.weldsafe-video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: var(--ws-red);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
	transition: transform .2s ease, background-color .2s ease;
}
.weldsafe-video-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -13px 0 0 -8px;
	border-style: solid;
	border-width: 13px 0 13px 22px;
	border-color: transparent transparent transparent var(--ws-white);
}
.weldsafe-video-play:hover .weldsafe-video-icon,
.weldsafe-video-play:focus-visible .weldsafe-video-icon {
	transform: scale(1.08);
	background: var(--ws-red-dark);
}
.weldsafe-video-play:focus-visible {
	outline: 3px solid var(--ws-red);
	outline-offset: -3px;
}
@media (max-width: 767px) {
	.weldsafe-video {
		border-radius: 8px;
	}
	.weldsafe-video-icon {
		width: 60px;
		height: 60px;
		margin: -30px 0 0 -30px;
	}
	.weldsafe-video-icon::after {
		margin: -10px 0 0 -6px;
		border-width: 10px 0 10px 17px;
	}
}

/* ---------- Trust bar under the banner (16 Oct): slim (about 34px), centred group, red ticks ---------- */

.wp-block-group.weldsafe-badges {
	padding: 0 !important;
}
.weldsafe-badges > .wp-block-group__inner-container {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.weldsafe-badges .wp-block-columns,
.weldsafe-badges > .wp-block-group__inner-container > .wp-block-columns {
	display: flex;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center;
	gap: 0 3.5rem !important;
	max-width: none;
	min-height: 34px;
	margin: 0 auto !important;
	padding: .35rem 1.25rem !important;
	box-sizing: border-box;
}
.weldsafe-badges .wp-block-column {
	flex: 0 0 auto !important;
	flex-basis: auto !important;
	width: auto !important;
	margin: 0 !important;
	text-align: left !important;
}
.weldsafe-badges p,
.weldsafe-badges .weldsafe-badge {
	display: flex;
	align-items: center;
	margin: 0 !important;
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .01em;
	white-space: nowrap;
}
.weldsafe-badges .weldsafe-badge::before {
	width: .34em;
	height: .66em;
	margin: -.2em .65em 0 .1em;
	border: solid var(--ws-red);
	border-width: 0 2.5px 2.5px 0;
	border-radius: 0;
	background: none;
	transform: rotate(45deg);
}
/* Phones: one compact row that scrolls sideways if it does not fit */
@media (max-width: 767px) {
	.weldsafe-badges .wp-block-columns,
	.weldsafe-badges > .wp-block-group__inner-container > .wp-block-columns {
		justify-content: flex-start;
		gap: 0 1.5rem !important;
		padding: .35rem 1.25rem !important;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.weldsafe-badges .wp-block-columns::-webkit-scrollbar {
		display: none;
	}
	.weldsafe-badges p,
	.weldsafe-badges .weldsafe-badge {
		font-size: .8rem;
	}
}
@media (min-width: 420px) and (max-width: 767px) {
	.weldsafe-badges .wp-block-columns {
		justify-content: center;
	}
}
/* WordPress stacks columns at 100% width on phones; the trust bar items stay side by side */
.weldsafe-badges .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.wp-block-column {
	flex: 0 0 auto !important;
	flex-basis: auto !important;
}
@media (max-width: 479px) {
	.weldsafe-badges .wp-block-columns,
	.weldsafe-badges > .wp-block-group__inner-container > .wp-block-columns {
		justify-content: space-between;
		gap: 0 .6rem !important;
		padding: .35rem .75rem !important;
	}
	.weldsafe-badges p,
	.weldsafe-badges .weldsafe-badge {
		font-size: .72rem;
		letter-spacing: 0;
	}
	.weldsafe-badges .weldsafe-badge::before {
		margin: -.2em .45em 0 0;
	}
}

/* ---------- RRP and "sold in multiples" (17 Oct) ---------- */

.weldsafe-rrp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35em .75em;
	margin: -.6em 0 1.1em;
	font-size: .9rem;
	color: var(--ws-stone-light);
}
.weldsafe-rrp del {
	color: var(--ws-stone-light);
	opacity: 1;
}
.weldsafe-save {
	display: inline-block;
	padding: .15em .6em;
	border-radius: 999px;
	background: var(--ws-red);
	color: var(--ws-white);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .01em;
}
.weldsafe-save .woocommerce-Price-amount {
	color: inherit;
}
.weldsafe-rrp.is-loop {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .5em;
	margin: -.4em 0 .8em;
	font-size: .8rem;
}
.weldsafe-rrp.is-loop .weldsafe-save {
	padding: .1em .5em;
	font-size: .72rem;
}
.weldsafe-multiple {
	display: flex;
	align-items: center;
	gap: .5em;
	width: 100%;
	margin: 0 0 .6em;
	font-size: .9rem;
	font-weight: 600;
	color: var(--ws-ink);
}
.weldsafe-multiple::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	background: var(--ws-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v7M4.5 8h7' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Header mini-basket dropdown ----------
   Storefront sizes the dropdown to its parent (here just the basket link) and its background
   comes from Customizer CSS, which we switch off — so give it its own width and panel. */
.site-header .site-header-cart {
	position: relative;
}
.site-header-cart .widget_shopping_cart {
	width: 360px;
	max-width: calc(100vw - 32px);
	right: 0;
	background: var(--ws-white);
	color: var(--ws-ink);
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	z-index: 999999;
	text-align: left;
}
.site-header-cart:hover .widget_shopping_cart,
.site-header-cart.focus .widget_shopping_cart {
	left: auto;
	right: 0;
}
.site-header-cart .widget_shopping_cart .widget_shopping_cart_content {
	padding: 16px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
}
.site-header-cart .widget_shopping_cart .product_list_widget {
	margin: 0 0 12px;
	padding: 0;
}
.site-header-cart .widget_shopping_cart .product_list_widget li {
	position: relative;
	display: block;
	min-height: 56px;
	padding: 0 28px 12px 64px;
	margin: 0 0 12px;
	border-bottom: 1px solid var(--ws-line);
	line-height: 1.35;
	font-size: .9em;
}
.site-header-cart .widget_shopping_cart .product_list_widget li a:not(.remove) {
	display: block;
	color: var(--ws-ink);
	font-weight: 600;
}
.site-header-cart .widget_shopping_cart .product_list_widget li img {
	position: absolute;
	left: 0;
	top: 0;
	width: 52px;
	height: 52px;
	max-width: none;
	margin: 0;
	object-fit: contain;
	float: none;
}
.site-header-cart .widget_shopping_cart .product_list_widget li a.remove {
	position: absolute;
	right: 0;
	left: auto;
	top: 0;
	opacity: .6;
}
.site-header-cart .widget_shopping_cart .product_list_widget li .quantity {
	display: block;
	margin-top: 4px;
	color: var(--ws-ink);
}
.site-header-cart .widget_shopping_cart p.total {
	display: flex;
	justify-content: space-between;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
}
.site-header-cart .widget_shopping_cart p.buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	background: none;
}
.site-header-cart .widget_shopping_cart p.buttons a.button {
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
}
/* Phones/tablets: no dropdown — the basket icon simply opens the basket page. */
@media (max-width: 767px) {
	.site-header-cart .widget_shopping_cart {
		display: none !important;
	}
}

/* ---------- Phone header: logo, Sign In and basket on one row ----------
   The basket total wrapped onto its own row under the logo; on phones show just the
   icon and item count, and size the logo so all three fit. */
@media (max-width: 767px) {
	.site-header > .col-full {
		gap: 10px 10px;
	}
	.site-header .custom-logo-link img,
	.site-header .site-logo-anchor img {
		max-width: min(150px, 34vw);
	}
	.site-header .site-header-cart,
	.woocommerce-active .site-header .site-header-cart {
		flex: 0 0 auto;
	}
	.site-header-cart .cart-contents {
		min-width: 44px;
		justify-content: flex-end;
		padding: 0;
		white-space: nowrap;
	}
	.site-header-cart .cart-contents .amount {
		display: none;
	}
	.site-header-cart .cart-contents::after {
		content: "\f291";
		display: inline-block;
		margin-left: 6px;
		font-family: "Font Awesome 5 Free";
		font-weight: 900;
		font-size: 18px;
		line-height: 1;
	}
}

/* Discontinued products (inc/obsolete.php) */
.weldsafe-discontinued-label { color: #9c0b22; font-weight: 600; }
.weldsafe-discontinued ul { margin: 0 0 .75em 1.25em; }
.weldsafe-discontinued ul li { margin: .2em 0; }
