/*
 * The Breather: slim top bar, loaded on every page.
 */

#top-bar-wrap #top-bar {
	padding-top: 10px;
	padding-bottom: 10px;
}

#top-bar-wrap #top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#top-bar-wrap #top-bar-inner::before,
#top-bar-wrap #top-bar-inner::after {
	display: none;
}

#top-bar-wrap #top-bar-social {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	order: 1;
	float: none;
	margin: 0;
	line-height: 1;
}

#top-bar-wrap #top-bar-content {
	order: 2;
	float: none;
	margin-left: auto;
	text-align: right;
}

#top-bar-wrap #top-bar-nav > ul {
	display: flex;
	align-items: center;
	gap: 22px;
}

#top-bar-wrap #top-bar-nav > ul > li {
	float: none;
	margin: 0;
}

#top-bar-wrap #top-bar-nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	font-size: 15px;
	line-height: 24px;
	color: #636a71;
}

#top-bar-wrap #top-bar-nav > ul > li > a:hover,
#top-bar-wrap #top-bar-nav > ul > li.current-menu-item > a {
	color: #006daf;
}

#top-bar-wrap #top-bar-nav .tbp-top-account > a::before,
#top-bar-wrap #top-bar-nav .tbp-top-cart > a::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: var(--tbp-top-icon) center / 18px no-repeat;
	mask: var(--tbp-top-icon) center / 18px no-repeat;
}

#top-bar-wrap #top-bar-nav .tbp-top-account > a {
	--tbp-top-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20.5c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5'/%3E%3C/svg%3E");
}

#top-bar-wrap #top-bar-nav .tbp-top-cart > a {
	--tbp-top-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h3l2.4 11.2a1.5 1.5 0 0 0 1.5 1.2h8.3a1.5 1.5 0 0 0 1.5-1.2L20.8 7.5H6.4'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17.5' cy='20' r='1.4'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
	#top-bar-wrap #top-bar-content,
	#top-bar-wrap #top-bar-social {
		text-align: left;
	}

	#top-bar-wrap #top-bar-nav > ul {
		gap: 18px;
	}
}

/*
 * Footer: blue panel with link columns, then a white copyright bar.
 */

.tbf {
	--tbf-blue: #006daf;
	--tbf-line: rgba(255, 255, 255, 0.24);
	font-family: "Open Sans", sans-serif;
	font-size: 15.5px;
	line-height: 1.6;
}

.tbf__main {
	padding: 56px 0 0;
	background: var(--tbf-blue);
	color: #fff;
}

.tbf__inner {
	width: 1200px;
	max-width: 90%;
	margin: 0 auto;
}

.tbf__main > .tbf__inner:first-child {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
	gap: 40px 40px;
	padding-bottom: 44px;
}

.tbf__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.tbf__logo img {
	display: block;
	width: 210px;
	max-width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
}

.tbf .tbf__blurb {
	max-width: 36ch;
	margin: 0 0 18px;
	color: rgba(255, 255, 255, 0.92);
}

.tbf .tbf__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-weight: 600;
}

.tbf .tbf__title {
	margin: 4px 0 14px;
	padding: 0;
	border: 0;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}

.tbf .tbf__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbf .tbf__col li {
	margin: 0 0 9px;
}

.tbf .tbf__main a {
	color: #fff;
	text-decoration: none;
}

.tbf .tbf__main a:hover,
.tbf .tbf__main a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbf .tbf__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin: 0;
	padding: 20px 0 22px;
	border-top: 1px solid var(--tbf-line);
	list-style: none;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.92);
}

.tbf .tbf__points li {
	position: relative;
	margin: 0;
	padding-left: 24px;
}

.tbf .tbf__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 16px;
	height: 16px;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.6l3.8 3.8L16 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.6l3.8 3.8L16 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.tbf__bar {
	padding: 16px 0;
	background: #fff;
	color: var(--tbf-blue);
	font-size: 14.5px;
	text-align: center;
}

.tbf .tbf__bar p {
	margin: 0;
	color: var(--tbf-blue);
}

