/* AMX Highlight Messenger - front-end styles */

body {
	transition: padding-top .35s ease, padding-bottom .35s ease;
}

.amxhm-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99998;
	background: var(--amxhm-bg, #2563EB);
	color: var(--amxhm-text, #ffffff);
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
	transform: translateY(-120%);
	transition: transform .35s ease;
}
.amxhm-bar.amxhm-position-bottom {
	transform: translateY(120%);
	top: auto;
	bottom: 0;
}
.amxhm-bar.amxhm-position-top {
	top: 0;
}
.amxhm-bar.amxhm-visible {
	transform: translateY(0);
}
.amxhm-bar-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 44px 12px 16px;
	position: relative;
	flex-wrap: wrap;
}
.amxhm-bar .amxhm-icon {
	display: inline-flex;
	flex: 0 0 auto;
}
.amxhm-bar .amxhm-icon .dashicons {
	color: currentColor;
}
.amxhm-bar .amxhm-text {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.4;
}
.amxhm-bar .amxhm-text p {
	margin: 0;
}
.amxhm-bar .amxhm-text a {
	color: inherit;
	text-decoration: underline;
}
.amxhm-btn {
	flex: 0 0 auto;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	display: inline-block;
	line-height: 1.3;
}
.amxhm-btn:hover,
.amxhm-btn:focus {
	opacity: .88;
}
.amxhm-close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: currentColor;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
	padding: 4px;
}
.amxhm-close:hover {
	opacity: 1;
}

/* Popup */
.amxhm-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.amxhm-popup-overlay.amxhm-visible {
	display: flex;
}
.amxhm-popup-overlay.amxhm-blocking {
	background: rgba(17, 24, 39, .55);
}
.amxhm-popup-overlay.amxhm-non-blocking {
	background: transparent;
	pointer-events: none;
}

/* Placement des popups non bloquantes */
.amxhm-popup-overlay.amxhm-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }
.amxhm-popup-overlay.amxhm-pos-bottom-left  { align-items: flex-end; justify-content: flex-start; }
.amxhm-popup-overlay.amxhm-pos-top-right    { align-items: flex-start; justify-content: flex-end; }
.amxhm-popup-overlay.amxhm-pos-top-left     { align-items: flex-start; justify-content: flex-start; }

.amxhm-popup-box {
	position: relative;
	background: #ffffff;
	color: #111827;
	border-radius: 14px;
	max-width: 400px;
	width: 100%;
	padding: 32px 26px 26px;
	box-shadow: 0 20px 45px rgba(0,0,0,.22);
	text-align: center;
	transform: translateY(10px);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}
.amxhm-popup-overlay.amxhm-visible .amxhm-popup-box {
	transform: translateY(0);
	opacity: 1;
}
.amxhm-non-blocking .amxhm-popup-box {
	pointer-events: auto;
	max-width: 340px;
	margin: 20px;
}
.amxhm-icon-badge {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}
.amxhm-icon-badge .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: currentColor;
}
.amxhm-card-title {
	font-size: 17px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 6px;
	line-height: 1.3;
}
.amxhm-popup-box .amxhm-text {
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
	margin-bottom: 18px;
}
.amxhm-popup-box .amxhm-text p {
	margin: 0 0 8px;
}
.amxhm-popup-box .amxhm-text a {
	color: inherit;
	text-decoration: underline;
}
.amxhm-popup-box .amxhm-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 18px;
	font-size: 14px;
	box-sizing: border-box;
}
.amxhm-popup-box .amxhm-close {
	top: 10px;
	right: 10px;
	color: #9ca3af;
}

body.amxhm-scroll-lock {
	overflow: hidden;
}

@media (max-width: 600px) {
	.amxhm-bar-inner {
		padding: 10px 40px 10px 12px;
	}
	.amxhm-btn {
		font-size: 12px;
		padding: 7px 14px;
	}
	.amxhm-non-blocking .amxhm-popup-box {
		margin: 10px;
		max-width: calc(100% - 20px);
	}
}
