/* Homepage newsletter shelf and native subscription form. */

.bb-site .bb-newsletter-shelf {
	position: relative;
	z-index: 2;
	display: grid;
	width: min(69rem, calc(100% - clamp(2rem, 6vw, 5rem)));
	grid-template-columns: minmax(0, 1.03fr) minmax(20rem, 0.97fr);
	align-items: stretch;
	gap: 0;
	margin: clamp(-4.25rem, -6vw, -3.25rem) auto 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid rgb(25 61 59 / 14%);
	border-radius: 2.25rem 2.25rem 0.85rem 2.25rem;
	background: var(--bb-white) !important;
	box-shadow: 0 1.75rem 4.5rem rgb(25 61 59 / 17%);
}

.bb-site .bb-newsletter-shelf__content {
	display: grid;
	align-content: center;
	gap: clamp(1.35rem, 2.2vw, 1.9rem);
	padding: clamp(2rem, 4.25vw, 4rem);
	background:
		radial-gradient(circle at 0 100%, rgb(223 233 222 / 54%), transparent 16rem),
		var(--bb-white);
}

.bb-site .bb-newsletter-shelf__media {
	position: relative;
	min-height: 31rem;
	margin: 0;
	overflow: hidden;
}

.bb-site .bb-newsletter-shelf__media picture,
.bb-site .bb-newsletter-shelf__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.bb-site .bb-newsletter-shelf__media img {
	object-fit: cover;
	object-position: center;
}

.bb-site .bb-newsletter-shelf h3 {
	max-width: 17ch;
	margin-bottom: 0.4em;
	font-size: clamp(2.15rem, 3.5vw, 3.5rem);
	line-height: 0.96;
}

.bb-site .bb-newsletter-shelf__copy > p:last-child {
	max-width: 50ch;
	margin-bottom: 0;
}

.bb-site .bb-newsletter-shelf__action .wp-block-buttons {
	justify-content: flex-start;
}

.bb-site .bb-newsletter-shelf__action .has-small-font-size {
	margin-top: 0.85rem;
	margin-bottom: 0;
	color: var(--bb-muted);
	line-height: 1.45;
}

.bb-site .bb-newsletter-shelf__action a:not(.wp-block-button__link) {
	color: var(--bb-ink);
}

.bb-site .bb-newsletter-form {
	position: relative;
	display: grid;
	gap: 0.8rem;
}

.bb-site .bb-newsletter-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 4rem;
	gap: 0;
	border: 1px solid rgb(25 61 59 / 20%);
	border-radius: 0.15rem;
	background: var(--bb-white);
}

.bb-site .bb-newsletter-form__row input[type="email"] {
	width: 100%;
	min-width: 0;
	min-height: 4rem;
	padding: 0.8rem 1.15rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bb-ink);
	font: inherit;
}

.bb-site .bb-newsletter-form__row input[type="email"]:focus-visible {
	outline: 3px solid rgb(38 106 101 / 20%);
	outline-offset: -3px;
}

.bb-site .bb-newsletter-form__row .wp-element-button {
	width: 4rem;
	min-width: 4rem;
	min-height: 4rem;
	padding: 0;
	border-radius: 0;
	font-size: 0;
	white-space: nowrap;
}

.bb-site .bb-newsletter-form__row .wp-element-button::after {
	content: "→";
	font-size: 1.75rem;
	font-weight: 700;
}

.bb-site .bb-newsletter-form__row .wp-element-button:disabled {
	cursor: not-allowed;
	opacity: 0.58;
}

.bb-site .bb-newsletter-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	color: var(--bb-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.bb-site .bb-newsletter-form__consent input {
	width: 1rem;
	height: 1rem;
	flex: 0 0 1rem;
	margin-top: 0.2rem;
	accent-color: var(--bb-petrol);
}

.bb-site .bb-newsletter-form__consent a {
	font-weight: 650;
	text-underline-offset: 0.16em;
}

.bb-site .bb-newsletter-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.bb-site .bb-newsletter-form__status {
	margin-bottom: 0.8rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.8rem;
	background: rgb(255 255 255 / 72%);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.bb-site .bb-newsletter-form__status p {
	margin: 0;
}

.bb-site .bb-newsletter-form__status--error {
	border: 1px solid rgb(142 42 42 / 30%);
	color: #712323;
}

