/* Separate local part and mail service, with a fixed @ between them. */
.qspae-email-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr);
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.qspae-email-entry [hidden] { display: none !important; }

.qspae-email-entry .qspae-email-local,
.qspae-email-entry .qspae-email-custom,
.qspae-email-entry .qspae-email-domain {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 54px;
	min-height: 54px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #c9cbd0;
	border-radius: 8px;
	color: #111;
	background-color: #fff;
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}

.qspae-email-entry .qspae-email-local:focus,
.qspae-email-entry .qspae-email-custom:focus,
.qspae-email-entry .qspae-email-domain:focus {
	border-color: #111;
	outline: 3px solid rgba(17, 17, 17, 0.1);
	outline-offset: 1px;
}

.qspae-email-at { color: #737780; font-size: 16px; }
.qspae-email-right { position: relative; min-width: 0; }

.qspae-email-entry .qspae-email-domain {
	padding-right: 27px;
	font-size: 0.9rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%2352565e' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
}

.qspae-email-entry .qspae-email-custom { padding-right: 30px; }
.qspae-email-entry .qspae-email-right .qspae-email-choose {
	position: absolute;
	right: 1px;
	top: 1px;
	bottom: 1px;
	width: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 7px 7px 0;
	color: #52565e;
	background: transparent;
	transform: none;
	cursor: pointer;
}
.qspae-email-choose:focus-visible { outline: 2px solid #111; outline-offset: -3px; }

@media (max-width: 360px) {
	.qspae-email-entry { gap: 6px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); }
	.qspae-email-entry .qspae-email-domain { font-size: 0.8rem; padding-left: 8px; }
	.qspae-email-entry .qspae-email-custom { padding-left: 8px; }
}

/* Shared confirmation step for the home and article subscription forms. */
.qspae-newsletter-awaiting > [hidden],
.qspae-newsletter-next [hidden] {
	display: none !important;
}

.qspae-newsletter-next {
	max-width: 620px;
	margin: 0 auto;
	padding: 12px 0;
	text-align: center;
	color: #111;
}

.qspae-newsletter-next .qspae-newsletter-next-title {
	margin: 0;
	color: #111;
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	font-weight: 790;
	line-height: 1.4;
	letter-spacing: -0.045em;
	word-break: keep-all;
}

.qspae-newsletter-next-title span {
	color: #ee6549;
}

.qspae-newsletter-next-title:focus {
	outline: none;
}

.qspae-newsletter-next .qspae-newsletter-next-description {
	margin: 16px 0 0;
	color: #52565e;
	font-size: 0.94rem;
	line-height: 1.7;
	word-break: keep-all;
}

@media (max-width: 360px) {
	.qspae-newsletter-next .qspae-newsletter-next-description {
		font-size: 13px;
		line-height: 1.8;
	}
}

.qspae-newsletter-next .qspae-newsletter-next-address {
	margin: 12px 0 24px;
	color: #111;
	font-size: 0.94rem;
	line-height: 1.5;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.qspae-newsletter-next .qspae-newsletter-mailbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 1px solid #111;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
}

.qspae-newsletter-next .qspae-newsletter-mailbox:hover {
	background: #303030;
}

.qspae-newsletter-next .qspae-newsletter-next-help {
	margin: 20px 0 0;
	color: #74777d;
	font-size: 0.8rem;
	line-height: 1.6;
	word-break: keep-all;
}

.qspae-newsletter-next .qspae-newsletter-edit {
	min-height: 44px;
	margin: 2px 0 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #52565e;
	font: inherit;
	font-size: 0.8rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.qspae-newsletter-mailbox:focus-visible,
.qspae-newsletter-edit:focus-visible {
	outline: 2px solid #111;
	outline-offset: 4px;
}
