/* Easy Notification Bar - frontend styles */
/* 
:root {
	--enb-bar-height: 0px;
} */

#enb-notification-bar.enb-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
z-index:2;
	box-sizing: border-box;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Keep the bar below the WP admin toolbar when logged in */
body.admin-bar #enb-notification-bar.enb-bar {
	top: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar #enb-notification-bar.enb-bar {
		top: 46px;
	}
}

#enb-notification-bar.enb-bar.enb-hidden {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

.enb-bar-inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	padding: 9px 20px;
}

.enb-message {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	text-align: center;
	flex: 1 1 auto;
	min-width: 220px;
}

.enb-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
}

.enb-btn {
	display: inline-block;
	padding: 5px 18px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border: 2px solid #fff;
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.enb-btn:hover,
.enb-btn:focus {
	opacity: 0.85;
	transform: translateY(-1px);
	text-decoration: none;
}

.enb-btn-primary {
	background-color: #ffffff;
	color: #333333 !important;
}

.enb-btn-secondary {
	background-color: transparent;
	color: #ffffff !important;
}

.enb-dismiss {
	background: transparent;
	border: none;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	margin-left: 4px;
}

.enb-dismiss:hover,
.enb-dismiss:focus {
	opacity: 0.7;
}

/* Push the whole page down by the bar's real height so the bar never
   overlaps the logo, navigation, or any content underneath it. */
body.enb-has-bar {
	padding-top: var(--enb-bar-height);
}

/* Optional helper: any theme element you mark with this class (via the
   'enb_offset_selectors' documentation) will also be nudged below the bar.
   Useful for themes whose own header is itself position:fixed/sticky. */
body.enb-has-bar .enb-offset-target {
	top: var(--enb-bar-height) !important;
}

/* Built-in Elementor compatibility: Elementor's "sticky" feature adds the
   class below to whatever element is currently stuck to the viewport, and
   re-writes that element's inline "top" style continuously via its own
   JavaScript while scrolling. An !important rule in a stylesheet always
   overrides a plain (non-!important) inline style, so this keeps any
   Elementor sticky header/nav pinned below the bar automatically —
   without needing to target Elementor's auto-generated element ID, which
   can change whenever that section is edited. */
.elementor-sticky--active {
	top: var(--enb-bar-height) !important;
	transition: top 0.3s ease;
}
body.admin-bar .elementor-sticky--active {
	top: calc(32px + var(--enb-bar-height)) !important;
}
@media screen and (max-width: 782px) {
	body.admin-bar .elementor-sticky--active {
		top: calc(46px + var(--enb-bar-height)) !important;
	}
}

/* ---------------- Responsive ---------------- */

@media screen and (max-width: 782px) {
	.enb-bar-inner {
		padding: 7px 16px;
		gap: 8px 16px;
	}
	.enb-message {
		font-size: 14px;
	}
}

@media screen and (max-width: 600px) {
	.enb-bar-inner {
		padding: 7px 40px 7px 14px;
	}
	.enb-message {
		font-size: 13px;
		width: 100%;
		text-align: center;
	}
	.enb-actions {
		width: 100%;
		justify-content: center;
	}
	.enb-btn {
		padding: 7px 14px;
		font-size: 13px;
	}
	.enb-dismiss {
		position: absolute;
		top: 8px;
		right: 10px;
		margin-left: 0;
	}
}
