/* UBOXIT theme styles. Colors, type scale and button defaults come from theme.json. */

:root {
	--ubx-orange: var(--wp--preset--color--primary);
	--ubx-dark: var(--wp--preset--color--dark);
	--ubx-muted: var(--wp--preset--color--muted);
	--ubx-radius: var(--wp--custom--radius);
	--ubx-topbar-h: 48px;
}

body {
	-webkit-font-smoothing: antialiased;
}

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

/* The whole header sticks; the top bar scrolls away because the header is offset by its height. */
.ubx-site-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--ubx-topbar-h));
	z-index: 50;
}
.ubx-topbar {
	background: #1f1b1b;
	color: #fff;
	font-size: 0.9rem;
	padding-block: 0;
}
.ubx-topbar__inner {
	min-height: var(--ubx-topbar-h);
}
.ubx-topbar p {
	margin: 0;
}
.ubx-topbar a {
	color: #fff;
	text-decoration: none;
}
.ubx-topbar a:hover {
	color: var(--ubx-orange);
}
.ubx-topbar__contact {
	gap: 1.75rem;
}
.ubx-topbar .ubx-i::before {
	background-color: var(--ubx-orange);
}
.ubx-topbar__social {
	gap: 1rem;
}
.ubx-social {
	gap: 0.5rem;
}
.ubx-social .wp-social-link {
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	padding: 0.3em;
}
.ubx-social .wp-social-link:hover {
	border-color: var(--ubx-orange);
	color: var(--ubx-orange) !important;
}
.ubx-header-main {
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease;
}
.ubx-header-main__inner {
	gap: 1.5rem;
	min-height: 120px;
	transition: min-height 0.3s ease;
}
.ubx-logo img {
	height: auto;
	max-width: 100%;
	transition: width 0.3s ease;
	width: 200px;
}
/* Header shrinks once the page scrolls (is-scrolled is set in assets/js/theme.js), like the old sticky header. */
@media (min-width: 901px) {
	.ubx-site-header.is-scrolled .ubx-header-main {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	}
	.ubx-site-header.is-scrolled .ubx-header-main__inner {
		min-height: 76px;
	}
	.ubx-site-header.is-scrolled .ubx-logo img {
		width: 140px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ubx-header-main,
	.ubx-header-main__inner,
	.ubx-logo img,
	.ubx-nav .has-child > .wp-block-navigation__submenu-container {
		transition: none !important;
	}
}
.ubx-header-actions {
	gap: 1.25rem;
}

/* Menu */
.ubx-nav .wp-block-navigation__container {
	gap: 1.75rem;
}
.ubx-nav .wp-block-navigation-item__content {
	color: var(--ubx-dark);
	padding-block: 0.5rem;
}
.ubx-nav .wp-block-navigation-item__content:hover,
.ubx-nav .current-menu-item > .wp-block-navigation-item__content,
.ubx-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--ubx-orange);
}
.ubx-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	font-weight: 400;
	padding: 0.5rem 0;
}
.ubx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.25rem;
	white-space: nowrap;
}
/* Dropdowns open with a top-down reveal, like the old Impreza menu ("height" effect). */
@media (min-width: 1300px) {
	.ubx-nav .has-child > .wp-block-navigation__submenu-container {
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.3s ease, opacity 0.3s ease;
	}
	/* Negative insets leave room for the dropdown shadow. */
	.ubx-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.ubx-nav .has-child:focus-within > .wp-block-navigation__submenu-container {
		clip-path: inset(0 -40px -40px -40px);
	}
}
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}
/* The overlay inherits the desktop right alignment; read it left to right. */
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	text-align: left;
}
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.1rem;
}
.ubx-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none;
	font-size: 0.95rem;
	padding: 0 0 0 1rem;
}
.ubx-nav .wp-block-navigation__responsive-container-open svg,
.ubx-nav .wp-block-navigation__responsive-container-close svg {
	height: 30px;
	width: 30px;
}

