.st-newsletter-form {
	box-sizing: border-box;
	max-width: 560px;
	padding: 28px;
	border: 1px solid rgba(240, 199, 117, 0.35);
	border-radius: 20px;
	background: rgba(48, 27, 15, 0.84);
	box-shadow: 0 18px 50px rgba(25, 12, 4, 0.2);
	color: #fff;
	font-family: inherit;
}

body.st-newsletter-spotify-disabled .spotify_widget_st {
	display: none !important;
}

.st-newsletter-form__heading {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

.st-newsletter-form__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	color: #f4d389;
}

.st-newsletter-form__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.st-newsletter-form h2 {
	margin: 0 0 6px;
	color: inherit;
	font-size: clamp(1.35rem, 2.5vw, 1.8rem);
	line-height: 1.15;
}

.st-newsletter-form p {
	margin: 0;
}

.st-newsletter-form__heading p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
	line-height: 1.4;
}

.st-newsletter-form__fields {
	display: flex;
	margin-top: 24px;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.st-newsletter-form__fields input {
	min-width: 0;
	flex: 1 1 auto;
	padding: 14px 18px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #2e241d;
	font: inherit;
}

.st-newsletter-form__fields input::placeholder {
	color: #8c8b89;
}

.st-newsletter-form__fields button {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 12px;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 0;
	background: #edbf68;
	color: #2e241d;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	transition: background-color 160ms ease, transform 160ms ease;
}

.st-newsletter-form__fields button:hover,
.st-newsletter-form__fields button:focus-visible {
	background: #f6d78f;
}

.st-newsletter-form__fields button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.st-newsletter-form__consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.78rem;
	line-height: 1.4;
}

.st-newsletter-form__consent input {
	flex: 0 0 auto;
	margin-top: 2px;
	accent-color: #edbf68;
}

.st-newsletter-form__message {
	min-height: 1.35em;
	margin-top: 12px !important;
	font-size: 0.85rem;
}

.st-newsletter-form__message.is-success {
	color: #d6f3c5;
}

.st-newsletter-form__message.is-error {
	color: #ffd3c7;
}

.st-newsletter-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	top: auto !important;
	overflow: hidden !important;
}

.st-newsletter-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(29, 16, 8, 0.68);
	backdrop-filter: blur(7px) saturate(105%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), visibility 360ms ease;
}

.st-newsletter-popup[hidden] {
	display: none !important;
}

.st-newsletter-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.st-newsletter-popup__backdrop {
	position: absolute;
	inset: 0;
}

.st-newsletter-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 600px);
	opacity: 0;
	transform: translate3d(0, 22px, 0) scale(0.96);
	filter: blur(4px);
	will-change: opacity, transform, filter;
	transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms ease;
}

.st-newsletter-popup.is-open .st-newsletter-popup__dialog {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
	filter: blur(0);
}

.st-newsletter-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
	background: rgba(44, 23, 11, 0.68);
	color: #fff5df;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 300;
	line-height: 0;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.st-newsletter-popup__close span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

.st-newsletter-popup__close:hover,
.st-newsletter-popup__close:focus-visible {
	border-color: rgba(255, 239, 195, 0.85);
	background: rgba(79, 41, 18, 0.9);
	transform: rotate(4deg);
}

.st-newsletter-popup__dialog .st-newsletter-form {
	width: 100%;
	max-width: none;
	padding: clamp(28px, 5vw, 46px);
	border: 0;
	background: linear-gradient(145deg, rgba(73, 39, 18, 0.97), rgba(37, 20, 11, 0.98));
	box-shadow: 0 16px 42px rgba(18, 8, 3, 0.28);
}

.st-newsletter-floating {
	position: fixed;
	right: clamp(16px, 3vw, 34px);
	bottom: clamp(18px, 3vw, 32px);
	z-index: 900;
	display: inline-flex;
	gap: 11px;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 23px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #f0c874, #c4883c);
	box-shadow: 0 8px 22px rgba(37, 17, 5, 0.26);
	color: #2b1b11;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

/* Keep the CTA clear of the theme-owned Spotify player when it is visible. */
body:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
	right: 30px;
	bottom: calc(30px + 152px + 16px);
}

/* Keep the homepage CTA clear of the theme-owned slider navigation as well. */
body.home .st-newsletter-floating {
	bottom: calc(30px + 80px + 16px);
}

body.home:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
	bottom: calc(30px + 152px + 80px + 16px);
}

/* When both controls are active, move the slider's next arrow beside its previous arrow. */
body.home.st-newsletter-floating-enabled:not(.st-newsletter-spotify-disabled) .ms-slider .ms-nav--next {
	right: auto;
	left: calc(3rem + 80px + 16px);
}

/* The CTA can sit directly above the player once the right-side arrow is moved away. */
body.home.st-newsletter-floating-enabled:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
	bottom: calc(30px + 152px + 16px);
}