@media (max-width: 1024px) {
	.tbf__main > .tbf__inner:first-child {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tbf__brand {
		grid-column: 1 / -1;
	}

	.tbf .tbf__blurb {
		max-width: 60ch;
	}
}

@media (max-width: 767px) {
	.tbf__main {
		padding-top: 40px;
	}

	.tbf__main > .tbf__inner:first-child {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
		padding-bottom: 32px;
	}

	.tbf .tbf__points {
		flex-direction: column;
	}
}

/*
 * WooCommerce notices on every page: "added to your cart", coupon messages, errors.
 * Rounded like the rest of the build, with an orange line across the top.
 */

body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
	display: flex;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 24px;
	padding: 17px 20px 14px;
	border: 0;
	border-radius: 12px;
	background: #fff8f2;
	box-shadow: inset 0 3px 0 #ff8523, inset 0 0 0 1px #f4e2d3;
	font-family: "Open Sans", sans-serif;
	font-size: 15.5px;
	line-height: 1.5;
	color: #25282b;
	list-style: none;
}

body .woocommerce-error {
	display: block;
	background: #fdf1ef;
	box-shadow: inset 0 3px 0 #c0392b, inset 0 0 0 1px #f3d2cd;
}

body .woocommerce-error li {
	margin: 0;
	padding: 0;
}

body .woocommerce-message::after,
body .woocommerce-info::after,
body .woocommerce-error::after,
body .woocommerce-info::before,
body .woocommerce-error::before {
	display: none;
}

body .woocommerce-message::before {
	content: "";
	position: static;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	border-radius: 50%;
	background: #ff8523 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3L14.6 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button),
body .woocommerce-error a:not(.button) {
	color: #006daf;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
	order: 2;
	flex: 0 0 auto;
	float: none;
	min-height: 40px;
	margin: 0 0 0 auto;
	white-space: nowrap;
	padding: 0 20px;
	border: 0;
	/* The site's custom CSS forces pill shaped, upper case buttons with !important, so these need it too. */
	border-radius: 999px !important;
	background: #006daf !important;
	color: #fff !important;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0;
	text-transform: none !important;
	transition: box-shadow 0.15s ease;
}

body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover,
body .woocommerce-error .button:hover,
body .woocommerce-message .button:focus,
body .woocommerce-info .button:focus,
body .woocommerce-error .button:focus {
	background: #006daf !important;
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(0, 109, 175, 0.32);
}

@media (max-width: 480px) {
	/* Tick and message on one line, button full width underneath. */
	body .woocommerce-message {
		display: grid;
		grid-template-columns: 22px minmax(0, 1fr);
		align-items: start;
	}

	body .woocommerce-info {
		flex-wrap: wrap;
	}

	body .woocommerce-message .button,
	body .woocommerce-info .button,
	body .woocommerce-error .button {
		grid-column: 1 / -1;
		flex: 1 0 100%;
		margin-left: 0;
		text-align: center;
	}
}

/*
 * One blue. These two are set by plugins in their own stylesheets, not in a setting,
 * so they are matched to the brand blue here: the keyboard "Skip to content" link and
 * the share buttons on articles (Facebook, X and LinkedIn each used their own blue).
 */

body .ea11y-skip-to-content-link {
	border-color: #006daf;
}

body .elementor-widget-share-buttons .elementor-share-btn[class*="elementor-share-btn_"] {
	background-color: #006daf;
}

/*
 * Phone numbers never break across two lines. If one does not fit at the end of a line,
 * the whole number moves down to the next line.
 */

a[href^="tel:"] {
	white-space: nowrap;
}

/*
 * Main menu: same look as the Account and Cart links in the top bar.
 * Open Sans, 15px, regular weight, written as typed (no capitals).
 * The theme's menu settings print their own rule in the page head, so this one is more specific.
 */

body #site-header #site-navigation-wrap .dropdown-menu > li > a {
	font-family: "Open Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.6px;
	text-transform: none;
}

body #site-header #site-navigation-wrap .dropdown-menu .sub-menu li > a {
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.6px;
	text-transform: none;
}