/* Mini cart */
.ubx-cart .wc-block-mini-cart__button {
	color: var(--ubx-dark);
	padding: 0.25rem;
}
.ubx-cart .wc-block-mini-cart__badge {
	background: var(--ubx-orange);
	color: #fff;
}
.ubx-header-quote .wp-block-button__link {
	white-space: nowrap;
}

/* The full menu only fits from 1300px: below that the toggle shows (core switches at 600px). */
@media (max-width: 1299px) {
	.ubx-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.ubx-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	/* Quote button, cart, then the menu toggle. */
	.ubx-header-quote {
		order: 1;
	}
	.ubx-cart {
		order: 2;
	}
	.ubx-nav {
		order: 3;
	}
	.ubx-header-actions {
		gap: 0.75rem;
	}
}
@media (max-width: 900px) {
	.ubx-topbar__social {
		display: none !important;
	}
	.ubx-header-main__inner {
		min-height: 76px;
	}
	.ubx-logo {
		width: 150px;
	}
	.ubx-logo img {
		width: 100%;
	}
}
@media (max-width: 600px) {
	:root {
		--ubx-topbar-h: 0px;
	}
	.ubx-topbar {
		display: none;
	}
	.ubx-header-main__inner {
		gap: 0.75rem;
		min-height: 64px;
	}
	.ubx-logo {
		flex-shrink: 0;
		width: 110px;
	}
	.ubx-header-quote .wp-block-button__link {
		font-size: 12px;
		padding: 0.65em 0.8em;
	}
}
@media (max-width: 374px) {
	.ubx-logo {
		width: 92px;
	}
	.ubx-header-quote .wp-block-button__link {
		font-size: 11px;
		padding: 0.6em 0.7em;
	}
	.ubx-header-actions {
		gap: 0.5rem;
	}
}

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

/* Header, main and footer sit flush (core adds the 24px block gap between them). */
.wp-site-blocks > .ubx-main,
.wp-site-blocks > .ubx-site-footer {
	margin-block-start: 0;
}
.ubx-footer {
	background: var(--wp--preset--color--footer);
	color: #999;
	padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.ubx-footer a {
	color: #fff;
	text-decoration: none;
}
.ubx-footer a:hover {
	color: var(--ubx-orange);
}
.ubx-footer__cols {
	gap: 2rem;
}
/* Contact column gets extra room so the email address stays on one line. */
.ubx-footer__cols > .wp-block-column:last-child {
	flex-grow: 1.4 !important;
}
@media (min-width: 782px) and (max-width: 1199px) {
	.ubx-footer__cols {
		flex-wrap: wrap !important;
	}
	.ubx-footer__cols > .ubx-footer__brand {
		flex-basis: 100% !important;
	}
}
.ubx-footer__title {
	color: var(--ubx-orange);
	font-size: 1.15rem;
	margin-bottom: 1rem;
}
.ubx-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ubx-footer__links li {
	margin-bottom: 0.35rem;
}
.ubx-footer__text {
	line-height: 1.7;
	margin: 0 0 0.75rem;
}
.ubx-footer .ubx-i {
	display: flex;
	gap: 0.6rem;
}
.ubx-footer .ubx-i::before {
	background-color: var(--ubx-orange);
	flex-shrink: 0;
	margin: 0.35em 0 0;
}
.ubx-footer__logo {
	filter: grayscale(1) brightness(1.6);
	opacity: 0.85;
}
.ubx-footer__social {
	margin-top: 2rem;
}
.ubx-footer__bottom {
	border-top: 1px solid #333;
	font-size: 0.9rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
}
.ubx-footer__bottom p {
	margin: 0;
}
.ubx-footer__credits {
	gap: 0.25rem;
}
.ubx-footer__builtby {
	font-size: 0.75rem;
}
@media (max-width: 781px) {
	.ubx-footer__cols {
		flex-wrap: wrap !important;
	}
	.ubx-footer__cols > .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
	}
	.ubx-footer__cols > .ubx-footer__brand {
		flex-basis: 100% !important;
	}
}

