.bcmc-root[hidden] {
	display: none !important;
}

html.bcmc-open,
html.bcmc-open body {
	overflow: hidden;
}

.bcmc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
}

.bcmc-modal,
.bcmc-modal *,
.bcmc-inline,
.bcmc-inline * {
	box-sizing: border-box;
}

.bcmc-modal {
	--bcmc-close-color: #1a1a1a;
	--bcmc-image-focal: center center;
	position: fixed;
	z-index: 100001;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(480px, 92vw);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	outline: none;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bcmc-modal.is-open {
	opacity: 1;
}

.bcmc-modal.no-motion {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.bcmc-modal {
		transition: none;
	}
}

.bcmc-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bcmc-close-color);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

.bcmc-close:focus-visible,
.bcmc-submit:focus-visible,
.bcmc-field input:focus-visible,
.bcmc-consent input:focus-visible {
	outline: 2px solid #2f5d32;
	outline-offset: 2px;
}

.bcmc-modal__inner {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.bcmc-modal__media {
	width: 100%;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
	overflow: hidden;
	line-height: 0;
	background: #ececec;
}

.bcmc-modal__media img {
	display: block;
	width: 100%;
	height: 168px;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: var(--bcmc-image-focal);
}

.bcmc-modal__content {
	padding: 1rem 1.25rem 1.25rem;
	flex: 1 1 auto;
}

.bcmc-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.72rem;
	margin: 0 0 0.35rem;
	color: #4a4a4a;
}

.bcmc-heading {
	margin: 0 0 0.5rem;
	padding-top: 5px;
	font-size: 1.35rem;
	line-height: 1.2;
}

.bcmc-body {
	margin: 0 0 0.75rem;
	line-height: 1.4;
	font-size: 0.95rem;
	max-height: none;
	overflow: visible;
}

.bcmc-body p,
.bcmc-body ul,
.bcmc-body ol {
	margin: 0 0 0.5rem;
}

.bcmc-body p:last-child,
.bcmc-body ul:last-child,
.bcmc-body ol:last-child {
	margin-bottom: 0;
}

.bcmc-modal .bcmc-body ul,
.bcmc-modal .bcmc-body ol,
.bcmc-inline .bcmc-body ul,
.bcmc-inline .bcmc-body ol {
	padding-left: 1.25rem !important;
	margin: 0 0 0.5rem !important;
	list-style-position: outside !important;
}

.bcmc-modal .bcmc-body ul,
.bcmc-inline .bcmc-body ul {
	list-style-type: disc !important;
}

.bcmc-modal .bcmc-body ol,
.bcmc-inline .bcmc-body ol {
	list-style-type: decimal !important;
}

.bcmc-modal .bcmc-body li,
.bcmc-inline .bcmc-body li {
	display: list-item !important;
	margin: 0 0 0.2rem !important;
	padding: 0 !important;
	line-height: 1.35;
	list-style: inherit !important;
}

.bcmc-modal .bcmc-body li:last-child,
.bcmc-inline .bcmc-body li:last-child {
	margin-bottom: 0 !important;
}

.bcmc-form-intro,
.bcmc-success-message {
	margin: 0 0 0.75rem;
	line-height: 1.4;
	font-size: 0.9rem;
}

.bcmc-form-intro p,
.bcmc-success-message p {
	margin: 0 0 0.5rem;
}

.bcmc-form-intro p:last-child,
.bcmc-success-message p:last-child {
	margin-bottom: 0;
}

.bcmc-form {
	width: 100%;
}

.bcmc-field {
	display: block;
	width: 100%;
	margin: 0 0 0.65rem;
}

.bcmc-field span {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
}

.bcmc-field--no-label > span:not(.bcmc-sr-only) {
	display: none;
}

.bcmc-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bcmc-field input[type="email"],
.bcmc-field input[type="text"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	font: inherit;
}

.bcmc-privacy-note {
	width: 100%;
	margin: 0.35rem 0 0.65rem;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #555;
}

.bcmc-privacy-note p {
	margin: 0;
	display: inline;
}

.bcmc-privacy-note a {
	color: inherit;
	text-decoration: underline;
}

.bcmc-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	width: 100%;
	margin: 0.5rem 0 0.75rem;
	font-size: 0.78rem;
	line-height: 1.3;
	color: #444;
}

.bcmc-consent input {
	margin-top: 0.1rem;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
}

.bcmc-consent__text {
	flex: 1 1 auto;
	min-width: 0;
}

.bcmc-modal .bcmc-consent__text p,
.bcmc-inline .bcmc-consent__text p {
	margin: 0;
	line-height: 1.3;
	display: inline;
}

