.ea-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Banner */
.site-announcements {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.announcement {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	line-height: 1.5;
	width: 100%;
	box-sizing: border-box;
}

.announcement-compact {
	padding: 0.65rem 1.25rem;
}

.announcement-tall {
	padding: 1.35rem 1.25rem;
}

.announcement.p-0 {
	padding: 0;
}

.announcement.text-start {
	text-align: left;
}

.announcement.text-center {
	text-align: center;
}

.announcement.text-end {
	text-align: right;
}

.announcement-sticky {
	position: sticky;
	top: 0;
	z-index: 200;
}

.announcement h1,
.announcement h2,
.announcement h3,
.announcement h4,
.announcement h5,
.announcement h6 {
	color: inherit;
	margin-top: 0 !important;
}

.announcement .contents {
	flex: 1;
	min-width: 0;
	padding-right: 2.5rem;
}

.announcement p,
.announcement ul {
	margin-top: 0;
	margin-bottom: 0;
}

.announcement .contents a:not(.btn) {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.announcement .contents a:not(.btn):hover {
	text-decoration: none;
}

.announcement .actions {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 0.25rem;
	z-index: 2;
	opacity: 1;
	padding: 0 0.5rem;
}

.announcement .actions:empty {
	display: none;
}

@media (min-width: 768px) {
	.announcement .actions {
		opacity: 0;
		transition: opacity 0.25s;
	}

	.announcement:hover .actions,
	.announcement .actions:focus-within {
		opacity: 1;
	}
}

.announcement .actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	text-decoration: none;
	opacity: 0.45;
	padding: 4px;
	border-radius: 4px;
}

.announcement .actions a:hover,
.announcement .actions a:focus {
	opacity: 1;
}

.announcement .dismiss {
	font-size: 1.25rem;
	line-height: 1;
	width: 1.75rem;
	height: 1.75rem;
}

.announcement .ea-edit-link {
	font-size: 0.8rem;
}

.announcement.has-url {
	cursor: pointer;
}

.announcement .announcement-url {
	position: absolute;
	inset: 0;
	z-index: 1;
}

@media (max-width: 767px) {
	.announcement {
		font-size: 0.875rem;
	}
}

/* Modal */
.ea-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1040;
}

.ea-modal-backdrop.show {
	display: block;
}

body.ea-modal-open {
	overflow: hidden;
}

.ea-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1055;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}

.ea-modal.show {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.ea-modal .ea-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 500px;
	pointer-events: none;
}

.ea-modal .ea-modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	color: #212529;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	outline: 0;
}

.ea-modal .ea-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #dee2e6;
}

.ea-modal .ea-modal-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.5;
}

.ea-modal .ea-modal-body {
	padding: 1.25rem;
	flex: 1 1 auto;
}

.ea-modal .ea-modal-body p:first-child {
	margin-top: 0;
}

.ea-modal .ea-modal-body p:last-child {
	margin-bottom: 0;
}

.ea-modal .actions {
	display: flex;
	justify-content: flex-end;
	padding: 0.5rem 1.25rem 1rem;
}

.ea-btn-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	color: #000;
	opacity: 0.45;
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.ea-btn-close:hover {
	opacity: 0.85;
}

.ea-btn-close:focus {
	outline: 2px solid rgba(13, 110, 253, 0.5);
	outline-offset: 2px;
	opacity: 1;
}

.ea-modal .ea-edit-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	color: #6c757d;
	text-decoration: none;
	opacity: 0.7;
}

.ea-modal .ea-edit-link:hover {
	opacity: 1;
}

/* Live Select overlay (admin only, loaded when ?live-select) */
html.live-select .easy-announcements-live-selector {
	background: rgba(6, 147, 227, 0.15);
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px rgba(6, 147, 227, 0.5);
	position: fixed;
	text-align: center;
	z-index: 9998;
}

/* Slim color bar shown at the top of a popup when "Show Title" is disabled */
.ea-modal .ea-modal-header-colorbar {
	padding: 4px 1.25rem;
	min-height: 0;
	border-bottom: none;
	justify-content: flex-end;
}

/* Announcement title (when "Show Title" is enabled on a banner) */
.announcement .ea-announcement-title {
	display: block;
	font-weight: 700;
	margin: 0 0 .25rem;
	line-height: 1.3;
}