/* ---------------------------------------------------------------- Page banner and content */

.ubx-banner {
	background: #1a1a1a url("../images/page-hero-1920.webp") center / cover no-repeat;
	padding-block: clamp(3rem, 6vw, 5.5rem);
	position: relative;
}
.ubx-banner::before {
	background: rgba(26, 26, 26, 0.55);
	content: "";
	inset: 0;
	position: absolute;
}
.ubx-banner > * {
	position: relative;
}
.ubx-banner__title {
	color: #fff;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	margin: 0;
}
@media (max-width: 800px) {
	.ubx-banner {
		background-image: url("../images/page-hero-800.webp");
	}
}
.ubx-content {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
/* Full-width pages are made of sections that carry their own spacing. */
.ubx-content--flush {
	padding-block: 0;
}
.ubx-content--flush > * {
	margin-block: 0 !important;
}
.ubx-main .woocommerce-breadcrumb,
.ubx-main .wc-block-breadcrumbs {
	color: var(--ubx-muted);
	font-size: 0.9rem;
}

/* ---------------------------------------------------------------- Sections */

.ubx-section {
	padding-block: clamp(3.5rem, 6vw, 6rem);
}
.ubx-eyebrow {
	color: var(--ubx-orange);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}
/* Eyebrow, title and intro sit 30px apart (blockGap on the group). */
.ubx-head {
	margin-bottom: 30px;
}
.ubx-head--center {
	text-align: center;
}
.ubx-head--center .ubx-intro {
	margin-inline: auto;
}
.ubx-intro {
	color: var(--ubx-muted);
}
.ubx-head .ubx-intro {
	max-width: 46rem;
}
.ubx-section .wp-block-heading a,
.ubx-section p a:not(.wp-block-button__link) {
	color: var(--ubx-orange);
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 0;
	box-shadow: inset 0 0 0 2px currentColor;
	color: var(--ubx-dark);
	padding: 0.9em 2.8em;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--ubx-dark);
	box-shadow: inset 0 0 0 2px var(--ubx-dark);
	color: #fff;
}
.ubx-on-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
}
.ubx-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: #fff;
	box-shadow: inset 0 0 0 2px #fff;
	color: var(--ubx-dark);
}
.wp-block-button.is-style-dark > .wp-block-button__link {
	background: var(--ubx-dark);
	color: #fff;
}
.wp-block-button.is-style-dark > .wp-block-button__link:hover {
	background: #3e3c3c;
}
/* Buttons with an icon: the icon class sets --ubx-icon on the button wrapper. */
.ubx-btn-icon > .wp-block-button__link::after,
.ubx-btn-icon--start > .wp-block-button__link::before {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 0.85em;
	-webkit-mask: var(--ubx-icon) center / contain no-repeat;
	mask: var(--ubx-icon) center / contain no-repeat;
	vertical-align: -0.08em;
	width: 0.85em;
}
.ubx-btn-icon > .wp-block-button__link::after {
	margin-left: 0.5em;
}
.ubx-btn-icon--start > .wp-block-button__link::after {
	content: none;
}
.ubx-btn-icon--start > .wp-block-button__link::before {
	margin-right: 0.5em;
}

/* Check list */
.ubx-checks {
	list-style: none;
	padding: 0;
}
.ubx-checks li {
	margin-bottom: 0.35em;
	padding-left: 1.7em;
	position: relative;
}
.ubx-checks li::before {
	background-color: var(--ubx-orange);
	content: "";
	height: 0.9em;
	left: 0;
	-webkit-mask: var(--ubx-icon) center / contain no-repeat;
	mask: var(--ubx-icon) center / contain no-repeat;
	position: absolute;
	top: 0.4em;
	width: 0.9em;
}

/* Photos */
.ubx-photo img {
	aspect-ratio: 4 / 3;
	border-radius: var(--ubx-radius);
	object-fit: cover;
	width: 100%;
}
/* Photo beside text: whichever side is shorter is centered on the other (doubled class beats core's align-items rule). */
.wp-block-columns.ubx-split.ubx-split {
	align-items: center !important;
}