.bcmc-consent__privacy {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.bcmc-hp {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
}

.bcmc-actions {
	display: block;
	width: 100%;
}

.bcmc-submit {
	appearance: none;
	display: block;
	width: 100%;
	border: 0;
	background: #2f5d32;
	color: #fff;
	padding: 0.9rem 1rem;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-height: 48px;
	text-align: center;
}

.bcmc-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.bcmc-error {
	display: block;
	margin: 0.75rem 0 0;
	padding: 0.55rem 0.75rem;
	border-radius: 4px;
	background: #fde8e8;
	border: 1px solid #e5a0a0;
	color: #b00000;
	font-size: 0.9rem;
	line-height: 1.35;
}

.bcmc-error[hidden] {
	display: none !important;
}

.bcmc-links {
	font-size: 0.8rem;
	margin: 0 0 0.75rem;
}

.bcmc-links a {
	color: inherit;
}

/* Side-by-side layouts (desktop) — wider than stacked templates */
.bcmc-modal.layout-image_left,
.bcmc-modal.layout-image_right {
	width: min(720px, 94vw);
}

.layout-image_left .bcmc-modal__inner,
.layout-image_right .bcmc-modal__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	overflow: hidden;
	min-height: 0;
}

.layout-image_left .bcmc-modal__media,
.layout-image_right .bcmc-modal__media,
.layout-image_left .bcmc-modal__content,
.layout-image_right .bcmc-modal__content {
	min-width: 0;
}

.layout-image_left .bcmc-modal__media,
.layout-image_right .bcmc-modal__media {
	height: 100%;
	min-height: 320px;
}

.layout-image_left .bcmc-modal__media img,
.layout-image_right .bcmc-modal__media img {
	height: 100%;
	min-height: 320px;
}

.layout-image_left .bcmc-modal__content,
.layout-image_right .bcmc-modal__content {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.layout-image_right .bcmc-modal__media {
	order: 2;
}

/* Centred card — roomier default modal */
.bcmc-modal.layout-centred_card {
	width: min(520px, 94vw);
}

.bcmc-modal.layout-centred_card .bcmc-modal__media img {
	height: 200px;
}

.bcmc-modal.layout-centred_card .bcmc-modal__content {
	padding: 1.35rem 1.4rem 1.5rem;
}

/* Image header — taller full-width banner above content */
.bcmc-modal.layout-image_header .bcmc-modal__media {
	margin: 0;
}

.bcmc-modal.layout-image_header .bcmc-modal__media img {
	height: 220px;
	border-radius: 0;
}

.bcmc-modal.layout-image_header .bcmc-modal__content {
	padding-top: 1.1rem;
}

.layout-text_only .bcmc-modal__media,
.bcmc-modal.layout-text_only .bcmc-modal__media {
	display: none;
}

/* Compact signup — tighter card (scoped to modal so inline mounts stay full width) */
.bcmc-modal.layout-compact_signup {
	width: min(440px, 92vw);
}

.bcmc-modal.layout-compact_signup .bcmc-modal__media img {
	height: 140px;
}

.bcmc-modal.layout-compact_signup .bcmc-modal__content {
	padding: 1rem 1.1rem 1.15rem;
}

.bcmc-modal.layout-compact_signup .bcmc-heading {
	font-size: 1.35rem;
}

@media (max-width: 767px) {
	.bcmc-modal.device-mobile,
	.bcmc-modal {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		transform: translate(-50%, -50%);
		width: calc(100% - 30px);
		max-width: calc(100% - 30px);
		max-height: calc(100vh - 30px);
		max-height: calc(100dvh - 30px);
		border-radius: 12px;
	}

	.bcmc-modal.is-open {
		transform: translate(-50%, -50%);
	}

	.layout-image_left .bcmc-modal__inner,
	.layout-image_right .bcmc-modal__inner {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
		overflow: auto;
	}

	.layout-image_left .bcmc-modal__media,
	.layout-image_right .bcmc-modal__media,
	.layout-image_left .bcmc-modal__media img,
	.layout-image_right .bcmc-modal__media img {
		width: 100%;
		height: 150px;
		min-height: 0;
	}

	.layout-image_right .bcmc-modal__media {
		order: 0;
	}

	.bcmc-actions.is-sticky-mobile {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding-top: 0.5rem;
		margin-top: 0.25rem;
	}
}

.bcmc-coupon {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid #e5e5e5;
}

.bcmc-coupon-label {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
}

.bcmc-coupon-code {
	margin: 0 0 0.85rem;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	word-break: break-all;
}

.bcmc-coupon-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
}