/* Keep both homepage slider arrows together on the lower-left side. */
body.home.st-newsletter-floating-enabled.st-newsletter-spotify-disabled .ms-slider .ms-nav--next {
	right: auto;
	left: calc(3rem + 80px + 16px);
}

body.home.st-newsletter-floating-enabled.st-newsletter-spotify-disabled .st-newsletter-floating {
	bottom: 30px;
}

.st-newsletter-floating:hover,
.st-newsletter-floating:focus-visible {
	box-shadow: 0 12px 28px rgba(37, 17, 5, 0.34);
	filter: brightness(1.06);
	transform: translateY(-2px);
}

.st-newsletter-floating:focus-visible {
	outline: none;
	box-shadow: 0 0 18px rgba(248, 217, 143, 0.3), 0 12px 28px rgba(37, 17, 5, 0.34);
}

.st-newsletter-floating__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.st-newsletter-floating__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

body.st-newsletter-modal-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.st-newsletter-popup {
		align-items: end;
		padding: 12px;
	}

	.st-newsletter-popup__close {
		top: 9px;
		right: 9px;
	}

	.st-newsletter-floating {
		right: 14px;
		bottom: 14px;
		min-height: 50px;
		padding: 0 17px;
		font-size: 0.9rem;
	}

	body:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
		right: 30px;
		bottom: calc(14px + 152px + 12px);
	}

	body.home .st-newsletter-floating {
		bottom: calc(14px + 80px + 12px);
	}

	body.home:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
		bottom: calc(14px + 152px + 80px + 12px);
	}

	body.home.st-newsletter-floating-enabled:not(.st-newsletter-spotify-disabled) .ms-slider .ms-nav--next {
		right: auto;
		left: calc(1.5rem + 60px + 12px);
	}

	body.home.st-newsletter-floating-enabled:not(.st-newsletter-spotify-disabled) .st-newsletter-floating {
		bottom: calc(14px + 152px + 12px);
	}

}

@media (prefers-reduced-motion: reduce) {
	.st-newsletter-popup,
	.st-newsletter-popup__dialog,
	.st-newsletter-popup__close,
	.st-newsletter-floating {
		transition: none;
	}

	.st-newsletter-popup__dialog {
		filter: none;
		will-change: auto;
	}
}

/* Keep the CTA beside the theme's back-to-top arrow on inner pages. */
body:not(.home) .st-newsletter-floating {
	right: calc(30px + 45px + 16px);
	bottom: 30px;
}

@media (max-width: 992px) {
	body:not(.home) .st-newsletter-floating {
		right: calc(0.75rem + 45px + 12px);
		bottom: 0.75rem;
	}
}

@media (max-width: 560px) {
	body:not(.home) .st-newsletter-floating {
		right: calc(12px + 45px + 12px);
		bottom: 12px;
	}

	body.home.st-newsletter-floating-enabled.st-newsletter-spotify-disabled .ms-slider .ms-nav--next {
		right: auto;
		left: calc(1.5rem + 60px + 12px);
	}

	body.home.st-newsletter-floating-enabled.st-newsletter-spotify-disabled .st-newsletter-floating {
		bottom: 14px;
	}
}

@media (max-width: 512px) {
	/* The theme hides its back-to-top control at this width. */
	body:not(.home) .st-newsletter-floating {
		right: 14px;
		bottom: 14px;
	}
}

@media (max-width: 560px) {
	.st-newsletter-form {
		padding: 22px;
	}

	.st-newsletter-form__fields {
		flex-direction: column;
		border-radius: 16px;
	}

	.st-newsletter-form__fields button {
		min-height: 48px;
	}

}

/* Popup themes and post-subscription thank-you view. */
.st-newsletter-popup__dialog {
	overflow: hidden;
	border-radius: 24px;
	background: rgba(39, 20, 10, 0.98);
	box-shadow: 0 28px 90px rgba(20, 8, 2, 0.42);
}

.st-newsletter-popup__layout {
	position: relative;
	display: block;
}

.st-newsletter-popup__content {
	padding: clamp(30px, 5vw, 54px);
	background: linear-gradient(145deg, rgba(73, 39, 18, 0.98), rgba(37, 20, 11, 0.99));
}

.st-newsletter-popup__dialog .st-newsletter-form {
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.st-newsletter-popup__visual {
	min-height: 300px;
	background: #5b321b;
	overflow: hidden;
}

.st-newsletter-popup__visual img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
}

.st-newsletter-popup--image .st-newsletter-popup__dialog {
	width: min(100%, 1080px);
}

.st-newsletter-popup--image .st-newsletter-popup__layout {
	display: grid;
	grid-template-columns: minmax(300px, 0.95fr) minmax(390px, 1.05fr);
	min-height: 550px;
}

.st-newsletter-popup--image .st-newsletter-popup__visual {
	height: 100%;
}