/* Cards */
.ubx-cards {
	gap: 24px;
}
.ubx-card {
	background: #fff;
	border-radius: var(--ubx-radius);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: box-shadow 0.2s, transform 0.2s;
}
.ubx-card:hover {
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
	transform: translateY(-3px);
}
.ubx-card > .wp-block-image {
	margin: 0;
}
.ubx-card > .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.ubx-card--wide > .wp-block-image img {
	aspect-ratio: 16 / 9;
}
.ubx-card__body {
	flex-grow: 1;
	padding: 1.25rem 1.5rem 1.5rem;
}
.ubx-card__body > * {
	margin-block: 0 0.75rem;
}
.ubx-card__body > :last-child {
	margin-bottom: 0;
}
.ubx-card__body p {
	color: var(--ubx-muted);
	line-height: 1.55;
}
.ubx-card__body h3 {
	font-size: 1.35rem;
}
.ubx-card__body h3 a {
	color: inherit !important;
}
.ubx-more {
	color: var(--ubx-orange) !important;
	font-weight: 700;
}
/* Whole card clickable through its "View ..." link. */
.ubx-card--link .ubx-more a {
	color: inherit;
	text-decoration: none;
}
.ubx-card--link .ubx-more a::after {
	content: "";
	inset: 0;
	position: absolute;
}

/* Icon lists (modifications) */
.ubx-mods {
	column-gap: 2rem;
	columns: 2;
	list-style: none;
	margin-bottom: 1.5rem;
	padding: 0;
}
.ubx-mods li {
	break-inside: avoid;
	font-weight: 700;
	margin-bottom: 1rem;
}
.ubx-mods li::before {
	color: var(--ubx-orange);
	font-size: 1.25rem;
	margin-right: 0.6rem;
	vertical-align: -0.2em;
}
.ubx-mods a {
	color: var(--ubx-dark);
	text-decoration: none;
}
.ubx-mods a:hover {
	color: var(--ubx-orange);
}

/* Dark section (delivery) */
.ubx-dark {
	background: var(--ubx-dark);
	color: #d6d6d6;
}
.ubx-dark h2,
.ubx-dark h3,
.ubx-dark strong {
	color: #fff;
}
.ubx-dark .ubx-intro {
	color: #d6d6d6;
}
.ubx-chip {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 0.9rem;
	margin: 0 0.35rem 0.5rem 0;
	padding: 0.25em 0.9em;
}

/* Why UBOXIT: icon in an orange circle above each title */
.ubx-why h3 {
	font-size: 1.15rem;
	padding-top: 84px;
	position: relative;
	text-align: center;
}
.ubx-why h3::after {
	background: var(--ubx-orange);
	border-radius: 50%;
	content: "";
	height: 64px;
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 64px;
}
.ubx-why h3::before {
	background-color: #fff;
	height: 30px;
	left: 50%;
	margin: 0;
	position: absolute;
	top: 17px;
	transform: translateX(-50%);
	width: 30px;
	z-index: 1;
}
.ubx-why p {
	color: var(--ubx-muted);
	text-align: center;
}

/* Gallery */
.ubx-gallery img {
	border-radius: var(--ubx-radius);
}

/* Final call to action */
.ubx-cta {
	text-align: center;
}
.ubx-cta h2,
.ubx-cta p,
.ubx-cta .ubx-eyebrow {
	color: #fff;
}

/* ---------------------------------------------------------------- Inner pages */

