/**
 * Subscribe — banner, button, popup.
 */

.mp-aod-sub-banner,
.mp-aod-sub-modal {
	--mp-berry: var(--wp--preset--color--berry, #8E2C4E);
	--mp-berry-hover: #7A2542;
	--mp-ink: #1A1A1A;
	--mp-muted: #645A60;
	--mp-line: #F1E0E6;
	--mp-wash: #FBF1F3;
	--mp-ivory: #FCF8F5;
}

/* ---------- banner ---------- */

.mp-aod-sub-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: var(--mp-wash);
	border: 1px solid var(--mp-line);
	border-radius: 20px;
	padding: 24px 28px;
	margin: 28px 0;
}

.mp-aod-sub-banner-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mp-aod-sub-banner-text strong {
	font-size: 1.15rem;
	font-weight: 800;
	color: #000;
	letter-spacing: -.01em;
}

.mp-aod-sub-banner-text span {
	font-size: .92rem;
	color: var(--mp-muted);
	line-height: 1.5;
}

/* ---------- triggers ---------- */

.mp-aod-sub-btn {
	flex: 0 0 auto;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 700;
	color: #fff;
	background: var(--mp-berry);
	border: none;
	border-radius: 100px;
	padding: 13px 28px;
	cursor: pointer;
	transition: background .18s, transform .18s;
}

.mp-aod-sub-btn:hover {
	background: var(--mp-berry-hover);
	transform: translateY(-1px);
}

.mp-aod-sub-link {
	color: var(--mp-berry);
	font-weight: 700;
	text-decoration: none;
}

.mp-aod-sub-link:hover {
	color: var(--mp-berry-hover);
}

/* ---------- modal ---------- */

.mp-aod-sub-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mp-aod-sub-modal[hidden] {
	display: none;
}

.mp-aod-sub-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 12, 18, .55);
	backdrop-filter: blur(2px);
}

.mp-aod-sub-modal-card {
	position: relative;
	background: #fff;
	border-radius: 24px;
	max-width: 440px;
	width: 100%;
	padding: 40px 36px 32px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
	animation: mp-aod-sub-in .22s ease-out;
}