.st-newsletter-popup--image .st-newsletter-popup__visual img {
	height: 100%;
}

.st-newsletter-popup--image .st-newsletter-popup__content {
	display: flex;
	align-items: center;
}

.st-newsletter-popup--image .st-newsletter-form h2,
.st-newsletter-popup--image .st-newsletter-thankyou h2 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(2rem, 4vw, 3.35rem);
	font-weight: 400;
	letter-spacing: -0.025em;
}

.st-newsletter-popup--image .st-newsletter-form__heading p {
	max-width: 36rem;
	font-size: 1rem;
}

.st-newsletter-thankyou[hidden],
.st-newsletter-popup__form-panel[hidden] {
	display: none !important;
}

.st-newsletter-thankyou {
	max-width: 34rem;
	color: #fff5df;
}

.st-newsletter-thankyou__icon {
	display: inline-flex;
	width: 34px;
	height: 34px;
	margin-bottom: 18px;
	color: #f4d389;
}

.st-newsletter-thankyou__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.st-newsletter-thankyou h2 {
	margin: 0 0 12px;
	color: inherit;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
}

.st-newsletter-thankyou p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	line-height: 1.55;
}

.st-newsletter-thankyou__button {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	justify-content: center;
	min-width: 150px;
	min-height: 52px;
	margin-top: 28px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #f3cc7b, #c89142);
	box-shadow: 0 10px 26px rgba(24, 10, 2, 0.24);
	color: #2e1b0e;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.st-newsletter-thankyou__button:hover,
.st-newsletter-thankyou__button:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 14px 30px rgba(24, 10, 2, 0.32);
	transform: translateY(-2px);
}

.st-newsletter-thankyou__button:focus-visible {
	outline: 2px solid #f8d98f;
	outline-offset: 3px;
}

@media (max-width: 760px) {
	.st-newsletter-popup--image .st-newsletter-popup__layout {
		display: block;
		min-height: 0;
	}

	.st-newsletter-popup--image .st-newsletter-popup__visual,
	.st-newsletter-popup--image .st-newsletter-popup__visual img {
		height: 230px;
		min-height: 230px;
	}

	.st-newsletter-popup--image .st-newsletter-popup__content {
		display: block;
	}
}

/* Refined success state: a calm, premium confirmation after subscription. */
.st-newsletter-popup.is-thankyou .st-newsletter-popup__content {
	background:
		radial-gradient(circle at 50% 18%, rgba(241, 193, 99, 0.12), transparent 34%),
		linear-gradient(145deg, rgba(73, 39, 18, 0.99), rgba(37, 20, 11, 1));
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou {
	display: flex;
	min-height: clamp(390px, 52vh, 560px);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 38rem;
	margin: 0 auto;
	text-align: center;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon,
.st-newsletter-popup.is-thankyou .st-newsletter-thankyou h2,
.st-newsletter-popup.is-thankyou .st-newsletter-thankyou p,
.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__button {
	animation: st-newsletter-thankyou-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon {
	position: relative;
	display: grid;
	width: 76px;
	height: 76px;
	margin: 0 0 24px;
	place-items: center;
	border: 1px solid rgba(244, 211, 137, 0.48);
	border-radius: 50%;
	background: rgba(244, 211, 137, 0.08);
	box-shadow: 0 0 0 10px rgba(244, 211, 137, 0.035), 0 14px 34px rgba(18, 8, 3, 0.24);
	color: #f4d389;
	animation-delay: 60ms;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon::after {
	position: absolute;
	inset: -9px;
	border: 1px solid rgba(244, 211, 137, 0.14);
	border-radius: inherit;
	content: '';
	animation: st-newsletter-thankyou-pulse 1100ms 180ms ease-out both;
}

.st-newsletter-thankyou__icon svg {
	width: 42px;
	height: 42px;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-ring {
	stroke-dasharray: 57;
	stroke-dashoffset: 57;
	animation: st-newsletter-draw 520ms 180ms ease-out forwards;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-check {
	stroke-dasharray: 16;
	stroke-dashoffset: 16;
	animation: st-newsletter-draw 360ms 520ms ease-out forwards;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou h2 {
	margin-bottom: 14px;
	animation-delay: 170ms;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou p {
	max-width: 31rem;
	animation-delay: 250ms;
}

.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__button {
	margin-top: 30px;
	animation-delay: 340ms;
}

@keyframes st-newsletter-thankyou-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes st-newsletter-thankyou-pulse {
	0% {
		opacity: 0;
		transform: scale(0.72);
	}
	45% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: scale(1.16);
	}
}

@keyframes st-newsletter-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@media (max-width: 760px) {
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou {
		min-height: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou h2,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou p,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__button,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon::after,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-ring,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-check {
		animation: none;
	}

	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-ring,
	.st-newsletter-popup.is-thankyou .st-newsletter-thankyou__icon-check {
		stroke-dashoffset: 0;
	}
}