.ubx-narrow {
	margin-inline: auto !important;
	max-width: 860px;
}
.ubx-narrow .ubx-eyebrow {
	margin-bottom: 0.5rem;
}
.ubx-fab-section + .ubx-fab-section {
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.ubx-fab-section h2 {
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
.ubx-infographics {
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}
.ubx-infographics img {
	height: auto;
	width: 100%;
}
/* Contact: "How to reach us" cards on a light band, then the map edge to edge. */
.ubx-reach-section {
	padding-block: clamp(3rem, 5vw, 4.25rem);
}
.ubx-reach-cols {
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-bottom: 0 !important;
}
.ubx-reach-card {
	background: #fff;
	box-shadow: 5px 5px 10px 5px rgba(153, 153, 153, 0.2);
	padding: clamp(2rem, 3.2vw, 2.8rem) 1.4rem;
}
.ubx-reach {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	font-weight: 700;
	margin: 0;
	overflow-wrap: anywhere;
}
.ubx-reach a {
	color: var(--ubx-dark);
	text-decoration: none;
}
.ubx-reach a:hover {
	color: var(--ubx-orange);
}
.ubx-reach.ubx-i::before {
	color: var(--ubx-orange);
	display: block;
	height: 64px;
	margin: 0 auto 1.25rem;
	width: 64px;
}
.ubx-reach-section + .ubx-map {
	margin-top: 0 !important;
}
.ubx-content:has(> .ubx-map:last-child) {
	padding-bottom: 0;
}
.ubx-map iframe {
	border: 0;
	display: block;
	height: 450px;
	width: 100%;
}

/* ---------------------------------------------------------------- Home hero */

.ubx-hero {
	background-color: var(--wp--preset--color--darker);
	background-position: center top;
	background-repeat: no-repeat;
	color: #fff;
	padding-block: 4rem;
	position: relative;
}
.ubx-hero::before {
	background: rgba(10, 10, 10, 0.72);
	content: "";
	inset: 0;
	position: absolute;
}
.ubx-hero > * {
	position: relative;
}
.ubx-hero h1 {
	color: #fff;
	margin-bottom: 0;
}
.ubx-hero__copy {
	padding-top: 2.5rem;
}
.ubx-lead {
	font-size: 1.15rem;
	line-height: 1.6;
	max-width: 36rem;
}
.ubx-hero p.ubx-phone a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.ubx-hero p.ubx-phone a:hover {
	color: var(--ubx-orange);
}
.ubx-form-card {
	background: #fff;
	border-radius: var(--ubx-radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	color: var(--ubx-dark);
	margin-left: auto;
	max-width: 560px;
	padding: 1.75rem 1.5rem 0.5rem;
}
.ubx-form-card h2 {
	font-size: 1.6rem;
	margin: 0 0 0.25rem;
}
.ubx-form-card p {
	color: var(--ubx-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}
.ubx-softlink-form iframe {
	display: block;
	min-height: 654px;
	width: 100%;
}
@media (min-width: 901px) {
	/* The form is ~1000px tall: the copy follows the scroll beside it. */
	.ubx-hero__copy {
		position: sticky;
		top: 140px;
	}
}

/* ---------------------------------------------------------------- Responsive layout */

/* Hero and photo/text sections stack below 900px (core columns only stack below 782px). */
@media (max-width: 900px) {
	.ubx-hero__cols,
	.ubx-split {
		flex-wrap: wrap !important;
		row-gap: 2rem;
	}
	.ubx-hero__cols > .wp-block-column,
	.ubx-split > .wp-block-column {
		flex-basis: 100% !important;
	}
	.ubx-split--reverse > .wp-block-column:last-child {
		order: -1;
	}
	.ubx-split .ubx-photo img {
		aspect-ratio: 16 / 9;
	}
	.ubx-hero__copy {
		padding-top: 0;
	}
	.ubx-form-card {
		margin-left: 0;
		max-width: 640px;
	}
}
/* Tablets and large phones: size cards and Why UBOXIT in two columns. */
@media (min-width: 480px) and (max-width: 1023px) {
	.wp-block-columns.ubx-cards--4 {
		flex-wrap: wrap !important;
	}
	/* Doubled class: beats core's `.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column` stacking rule. */
	.wp-block-columns.ubx-cards--4.ubx-cards--4 > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		flex-grow: 0 !important;
	}
}
@media (max-width: 767px) {
	.ubx-section .wp-block-buttons > .wp-block-button {
		width: 100%;
	}
	.ubx-section .wp-block-buttons > .wp-block-button > .wp-block-button__link {
		width: 100%;
	}
	.ubx-mods {
		columns: 1;
	}
	.ubx-lead {
		font-size: 1.05rem;
	}
}
@media (max-width: 600px) {
	body {
		--wp--preset--font-size--base: 1rem;
	}
	.ubx-section .wp-block-button__link {
		padding-left: 1.25em;
		padding-right: 1.25em;
	}
	.ubx-hero {
		padding-block: 2rem;
	}
}

/* ---------------------------------------------------------------- Products */

/* Explicit grid: WooCommerce's auto-fill columns assume its own 1.25em gap. */
.ubx-products .wc-block-product-template {
	gap: clamp(1.5rem, 3.5vw, 3.2rem);
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1023px) {
	.ubx-products .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 767px) {
	.ubx-products .wc-block-product-template {
		gap: 16px;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
/* Card as on the original site: photo inset in a light panel with an orange bottom edge. */
.ubx-products .wc-block-product {
	background: var(--wp--preset--color--light);
	border-bottom: 5px solid var(--ubx-orange);
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 5%;
}
.ubx-products .wc-block-product > * {
	margin: 0 !important;
}
/* Products without a price still print an empty price wrapper, which would add a gap. */
.ubx-products .wp-block-woocommerce-product-price:not(:has(.amount)) {
	display: none;
}
.ubx-products .wc-block-components-product-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}
.ubx-products .wp-block-post-title {
	font-size: 1rem;
	line-height: 1.55;
}
.ubx-products .wp-block-post-title a {
	color: var(--ubx-dark);
	text-decoration: none;
}
.ubx-products .wp-block-post-title a:hover {
	color: var(--ubx-orange);
}
.ubx-products .wc-block-components-product-price {
	color: var(--ubx-orange);
	font-size: 0.875rem;
	font-weight: 700;
}
/* "Learn More" + "Get a Quote" on products without a price (rendered by UBOXIT Core). */
.ubx-card-links {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.35rem 1.2rem;
	justify-content: center;
	margin-top: auto !important;
}
.ubx-card-links a {
	color: var(--ubx-dark);
	text-decoration: none;
}
.ubx-card-links a.ubx-card-links__quote {
	color: var(--ubx-orange);
	font-weight: 700;
}
.ubx-card-links a:hover {
	color: var(--ubx-orange);
	text-decoration: underline;
}
.ubx-card-links__quote::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	height: 0.8em;
	margin-left: 0.4em;
	-webkit-mask: var(--ubx-icon) center / contain no-repeat;
	mask: var(--ubx-icon) center / contain no-repeat;
	vertical-align: -0.05em;
	width: 0.8em;
}
.ubx-products .wp-block-query-pagination {
	margin-top: 2rem;
}
.ubx-shop__toolbar {
	margin-block: 1rem 1.5rem;
}

/* Single product */
.ubx-product {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ubx-product__cols {
	gap: clamp(1.5rem, 4vw, 3.5rem);
}
.ubx-product__title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin-block: 0.75rem 0.5rem;
}
.ubx-product__price,
.ubx-product .wc-block-components-product-price {
	color: var(--ubx-orange);
	font-size: 1.25rem;
	font-weight: 700;
}
.ubx-product__description {
	line-height: 1.7;
}
.ubx-product .quantity .qty {
	min-height: 47px;
	padding: 0 0.5rem;
	width: 4.5rem;
}
.ubx-product .single_add_to_cart_button {
	background: var(--ubx-orange);
	border: 0;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 0.9em 2.8em;
}
.ubx-product .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--primary-dark);
}
.ubx-product .variations select {
	min-height: 44px;
	padding: 0 0.5rem;
}
.ubx-quote-button {
	margin-block: 1rem;
}
.ubx-product .wp-block-woocommerce-product-meta {
	color: var(--ubx-muted);
	font-size: 0.9rem;
	margin-top: 1.5rem;
}