@keyframes mp-aod-sub-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mp-aod-sub-modal-x {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 34px;
	height: 34px;
	border: none;
	background: var(--mp-ivory);
	color: var(--mp-muted);
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.mp-aod-sub-modal-x:hover {
	background: var(--mp-wash);
	color: var(--mp-berry);
}

.mp-aod-sub-form h2,
.mp-aod-sub-done h2 {
	font-size: 1.5rem;
	font-weight: 800;
	color: #000;
	letter-spacing: -.02em;
	margin: 0 0 8px;
}

.mp-aod-sub-lead {
	font-size: .95rem;
	line-height: 1.6;
	color: var(--mp-muted);
	margin: 0 0 20px;
}

.mp-aod-sub-label {
	display: block;
	font-size: .85rem;
	font-weight: 700;
	color: var(--mp-ink);
	margin-bottom: 6px;
}

.mp-aod-sub-input {
	width: 100%;
	box-sizing: border-box; /* keep 100% + padding inside, off the edge */
	font-family: inherit;
	font-size: 16px; /* 16px: stop iOS Safari zooming the page on focus. */
	color: var(--mp-ink);
	background: var(--mp-ivory);
	border: 1.5px solid var(--mp-line);
	border-radius: 12px;
	padding: 14px 16px;
	outline: none;
	margin-bottom: 16px;
}

.mp-aod-sub-input:focus {
	border-color: var(--mp-berry);
	background: #fff;
}

.mp-aod-sub-as {
	font-size: .95rem;
	color: var(--mp-ink);
	background: var(--mp-wash);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 16px;
}

.mp-aod-sub-err {
	color: var(--mp-berry);
	font-size: .86rem;
	font-weight: 600;
	margin: 0 0 12px;
}

.mp-aod-sub-submit {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: var(--mp-berry);
	border: none;
	border-radius: 100px;
	padding: 15px;
	cursor: pointer;
	transition: background .18s;
}

.mp-aod-sub-submit:hover {
	background: var(--mp-berry-hover);
}

.mp-aod-sub-submit:disabled {
	opacity: .6;
	cursor: default;
}

.mp-aod-sub-consent {
	font-size: .78rem;
	line-height: 1.55;
	color: var(--mp-muted);
	margin: 14px 0 0;
	text-align: center;
}

.mp-aod-sub-consent a {
	color: var(--mp-berry);
	text-decoration: none;
	transition: color .15s ease;
}

.mp-aod-sub-consent a:hover {
	color: var(--mp-berry-hover);
}

/* done state */

.mp-aod-sub-done {
	display: none;
	text-align: center;
	padding: 8px 0;
}

.mp-aod-sub-modal-card.is-done .mp-aod-sub-form {
	display: none;
}

.mp-aod-sub-modal-card.is-done .mp-aod-sub-done {
	display: block;
}

.mp-aod-sub-check {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #E7F0EB;
	color: #3A5349;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.mp-aod-sub-done p {
	color: var(--mp-muted);
	margin: 0 0 22px;
}

@media (max-width: 520px) {
	.mp-aod-sub-banner {
		flex-direction: column;
		align-items: flex-start;
	}
	.mp-aod-sub-btn {
		width: 100%;
	}
}

/* =========================================================================
 * Inline subscribe — [mp_subscribe_inline]
 * Pill field + button that subscribes in place. Two tones: berry (default,
 * for light backgrounds) and light (for a dark/berry background like a footer).
 * ====================================================================== */

.mp-aod-inl {
	--mp-berry: var(--wp--preset--color--berry, #8E2C4E);
	--mp-berry-hover: #7A2542;
	--mp-baby-soft: #FDEEF2;
	--mp-line: #E4C9D2;
	--mp-ink: #1A1A1A;
	--mp-muted: #645A60;
	font-family: inherit;
	max-width: 440px;
}

.mp-aod-inl * {
	box-sizing: border-box;
}

/*
 * display on .mp-aod-inl-done (flex) and the row would otherwise override the
 * plain [hidden] attribute — [hidden] only sets display:none at the UA level
 * and any explicit display wins. This makes hidden actually hide.
 */
.mp-aod-inl [hidden] {
	display: none !important;
}

.mp-aod-inl-head {
	font-size: .78rem;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--mp-ink);
	margin: 0 0 10px;
}

.mp-aod-inl-row {
	display: flex;
	gap: 8px;
	background: #fff;
	border: 1.5px solid var(--mp-line);
	border-radius: 100px;
	padding: 5px 5px 5px 16px;
}

.mp-aod-inl-input {
	flex: 1;
	min-width: 0;
	background: none;
	border: none;
	outline: none;
	color: var(--mp-ink);
	font-family: inherit;
	font-size: 16px; /* 16px: no iOS zoom on focus */
}

.mp-aod-inl-input::placeholder {
	color: var(--mp-muted);
	opacity: .7;
}

/* Read-only address shown to a logged-in subscriber, in place of the input. */
.mp-aod-inl-as {
	flex: 1;
	min-width: 0;
	color: var(--mp-ink);
	font-size: 16px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	align-self: center;
}

.mp-aod-inl-btn {
	flex: 0 0 auto;
	background: var(--mp-berry);
	color: #fff;
	border: none;
	border-radius: 100px;
	padding: 10px 20px;
	font-family: inherit;
	font-weight: 700;
	font-size: .9rem;
	cursor: pointer;
	transition: background .2s;
}

.mp-aod-inl-btn:hover {
	background: var(--mp-berry-hover);
}

.mp-aod-inl-btn:disabled {
	opacity: .6;
	cursor: default;
}

.mp-aod-inl-err {
	font-size: .82rem;
	color: #B42318;
	margin: 8px 2px 0;
}

.mp-aod-inl-note {
	font-size: .76rem;
	color: var(--mp-muted);
	margin: 8px 2px 0;
}

/* success — a proper message, not the footer's tiny swap */
.mp-aod-inl-done {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--mp-ink);
	background: var(--mp-baby-soft);
	border-radius: 14px;
	padding: 14px 18px;
}

.mp-aod-inl-check {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mp-berry);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- light tone: white text + translucent field, for a berry/dark bg ---- */

.mp-aod-inl--light .mp-aod-inl-head {
	color: #fff;
}

.mp-aod-inl--light .mp-aod-inl-row {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .22);
}

.mp-aod-inl--light .mp-aod-inl-input,
.mp-aod-inl--light .mp-aod-inl-as {
	color: #fff;
}

.mp-aod-inl--light .mp-aod-inl-input::placeholder {
	color: rgba(255, 255, 255, .55);
	opacity: 1;
}

.mp-aod-inl--light .mp-aod-inl-btn {
	background: #fff;
	color: var(--mp-berry);
}

.mp-aod-inl--light .mp-aod-inl-btn:hover {
	background: var(--mp-baby-soft);
}

.mp-aod-inl--light .mp-aod-inl-note {
	color: rgba(255, 255, 255, .55);
}

.mp-aod-inl--light .mp-aod-inl-err {
	color: #FFD7D2;
}

.mp-aod-inl--light .mp-aod-inl-done {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.mp-aod-inl--light .mp-aod-inl-check {
	background: #fff;
	color: var(--mp-berry);
}

/* Links inside the inline consent line. On the dark footer they sit white
   against the softened note text; hovering settles them back to the note's
   own colour. No underline — the colour contrast is the link cue. */
.mp-aod-inl-note a {
	color: #fff;
	text-decoration: none;
	transition: color .15s ease;
}

.mp-aod-inl-note a:hover {
	color: rgba(255, 255, 255, .55);
}

/* On the standard (light background) inline, white would vanish — use the
   ink instead, hovering back to the muted note colour. */
.mp-aod-inl:not(.mp-aod-inl--light) .mp-aod-inl-note a {
	color: #1A1A1A;
}

.mp-aod-inl:not(.mp-aod-inl--light) .mp-aod-inl-note a:hover {
	color: var(--mp-muted);
}
