/*
 * BM Help Center. Layout and sizes follow the Stylishades help page; colours, fonts and the
 * maximum width come from the Customizer as custom properties on .bmhc.
 *
 * Rules use ".bmhc .bmhc__x" (two classes) so they win over typical theme element styles
 * (button, input, h2...).
 */

.bmhc {
	--bmhc-navy: #2a3a5c;
	--bmhc-accent: #f2a900;
	--bmhc-cream: #f4efe1;
	--bmhc-bg: #fafaf7;
	--bmhc-surface: #fff;
	--bmhc-ink: #1c2b3a;
	--bmhc-text: #5a6472;
	--bmhc-muted: #8e9aa3;
	--bmhc-border: #e5e0d8;
	--bmhc-success: #5b8c5a;
	--bmhc-error: #b3261e;
	--bmhc-font-heading: "Cormorant Garamond", Georgia, serif;
	--bmhc-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bmhc-max-width: 1160px;
	--bmhc-sticky-top: 32px;

	background: var(--bmhc-bg);
	color: var(--bmhc-ink);
	font-family: var(--bmhc-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bmhc *,
.bmhc *::before,
.bmhc *::after {
	box-sizing: border-box;
}

/*
 * Full width: break out of the theme's content column to the viewport edges. 100vw includes
 * the vertical scrollbar, so help-center.js sets --bmhc-scrollbar to its width to avoid a
 * horizontal scrollbar. !important beats the block layout's "margin: auto !important" on
 * content children; "alignfull" in the markup opts out of that rule in block themes too.
 */
.bmhc.bmhc--full {
	width: calc(100vw - var(--bmhc-scrollbar, 0px)) !important;
	max-width: none !important;
	margin-right: calc(50% - 50vw + var(--bmhc-scrollbar, 0px) / 2) !important;
	margin-left: calc(50% - 50vw + var(--bmhc-scrollbar, 0px) / 2) !important;
}

/* Reset the theme styles this block's elements would otherwise inherit. */
.bmhc h1,
.bmhc h2,
.bmhc h3,
.bmhc p,
.bmhc ol,
.bmhc ul {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}

.bmhc button,
.bmhc input,
.bmhc textarea {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

.bmhc .bmhc__inner {
	max-width: var(--bmhc-max-width);
	margin: 0 auto;
	padding: 48px 40px 72px;
}

/* Heading */
.bmhc .bmhc__head {
	margin-bottom: 32px;
}

.bmhc .bmhc__eyebrow {
	margin: 0 0 10px;
	color: var(--bmhc-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.bmhc .bmhc__title {
	margin: 0 0 6px;
	color: var(--bmhc-navy);
	font-family: var(--bmhc-font-heading);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 400;
	line-height: 1.15;
}

.bmhc .bmhc__sub {
	color: var(--bmhc-text);
	font-size: 15px;
	line-height: 1.5;
}

/* Two columns: tabs | content */
.bmhc .bmhc__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.bmhc .bmhc__aside {
	position: sticky;
	top: var(--bmhc-sticky-top);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bmhc .bmhc__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bmhc .bmhc__nav-item {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 11px 16px;
	border: 0;
	border-left: 2px solid transparent;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--bmhc-text);
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.bmhc .bmhc__nav-item:hover {
	background: none;
	color: var(--bmhc-navy);
}

.bmhc .bmhc__nav-item.is-active {
	border-left-color: var(--bmhc-accent);
	background: var(--bmhc-surface);
	color: var(--bmhc-navy);
	font-weight: 600;
}

.bmhc .bmhc__nav-item:focus-visible,
.bmhc .bmhc__cta-btn:focus-visible,
.bmhc .bmhc__acc-q:focus-visible,
.bmhc .bmhc__btn:focus-visible,
.bmhc .bmhc__link:focus-visible,
.bmhc .bmhc__sheet:focus-visible,
.bmhc .bmhc__contact-card:focus-visible {
	outline: 2px solid var(--bmhc-accent);
	outline-offset: 2px;
}

.bmhc .bmhc__cta {
	margin-top: 16px;
	padding: 16px;
	border-radius: 8px;
	background: var(--bmhc-cream);
}

.bmhc .bmhc__cta-text {
	margin: 0 0 8px;
	color: var(--bmhc-navy);
	font-size: 13px;
	font-weight: 600;
}

.bmhc .bmhc__cta-btn {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: var(--bmhc-navy);
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: normal;
	text-align: center;
	cursor: pointer;
}

.bmhc .bmhc__cta-btn:hover {
	background: var(--bmhc-navy);
	color: #fff;
	opacity: 0.92;
}

/* Content panel */
.bmhc .bmhc__content {
	padding: 32px 36px;
	border: 1px solid var(--bmhc-border);
	border-radius: 10px;
	background: var(--bmhc-surface);
}

.bmhc .bmhc__panel[hidden] {
	display: none;
}

.bmhc .bmhc__block-title {
	margin: 0 0 16px;
	color: var(--bmhc-navy);
	font-family: var(--bmhc-font-heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
}

.bmhc .bmhc__lead {
	margin: 0 0 20px;
	color: var(--bmhc-text);
	font-size: 14px;
	line-height: 1.65;
}

.bmhc .bmhc__lead strong {
	color: inherit;
	font-weight: 700;
}

.bmhc .bmhc__link {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bmhc-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.bmhc .bmhc__link:hover {
	color: var(--bmhc-navy);
	text-decoration-thickness: 2px;
}

/* FAQ accordion */
.bmhc .bmhc__accordion {
	display: flex;
	flex-direction: column;
}

.bmhc .bmhc__acc-item {
	border-bottom: 1px solid var(--bmhc-border);
}

.bmhc .bmhc__acc-heading {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.bmhc .bmhc__acc-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--bmhc-navy);
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
	text-align: left;
	cursor: pointer;
}

.bmhc .bmhc__acc-q:hover {
	background: none;
	color: var(--bmhc-navy);
}

.bmhc .bmhc__acc-icon {
	flex-shrink: 0;
	color: var(--bmhc-accent);
	font-size: 20px;
	line-height: 1;
	transition: transform 0.2s;
}

.bmhc .bmhc__acc-q[aria-expanded="true"] .bmhc__acc-icon {
	transform: rotate(45deg);
}

.bmhc .bmhc__acc-a {
	padding: 0 0 18px;
}

.bmhc .bmhc__acc-a p {
	margin: 0 0 8px;
	color: var(--bmhc-text);
	font-size: 14px;
	line-height: 1.7;
}

/* Forms */
.bmhc .bmhc__track-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 380px;
}

/* The form is hidden while a tracking result shows; display: flex above would override [hidden]. */
.bmhc .bmhc__track-form[hidden] {
	display: none;
}

.bmhc .bmhc__input {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--bmhc-border);
	border-radius: 0;
	background: var(--bmhc-bg);
	box-shadow: none;
	color: var(--bmhc-ink);
	font-size: 14px;
	line-height: 1.4;
}

.bmhc .bmhc__input::placeholder {
	color: var(--bmhc-muted);
	opacity: 1;
}

.bmhc .bmhc__input:focus {
	border-color: var(--bmhc-border);
	outline: 2px solid var(--bmhc-accent);
	outline-offset: 1px;
}

.bmhc textarea.bmhc__input {
	min-height: 110px;
	resize: vertical;
}

.bmhc .bmhc__btn {
	min-height: 0;
	margin: 0;
	padding: 13px 20px;
	border: 0;
	border-radius: 0;
	background: var(--bmhc-accent);
	box-shadow: none;
	color: var(--bmhc-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: normal;
	text-align: center;
	cursor: pointer;
}

.bmhc .bmhc__btn:hover {
	background: var(--bmhc-accent);
	color: var(--bmhc-navy);
	filter: brightness(0.96);
}

.bmhc .bmhc__btn[disabled] {
	cursor: progress;
	opacity: 0.6;
}

.bmhc .bmhc__form-status {
	color: var(--bmhc-text);
	font-size: 13px;
	line-height: 1.5;
}

.bmhc .bmhc__form-status:empty {
	display: none;
}

.bmhc .bmhc__form-status.is-error {
	color: var(--bmhc-error);
}

.bmhc .bmhc__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bmhc .bmhc__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Order tracker */
.bmhc .bmhc__login-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid var(--bmhc-border);
	border-radius: 8px;
	background: var(--bmhc-bg);
}

.bmhc .bmhc__login-text {
	color: var(--bmhc-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.bmhc a.bmhc__btn {
	display: inline-block;
	text-decoration: none;
}

.bmhc .bmhc__btn--dark,
.bmhc .bmhc__btn--dark:hover,
.bmhc .bmhc__btn--dark:focus {
	background: var(--bmhc-navy);
	color: #fff;
}

.bmhc .bmhc__admin-note {
	margin: -8px 0 20px;
	color: var(--bmhc-muted);
	font-size: 12px;
	font-style: italic;
}

.bmhc .bmhc__tracker:focus {
	outline: none;
}

.bmhc .bmhc__track-order {
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bmhc-border);
	color: var(--bmhc-navy);
	font-size: 14px;
}

.bmhc .bmhc__track-status {
	display: block;
	margin-top: 4px;
	color: var(--bmhc-text);
	font-size: 13px;
}

.bmhc .bmhc__track-due {
	color: var(--bmhc-navy);
	font-weight: 600;
}

.bmhc .bmhc__steps {
	display: flex;
	flex-direction: column;
	list-style: none;
}

.bmhc .bmhc__step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 20px;
}

.bmhc .bmhc__step-dot {
	z-index: 1;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bmhc-border);
	color: #fff;
	font-size: 12px;
}

.bmhc .bmhc__step.is-done .bmhc__step-dot {
	background: var(--bmhc-success);
}

.bmhc .bmhc__step.is-current .bmhc__step-dot {
	background: var(--bmhc-accent);
}

.bmhc .bmhc__step-t {
	margin: 0;
	color: var(--bmhc-navy);
	font-size: 14px;
	font-weight: 600;
}

.bmhc .bmhc__step-d {
	margin: 2px 0 0;
	color: var(--bmhc-muted);
	font-size: 12px;
}

.bmhc .bmhc__track-note {
	margin-top: 12px;
	color: var(--bmhc-muted);
	font-size: 12px;
	font-style: italic;
}

.bmhc .bmhc__track-again {
	margin-top: 16px;
}

/* Installation guide */
.bmhc .bmhc__install-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	list-style: none;
}

.bmhc .bmhc__install-step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
}

.bmhc .bmhc__install-num {
	flex-shrink: 0;
	width: 36px;
	color: var(--bmhc-accent);
	font-family: var(--bmhc-font-heading);
	font-size: 26px;
	font-style: italic;
	line-height: 1.1;
}

.bmhc .bmhc__install-t {
	margin: 0 0 4px;
	color: var(--bmhc-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.bmhc .bmhc__install-d {
	color: var(--bmhc-text);
	font-size: 14px;
	line-height: 1.6;
}

.bmhc .bmhc__install-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--bmhc-border);
	color: var(--bmhc-text);
	font-size: 14px;
}

.bmhc .bmhc__sheets {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--bmhc-border);
}

.bmhc .bmhc__sheets-title,
.bmhc .bmhc__card-t,
.bmhc .bmhc__form-title {
	color: var(--bmhc-navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.bmhc .bmhc__sheets-title {
	margin: 0 0 6px;
}

.bmhc .bmhc__sheets-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 12px;
}

.bmhc .bmhc__sheet {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bmhc-border);
	border-radius: 6px;
	background: var(--bmhc-bg);
	color: inherit;
	text-align: left;
	text-decoration: none;
}

.bmhc a.bmhc__sheet:hover {
	border-color: var(--bmhc-muted);
	color: inherit;
}

.bmhc .bmhc__sheet-icon {
	flex-shrink: 0;
	font-size: 16px;
}

.bmhc .bmhc__sheet-name {
	flex: 1;
	color: var(--bmhc-navy);
	font-size: 14px;
	font-weight: 500;
}

.bmhc .bmhc__sheet-get {
	color: var(--bmhc-muted);
	font-size: 12px;
	font-weight: 600;
}

/* Returns & warranty */
.bmhc .bmhc__cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bmhc .bmhc__card {
	padding: 20px 22px;
	border: 1px solid var(--bmhc-border);
	border-radius: 8px;
	background: var(--bmhc-bg);
}

.bmhc .bmhc__card-t {
	margin: 0 0 8px;
}

.bmhc .bmhc__card-d {
	margin: 0 0 8px;
	color: var(--bmhc-text);
	font-size: 14px;
	line-height: 1.65;
}

/* Contact */
.bmhc .bmhc__contact-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.bmhc .bmhc__contact-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

.bmhc .bmhc__contact-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bmhc .bmhc__contact-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--bmhc-border);
	border-radius: 8px;
	background: var(--bmhc-bg);
	color: inherit;
	text-decoration: none;
}