.bcmc-copy {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.55rem 1rem;
	border-radius: 6px;
	font-weight: 600;
	box-sizing: border-box;
	appearance: none;
	border: 1px solid #2f5d32;
	background: #fff;
	color: #2f5d32;
	cursor: pointer;
	font: inherit;
}

/* Theme button classes (Impreza) — avoid fighting site styles */
.bcmc-shop.w-btn {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	justify-content: center;
}

.bcmc-shop:not(.w-btn) {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	font-weight: 600;
	box-sizing: border-box;
	background: #2f5d32;
	color: #fff !important;
	text-decoration: none;
}

/* Inline / embedded forms (shortcode) */
.bcmc-inline-mount {
	width: 100%;
	margin: 2rem 0;
}

@media (max-width: 767px) {
	.bcmc-inline-mount {
		margin: 0;
	}
}

.bcmc-inline {
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 1.5rem;
}

.bcmc-inline__inner {
	display: grid;
	gap: 1rem;
}

.bcmc-inline .bcmc-modal__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	object-position: var(--bcmc-image-focal, center center);
	border-radius: 8px;
}

.bcmc-inline .bcmc-body {
	max-height: none;
}

.bcmc-inline.layout-image_left .bcmc-inline__inner,
.bcmc-inline.layout-image_right .bcmc-inline__inner {
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.bcmc-inline.layout-image_right .bcmc-modal__media {
	order: 2;
}

.bcmc-inline.layout-text_only .bcmc-modal__media {
	display: none;
}

/* Plain page form — no modal card chrome */
.bcmc-inline.layout-standard_form,
.bcmc-inline.bcmc-inline--simple {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

/* Beat theme input width rules (Impreza etc.) */
.bcmc-form.bcmc-form--inline,
.bcmc-form.bcmc-form--inline .bcmc-fields,
.bcmc-form.bcmc-form--inline .bcmc-field,
.bcmc-form.bcmc-form--inline .bcmc-actions,
.bcmc-form.bcmc-form--inline .bcmc-submit {
	box-sizing: border-box !important;
}

.bcmc-form.bcmc-form--inline {
	width: 100% !important;
	max-width: 100% !important;
}

.bcmc-form.bcmc-form--inline .bcmc-fields {
	display: flex;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 0.75rem;
	gap: 0.75rem;
}

.bcmc-form.bcmc-form--inline .bcmc-field {
	display: block !important;
	margin: 0 !important;
	min-width: 0;
}

.bcmc-form.bcmc-form--inline .bcmc-field input[type="text"],
.bcmc-form.bcmc-form--inline .bcmc-field input[type="email"],
.bcmc-form.bcmc-form--inline .bcmc-field input {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.bcmc-form.bcmc-form--inline .bcmc-actions {
	margin: 0;
	padding: 0;
}

.bcmc-form.bcmc-form--inline .bcmc-submit {
	width: 100% !important;
	max-width: 100% !important;
}

/* Stacked: every block full width */
.bcmc-form.bcmc-form--inline.bcmc-form--fields-stacked .bcmc-fields {
	flex-direction: column;
	align-items: stretch;
}

.bcmc-form.bcmc-form--inline.bcmc-form--fields-stacked .bcmc-field,
.bcmc-form.bcmc-form--inline.bcmc-form--fields-stacked .bcmc-actions {
	width: 100% !important;
	flex: 0 0 auto;
}

/* One line: equal-width name + email, submit beside them */
.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-fields {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
}

.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-field {
	flex: 1 1 0;
	width: auto !important;
}

.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-actions {
	flex: 0 0 auto;
	width: auto !important;
	align-self: flex-end;
}

.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-submit {
	width: auto !important;
	min-width: 8.5rem;
	white-space: nowrap;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.bcmc-inline--simple .bcmc-success {
	margin: 0;
	padding: 0.75rem 0;
	color: #149771;
}

.bcmc-inline--simple .bcmc-success-message,
.bcmc-inline--simple .bcmc-success-message p {
	margin: 0;
	color: #149771;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 600;
}

.bcmc-form--inline .bcmc-error {
	width: 100%;
	margin: 0.75rem 0 0;
}

@media (max-width: 640px) {
	.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-fields {
		flex-direction: column;
		align-items: stretch;
	}

	.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-field,
	.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-actions,
	.bcmc-form.bcmc-form--inline.bcmc-form--fields-inline .bcmc-submit {
		width: 100% !important;
	}
}

.bcmc-modal.layout-standard_form .bcmc-modal__media {
	display: none;
}

@media (max-width: 767px) {
	.bcmc-inline.layout-image_left .bcmc-inline__inner,
	.bcmc-inline.layout-image_right .bcmc-inline__inner {
		grid-template-columns: 1fr;
	}
}
