/* Post alerts by email – signup form.
   Uses Bootstrap 3 classes (form-control, btn, alert) where the theme has them,
   so this file only handles layout and the bits Bootstrap doesn't cover. */

.post-alerts {
	margin: 0 0 1.5em;
}

.post-alerts-label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.post-alerts-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.post-alerts-row input[type="email"] {
	flex: 1 1 12em;
	min-width: 0;
	width: auto;
	border-radius: 0;
	font: inherit;
	font-size: 16px; /* Stops iOS zooming into the field. */
}

.post-alerts-row .btn {
	flex: 0 0 auto;
	border-radius: 0;
}

.post-alerts .btn:hover,
.post-alerts .btn:focus {
	color: #fff;
	text-decoration: underline;
}

.post-alerts-note {
	font-size: 0.85em;
	line-height: 1.4;
	color: #767676;
	margin: 0.6em 0 0;
}

.post-alerts-intro {
	margin: 0 0 0.75em;
}

.post-alerts-notice {
	border-radius: 0;
	line-height: 1.4;
}

/* Honeypot field: hidden from people, visible to bots. */
.post-alerts-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* At the end of a post. */
.post-alerts-after-post {
	margin: 2em 0 1em;
	padding: 1.25em 1.5em 0.25em;
	border-top: 3px solid #5560d8;
	background: #f7f7fc;
}

.post-alerts-after-post h3 {
	margin-top: 0;
}

/* Pop-up notice on pages that don't have a form. */
.post-alerts-floating {
	position: fixed;
	right: 1em;
	bottom: 1em;
	z-index: 9999;
	max-width: 26em;
	margin: 0;
	padding: 1em 2.5em 0.5em 1em;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.post-alerts-close {
	position: absolute;
	top: 0.25em;
	right: 0.4em;
	padding: 0 0.25em;
	border: 0;
	background: none;
	font-size: 1.6em;
	line-height: 1;
	color: #333;
	cursor: pointer;
}

@media (max-width: 480px) {
	.post-alerts-floating {
		left: 0.5em;
		right: 0.5em;
		bottom: 0.5em;
		max-width: none;
	}
}
