/*
Theme Name: Burns Guitar Museum
Theme URI: https://www.burnsguitarmuseum.com/
Description: Block theme for the Burns Guitar Museum. Mod-era roundel identity in the colours of the Burns London Museum logo, large readable type, WooCommerce-ready.
Version: 1.0.13
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: burns-museum
Tags: block-theme, full-site-editing, e-commerce, custom-colors, wide-blocks
*/

/* Archivo is a variable font with a width axis: headings use the condensed cut. */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title {
	font-stretch: 75%;
	text-wrap: balance;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--red);
	outline-offset: 3px;
}

/* ---------- shared bits ---------- */
.bm-eyebrow {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	display: flex;
	align-items: center;
	gap: 10px;
}
.bm-eyebrow::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex: none;
	background: radial-gradient(circle, var(--wp--preset--color--red) 0 30%, #fff 31% 62%, var(--wp--preset--color--blue) 63%);
}
.bm-lead { font-size: 1.2rem; max-width: 62ch; }
.bm-note,
.bm-meta {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.95rem;
	color: var(--wp--preset--color--steel);
}
.bm-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
/* Section head spans the content column (left edge aligned with the content below); only its text is kept narrow. */
.bm-section-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.bm-section-head > * { max-width: 780px; }
.bm-section-head > * + * { margin-top: 14px; }

/* Secondary (outline) buttons in roundel blue */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--blue);
	border: 2px solid var(--wp--preset--color--blue);
	padding: 13px 24px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue);
	color: #fff;
}
.wp-block-button__link { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; }