.bmhc a.bmhc__contact-card:hover {
	border-color: var(--bmhc-muted);
	color: inherit;
}

.bmhc .bmhc__contact-icon {
	font-size: 24px;
	line-height: 1;
}

.bmhc .bmhc__contact-body {
	min-width: 0;
}

.bmhc .bmhc__contact-t {
	display: block;
	color: var(--bmhc-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.bmhc .bmhc__contact-d {
	display: block;
	margin-top: 2px;
	color: var(--bmhc-muted);
	font-size: 13px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.bmhc .bmhc__contact-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bmhc .bmhc__form-title {
	margin: 0 0 4px;
}

.bmhc .bmhc__sent {
	padding: 20px 0;
	color: var(--bmhc-success);
	text-align: center;
}

.bmhc .bmhc__sent[hidden] {
	display: none;
}

.bmhc .bmhc__sent:focus {
	outline: none;
}

.bmhc .bmhc__sent-icon {
	display: block;
	font-size: 40px;
	line-height: 1.2;
}

.bmhc .bmhc__sent .bmhc__lead {
	margin-top: 4px;
}

@media (max-width: 960px) {
	.bmhc .bmhc__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.bmhc .bmhc__aside {
		position: static;
	}

	.bmhc .bmhc__nav {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.bmhc .bmhc__nav-item {
		width: auto;
	}

	.bmhc .bmhc__contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.bmhc .bmhc__inner {
		padding: 32px 16px 48px;
	}

	.bmhc .bmhc__content {
		padding: 24px 20px;
	}

	.bmhc .bmhc__block-title {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bmhc .bmhc__acc-icon {
		transition: none;
	}
}