/* The roundel */
.bm-roundel {
	border-radius: 50%;
	aspect-ratio: 1;
	background: radial-gradient(circle, var(--wp--preset--color--red) 0 25%, #fff 25.4% 52%, var(--wp--preset--color--blue) 52.4% 98%, var(--wp--preset--color--steel) 98.4%);
}

/* ---------- header ---------- */
/* Sticky lives on the template-part wrapper, the header group fills it. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
/* Coloured bands sit edge to edge: no block gap between parts or sections. */
.wp-site-blocks > * + *,
.bm-main > * + * { margin-block-start: 0 !important; }
.bm-header {
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--wp--preset--color--line);
	backdrop-filter: saturate(1.2) blur(6px);
}
.bm-header__row { min-height: 84px; gap: 20px; }
.bm-brand { gap: 12px; flex: none; }
.bm-brand .wp-block-image { margin: 0; }
.bm-brand img { width: 64px; height: 64px; }
.bm-brand__name {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 70%;
	font-weight: 850;
	font-size: 1.35rem;
	line-height: 0.95;
	text-transform: uppercase;
	margin: 0;
}
.bm-brand__name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.bm-brand__name small {
	display: block;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--steel);
}
.bm-header__nav { gap: 10px; margin-left: auto; }
.bm-header .wp-block-navigation-item__content { padding: 10px 12px; border-radius: 6px; }
.bm-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--mist); color: var(--wp--preset--color--blue); }
.bm-header .wp-block-navigation__responsive-container-open,
.bm-header .wp-block-navigation__responsive-container-close {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 1.05rem;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 8px;
	padding: 10px 16px;
}
.bm-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.bm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; padding: 12px 0; }
.bm-header .bm-buy-small .wp-block-button__link { padding: 12px 20px; min-height: 48px; }
.bm-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 0; }
.bm-header .wp-block-navigation-item__content { white-space: nowrap; }
.bm-header .bm-buy-small .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1100px) { .bm-header .bm-buy-small { display: none; } }
@media (min-width: 600px) and (max-width: 900px) { .bm-brand__name { display: none; } }
@media (max-width: 780px) {
	.bm-brand img { width: 52px; height: 52px; }
	.bm-brand__name { font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.bm-hero { background: var(--wp--preset--color--mist); overflow: hidden; padding-top: 64px; padding-bottom: 72px; }
.bm-hero h1 { font-stretch: 68%; margin-top: 18px; }
.bm-hero h1 em { font-style: normal; color: var(--wp--preset--color--blue); display: block; }
.bm-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.bm-stage > .bm-roundel { position: absolute; inset: 0; margin: 0; }
.bm-stage > .bm-stage__cover { position: absolute; left: 25%; top: 8%; width: 50%; margin: 0; transform: rotate(-4deg); }
.bm-stage > .bm-stage__cover img { width: 100%; filter: drop-shadow(0 26px 30px rgba(20, 27, 45, 0.45)); }
.bm-stage > .bm-stage__tag {
	position: absolute;
	right: 2%;
	bottom: 8%;
	margin: 0;
	background: var(--wp--preset--color--ink);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 70%;
	font-weight: 800;
	text-transform: uppercase;
	font-size: 1.2rem;
	line-height: 1.05;
	padding: 14px 18px;
	transform: rotate(5deg);
	text-align: center;
}
.bm-stage__tag strong { display: block; font-size: 2.1rem; font-weight: 850; }
@media (max-width: 781px) { .bm-hero { padding-top: 40px; padding-bottom: 56px; } .bm-stage { max-width: 420px; } }

/* ---------- spec strip ---------- */
.bm-specs { background: var(--wp--preset--color--blue); color: #fff; }
.bm-specs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bm-specs li {
	padding: 22px 18px;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.95rem;
	line-height: 1.3;
	margin: 0;
}
.bm-specs li:first-child { border-left: 0; padding-left: 0; }
.bm-specs strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 70%;
	font-weight: 850;
	font-size: 2.1rem;
	text-transform: uppercase;
	line-height: 1;
}
@media (max-width: 760px) {
	.bm-specs ul { grid-template-columns: 1fr 1fr; }
	.bm-specs li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
	.bm-specs li:nth-child(-n+2) { border-top: 0; }
}

/* ---------- books ---------- */
.bm-books > * + * { margin-top: 40px !important; }
.bm-book {
	padding: 40px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: #fff;
	gap: 48px !important;
}
.bm-book__img {
	background: var(--wp--preset--color--mist);
	border-radius: 10px;
	padding: 24px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}
.bm-book__img > * { margin: 0 !important; }
.bm-book__img img { max-height: 100%; width: auto; filter: drop-shadow(0 18px 22px rgba(20, 27, 45, 0.3)); }
.bm-book h3 { font-size: clamp(2rem, 4vw, 3rem); }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.bm-chips li {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.85rem;
	font-weight: 650;
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--blue-deep);
	padding: 6px 12px;
	border-radius: 999px;
	margin: 0;
}
.bm-chips li:first-child.is-new,
.bm-chips .is-new { background: var(--wp--preset--color--red); color: #fff; }
.bm-price { font-family: var(--wp--preset--font-family--ui); font-size: 1.05rem; color: var(--wp--preset--color--steel); }
.bm-price strong {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 75%;
	font-weight: 850;
	font-size: 2.2rem;
	color: var(--wp--preset--color--ink);
}
.bm-placeholder-cover {
	width: 78%;
	aspect-ratio: 3 / 4;
	background: var(--wp--preset--color--ink);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 26px;
	border-radius: 4px;
	box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.5);
	position: relative;
	overflow: hidden;
}
.bm-placeholder-cover::after {
	content: "";
	position: absolute;
	width: 70%;
	aspect-ratio: 1;
	right: -18%;
	bottom: -14%;
	border-radius: 50%;
	background: radial-gradient(circle, var(--wp--preset--color--red) 0 25%, #fff 26% 52%, var(--wp--preset--color--blue) 53%);
}
.bm-placeholder-cover span {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 68%;
	font-weight: 850;
	text-transform: uppercase;
	font-size: 2.1rem;
	line-height: 0.95;
	position: relative;
	z-index: 1;
}
.bm-placeholder-cover small {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.8;
	position: relative;
	z-index: 1;
}
@media (max-width: 781px) {
	.bm-book { padding: 22px; gap: 26px !important; }
	.bm-book--alt { flex-direction: column-reverse; }
}

/* ---------- gallery ---------- */
.bm-mist { background: var(--wp--preset--color--mist); }
.bm-gallery { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
.bm-gallery > * { margin: 0 !important; }
.bm-gallery .wp-block-image { background: #fff; border-radius: 10px; overflow: hidden; }
.bm-gallery img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.bm-gallery figcaption {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.92rem;
	padding: 12px 14px;
	margin: 0;
	color: var(--wp--preset--color--steel);
	text-align: left;
}
@media (max-width: 600px) { .bm-gallery { grid-template-columns: 1fr; } }

/* ---------- story ---------- */
.bm-story { background: var(--wp--preset--color--blue-deep); color: #fff; }
.bm-story .bm-eyebrow { color: #a9c1ef; }
.bm-story h2 { color: #fff; margin: 16px 0 30px; }
.bm-story__text p { font-size: 1.12rem; }
.bm-story__text > p:first-of-type::first-letter {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-stretch: 70%;
	float: left;
	font-size: 4.6rem;
	line-height: 0.8;
	margin: 8px 10px 0 0;
}
.bm-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid rgba(255, 255, 255, 0.25); }
.bm-timeline li { position: relative; padding: 0 0 26px 30px; margin: 0; color: #d6e0f5; font-size: 1.02rem; }
.bm-timeline li::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 6px;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--wp--preset--color--red) 0 30%, #fff 31% 60%, var(--wp--preset--color--blue) 61%);
	box-shadow: 0 0 0 3px var(--wp--preset--color--blue-deep);
}
.bm-timeline strong {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 75%;
	font-weight: 850;
	font-size: 1.7rem;
	display: block;
	line-height: 1.1;
	color: #fff;
}

/* ---------- reviews ---------- */
.bm-quotes { columns: 3 300px; column-gap: 22px; }
.bm-quotes > * { margin: 0 0 22px !important; }
.bm-quotes .wp-block-quote {
	break-inside: avoid;
	padding: 28px;
	border-radius: 12px;
	background: var(--wp--preset--color--mist);
}
.bm-quotes .wp-block-quote p { font-size: 1.15rem; line-height: 1.5; margin: 0; }
.bm-quotes .wp-block-quote p::before {
	content: "\201C";
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900;
	font-size: 3.2rem;
	line-height: 0.5;
	color: var(--wp--preset--color--blue);
	display: block;
	height: 22px;
}
.bm-quotes .wp-block-quote cite {
	display: block;
	margin-top: 14px;
	font-style: normal;
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--steel);
}
.bm-quotes .bm-quote-big { background: var(--wp--preset--color--blue); color: #fff; }
.bm-quotes .bm-quote-big p {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 70%;
	font-weight: 850;
	text-transform: uppercase;
	font-size: 2.6rem;
	line-height: 1;
}
.bm-quotes .bm-quote-big p::before { color: #fff; }
.bm-quotes .bm-quote-big cite { color: #d6e0f5; }

/* ---------- authors ---------- */
.bm-author {
	background: #fff;
	border-radius: var(--wp--custom--radius);
	padding: 34px;
}
.bm-author__top { gap: 20px; flex-wrap: nowrap !important; }
.bm-author__top > * { margin: 0 !important; }
.bm-avatar img,
.bm-initials {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	border: 5px solid #fff;
	box-shadow: 0 0 0 4px var(--wp--preset--color--blue);
}
.bm-avatar { flex: none; }
.bm-initials {
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--blue);
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 70%;
	font-weight: 850;
	font-size: 2.4rem;
}
@media (max-width: 781px) { .bm-author { padding: 24px; } .bm-avatar img, .bm-initials { width: 84px; height: 84px; } }

/* ---------- shop (WooCommerce product grid) ---------- */
.bm-shop .woocommerce ul.products,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	border: 0;
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
	background: var(--wp--preset--color--mist);
	padding: 0 0 22px !important;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product a img {
	background: transparent;
	aspect-ratio: 1;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center;
	padding: 24px;
	box-sizing: border-box;
	margin: 0 0 16px !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 75%;
	font-weight: 850;
	text-transform: uppercase;
	font-size: 1.4rem !important;
	line-height: 1.05;
	padding: 0 22px !important;
	color: var(--wp--preset--color--ink);
}
.woocommerce ul.products li.product .price {
	padding: 0 22px;
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 75%;
	font-weight: 850;
	font-size: 1.8rem !important;
	color: var(--wp--preset--color--ink) !important;
}
.woocommerce ul.products li.product .button {
	margin: auto 22px 0 !important;
	text-align: center;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit {
	background: var(--wp--preset--color--red) !important;
	color: #fff !important;
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 750;
	font-size: 1.05rem;
	border-radius: 8px;
	padding: 15px 22px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: #a60c22 !important; }
.woocommerce .star-rating span::before { color: var(--wp--preset--color--red); }

/* ---------- distributors ---------- */
.bm-pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bm-pills li {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	border: 2px solid var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
	border-radius: 999px;
	padding: 8px 18px;
	margin: 0;
}
.bm-card { background: #fff; border-radius: var(--wp--custom--radius); padding: 32px; }
.bm-email {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 1.2rem;
	word-break: break-all;
}

/* dealers */
.bm-dealers { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; align-items: start; }
.bm-dealers > * { margin: 0 !important; }
.bm-dealer-card { background: #fff; border-radius: var(--wp--custom--radius); padding: 28px; }
.bm-dealer-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.bm-dealer { font-family: var(--wp--preset--font-family--ui); font-size: 1rem; line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--wp--preset--color--line); }
.bm-dealer strong { font-size: 1.08rem; }
.bm-dealer a { word-break: break-all; }
.bm-become { margin-top: var(--wp--preset--spacing--50) !important; background: #fff; border-radius: var(--wp--custom--radius); padding: 32px; gap: 40px !important; }
@media (max-width: 781px) { .bm-become { padding: 22px; } .bm-become .wp-block-image { max-width: 260px; margin-inline: auto; } }

/* ---------- footer ---------- */
.bm-footer {
	background: var(--wp--preset--color--ink);
	color: #c9d0de;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	padding-top: 64px;
	padding-bottom: 40px;
}
.bm-footer h4 { color: #fff; font-size: 1.3rem; margin: 0 0 12px; }
.bm-footer a { color: #fff; }
.bm-footer ul { list-style: none; margin: 0; padding: 0; }
.bm-footer li { margin: 0 0 8px; }
.bm-footer__brand { gap: 16px; flex-wrap: nowrap !important; }
.bm-footer__brand > * { margin: 0 !important; }
.bm-footer__brand img { width: 84px; height: 84px; background: #fff; border-radius: 50%; }
.bm-footer__legal {
	margin-top: 48px !important;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
	color: #8f99ad;
}

/* ---------- ordinary pages ---------- */
.bm-page-head { background: var(--wp--preset--color--mist); padding-top: 56px; padding-bottom: 48px; }
.bm-page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.bm-post-list .wp-block-post { padding-block: 28px; border-bottom: 1px solid var(--wp--preset--color--line); }
.bm-post-list h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.bm-page-body { padding-top: 48px; padding-bottom: 88px; }

/* No customer accounts on this site: hide the account icon if WooCommerce adds it anyway. */
.bm-header .wp-block-woocommerce-customer-account { display: none !important; }

/* Cart drawer, cart and checkout: product names as clean labels, not old-style links. */
a.wc-block-components-product-name,
.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
a.wc-block-components-product-name:hover,
a.wc-block-components-product-name:focus-visible {
	color: var(--wp--preset--color--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--wp--preset--color--steel);
}
.wc-block-mini-cart__drawer .wc-block-components-product-price,
.wc-block-cart-items .wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 600;
}

/* Review stars in the product grid: left-aligned with the title and price. */
.woocommerce ul.products li.product .star-rating {
	float: none;
	display: block;
	margin: 4px 22px 12px !important;
}

/* Shop split into Books and Merch: small label with roundel dot and a hairline. */
h3.bm-shop-sub {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--ui);
	font-stretch: 100%;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	margin-top: var(--wp--preset--spacing--50) !important;
	margin-bottom: 20px !important;
	padding: 0;
	border: 0;
}
h3.bm-shop-sub::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex: none;
	background: radial-gradient(circle, var(--wp--preset--color--red) 0 30%, #fff 31% 62%, var(--wp--preset--color--blue) 63%);
}
h3.bm-shop-sub::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wp--preset--color--line);
}
.bm-section-head + h3.bm-shop-sub { margin-top: 0 !important; }
/* Safari can count the clearfix pseudo-elements as grid cells: remove them entirely. */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products > li.product { grid-column: auto !important; grid-row: auto !important; clear: none !important; }

/* Footer legal line: links readable on dark background. */
.bm-footer__legal a { color: #c9d0de; text-decoration: underline; text-underline-offset: 3px; }
.bm-footer__legal a:hover { color: #fff; }

/* Cart and checkout in the site's style. */
.woocommerce form .form-row label,
.woocommerce-checkout h3,
.woocommerce table.shop_table,
.woocommerce-checkout #payment,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
	font-family: var(--wp--preset--font-family--ui);
}
.woocommerce-checkout h3 { font-family: var(--wp--preset--font-family--display); font-size: 1.7rem; margin-bottom: 18px; }
.woocommerce form .form-row label { font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 1rem;
	padding: 12px 14px;
	min-height: 50px;
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--ink);
	box-sizing: border-box;
}
.woocommerce .select2-container .select2-selection--single { display: flex; align-items: center; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; right: 10px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var(--wp--preset--color--blue);
	outline: 3px solid rgba(36, 80, 156, 0.18);
	outline-offset: 0;
}
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
	border-top-color: var(--wp--preset--color--blue);
	background: var(--wp--preset--color--mist);
	border-radius: 0 0 10px 10px;
}
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before { color: var(--wp--preset--color--blue); }
.woocommerce table.shop_table {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	border-collapse: separate;
	overflow: hidden;
}
.woocommerce table.shop_table th { font-weight: 700; }
.woocommerce table.shop_table .order-total .amount,
.woocommerce table.shop_table .cart-subtotal .amount { font-weight: 800; }
.woocommerce-checkout #payment {
	background: var(--wp--preset--color--mist);
	border-radius: 14px;
}
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--wp--preset--color--ink); border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
	width: 100%;
	min-height: 58px;
	font-size: 1.15rem;
	float: none;
}
.woocommerce-terms-and-conditions-wrapper { font-family: var(--wp--preset--font-family--ui); font-size: 0.98rem; }
@media (max-width: 781px) {
	.woocommerce-checkout .col2-set .col-1,
	.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
}