/* Wadifa Engage – front-end */
.wdfe[hidden] { display: none !important; }
.wdfe, .wdfe * { box-sizing: border-box; }
.wdfe {
	--wdfe-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 24px 48px -12px rgba(15, 23, 42, .28), 0 6px 16px -4px rgba(15, 23, 42, .12);
	position: fixed;
	z-index: var(--wdfe-z, 999999);
	font-family: var(--wdfe-font, inherit);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--wdfe-text);
}
.wdfe button, .wdfe a, .wdfe p, .wdfe span, .wdfe small { font-family: inherit; }
.wdfe-box {
	position: relative;
	background: var(--wdfe-bg);
	color: var(--wdfe-text);
	border-radius: var(--wdfe-radius);
	box-shadow: var(--wdfe-shadow);
	transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .3s ease;
	opacity: 0;
}
.wdfe-in .wdfe-box { opacity: 1; transform: none !important; }

/* Close button */
.wdfe-close {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
	width: 32px; height: 32px; padding: 6px; margin: 0;
	display: grid; place-items: center;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .06); color: inherit; opacity: .75;
	cursor: pointer; line-height: 0; box-shadow: none;
	transition: opacity .15s, background .15s;
}
.wdfe-close:hover, .wdfe-close:focus-visible { opacity: 1; background: rgba(0, 0, 0, .12); }
.wdfe-close svg { width: 18px; height: 18px; }

/* Content */
.wdfe-icon {
	width: 64px; height: 64px; border-radius: 50%;
	display: grid; place-items: center; flex: none;
	background: var(--wdfe-accent); color: #fff;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--wdfe-accent) 40%, transparent);
}
.wdfe-icon svg { width: 34px; height: 34px; }
.wdfe-media img { display: block; width: 100%; height: auto; object-fit: cover; }
.wdfe-label {
	display: inline-block; margin-bottom: 6px; padding: 2px 10px;
	font-size: 12px; font-weight: 700; border-radius: 20px;
	background: color-mix(in srgb, var(--wdfe-accent) 14%, transparent); color: var(--wdfe-accent);
}
.wdfe-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: inherit; }
.wdfe-msg { font-size: 15px; opacity: .85; }
.wdfe-followers {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 3px 12px 3px 8px;
	border-radius: 999px; font-size: 13px; font-weight: 700;
	background: color-mix(in srgb, var(--wdfe-accent) 12%, transparent); color: var(--wdfe-accent);
}
.wdfe-followers svg { width: 16px; height: 16px; flex: none; }
.wdfe-layout-bar_top .wdfe-followers, .wdfe-layout-bar_bottom .wdfe-followers { margin: 0; }
.wdfe-msg p { margin: 0 0 .5em; }
.wdfe-msg p:last-child { margin-bottom: 0; }
.wdfe-msg a { color: var(--wdfe-accent); }
.wdfe-fb { margin-top: 12px; display: flex; justify-content: center; min-height: 0; }
.wdfe-fb iframe { border: 0; overflow: hidden; max-width: 100%; border-radius: 8px; }

.wdfe-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.wdfe-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px;
	background: var(--wdfe-accent); color: var(--wdfe-btn-text) !important;
	font-weight: 700; font-size: 15px; text-decoration: none !important; line-height: 1.2;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--wdfe-accent) 35%, transparent);
	transition: transform .15s, filter .15s;
}
.wdfe-cta:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 10px 22px color-mix(in srgb, var(--wdfe-accent) 40%, transparent); }
.wdfe-cta:active { transform: translateY(0); }
.wdfe-cta:focus-visible, .wdfe-later:focus-visible, .wdfe-close:focus-visible { outline: 2px solid var(--wdfe-accent); outline-offset: 2px; }
.wdfe-cta svg { width: 20px; height: 20px; flex: none; }
.wdfe-later {
	background: none; border: 0; padding: 6px 8px; margin: 0; box-shadow: none;
	color: inherit; opacity: .6; font-size: 14px; cursor: pointer; text-decoration: underline;
}
.wdfe-later:hover { opacity: .9; background: none; }
.wdfe-store {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: 10px;
	background: #111; color: #fff !important; text-decoration: none !important; line-height: 1.1;
}
.wdfe-store svg { width: 24px; height: 24px; }
.wdfe-store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; text-align: start; }
.wdfe-store small { font-size: 10px; font-weight: 400; text-transform: uppercase; opacity: .85; }

/* ===== Modal ===== */
.wdfe-layout-modal { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wdfe-overlay {
	position: absolute; inset: 0;
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	opacity: 0; transition: opacity .3s;
}
.wdfe-overlay-clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wdfe-in .wdfe-overlay { opacity: 1; }
.wdfe-layout-modal .wdfe-box {
	width: min(var(--wdfe-width), 100%);
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	overflow: auto; text-align: center;
	padding: 32px 26px 24px;
}
.wdfe-layout-modal .wdfe-icon { margin: 0 auto 16px; }
.wdfe-layout-modal.wdfe-has-image .wdfe-box { padding-top: 0; }
.wdfe-layout-modal .wdfe-media { margin: 0 -26px 20px; border-radius: var(--wdfe-radius) var(--wdfe-radius) 0 0; overflow: hidden; max-height: 240px; }
.wdfe-layout-modal .wdfe-has-image .wdfe-close, .wdfe-layout-modal.wdfe-has-image .wdfe-close { background: rgba(255, 255, 255, .85); color: #111; }
.wdfe-layout-modal .wdfe-cta { min-width: 60%; }
html.wdfe-lock, html.wdfe-lock body { overflow: hidden !important; }

/* ===== Slide-in notification ===== */
.wdfe-layout-slide { width: min(var(--wdfe-width), calc(100vw - 24px)); transition: top .3s, bottom .3s; }
.wdfe-pos-bottom-right { right: 20px; bottom: calc(20px + var(--wdfe-bar_bottom, 0px)); }
.wdfe-pos-bottom-left { left: 20px; bottom: calc(20px + var(--wdfe-bar_bottom, 0px)); }
.wdfe-pos-top-right { right: 20px; top: calc(20px + var(--wp-admin--admin-bar--height, 0px) + var(--wdfe-bar_top, 0px)); }
.wdfe-pos-top-left { left: 20px; top: calc(20px + var(--wp-admin--admin-bar--height, 0px) + var(--wdfe-bar_top, 0px)); }
.wdfe-layout-slide .wdfe-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 16px; border-inline-start: 4px solid var(--wdfe-accent); }
.wdfe-layout-slide .wdfe-icon { width: 46px; height: 46px; }
.wdfe-layout-slide .wdfe-icon svg { width: 24px; height: 24px; }
.wdfe-layout-slide .wdfe-media { width: 84px; flex: none; border-radius: 10px; overflow: hidden; }
.wdfe-layout-slide .wdfe-media img { height: 84px; }
.wdfe-layout-slide .wdfe-body { flex: 1; min-width: 0; padding-inline-end: 22px; }
.wdfe-layout-slide .wdfe-title { font-size: 16px; }
.wdfe-layout-slide .wdfe-msg { font-size: 14px; }
.wdfe-layout-slide .wdfe-actions { justify-content: flex-start; margin-top: 10px; gap: 6px; }
.wdfe-layout-slide .wdfe-cta { padding: 8px 16px; font-size: 14px; }
.wdfe-layout-slide .wdfe-close { top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; }
.wdfe-layout-slide .wdfe-fb { justify-content: flex-start; }

/* ===== Bars ===== */
.wdfe-layout-bar_top, .wdfe-layout-bar_bottom { left: 0; right: 0; }
.wdfe-layout-bar_top { top: var(--wp-admin--admin-bar--height, 0px); }
.wdfe-layout-bar_bottom { bottom: 0; }
.wdfe-layout-bar_top .wdfe-box, .wdfe-layout-bar_bottom .wdfe-box {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	padding: 10px 56px 10px 16px; padding-inline: 16px 56px;
	border-radius: 0; box-shadow: 0 2px 14px rgba(15, 23, 42, .18);
}
.wdfe-layout-bar_top .wdfe-box { border-radius: 0 0 var(--wdfe-radius) var(--wdfe-radius); }
.wdfe-layout-bar_bottom .wdfe-box { border-radius: var(--wdfe-radius) var(--wdfe-radius) 0 0; }
.wdfe-layout-bar_top .wdfe-icon, .wdfe-layout-bar_bottom .wdfe-icon { width: 38px; height: 38px; box-shadow: none; }
.wdfe-layout-bar_top .wdfe-icon svg, .wdfe-layout-bar_bottom .wdfe-icon svg { width: 22px; height: 22px; }
.wdfe-layout-bar_top .wdfe-media, .wdfe-layout-bar_bottom .wdfe-media { width: 42px; flex: none; border-radius: 8px; overflow: hidden; }
.wdfe-layout-bar_top .wdfe-media img, .wdfe-layout-bar_bottom .wdfe-media img { height: 42px; }
.wdfe-layout-bar_top .wdfe-body, .wdfe-layout-bar_bottom .wdfe-body { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.wdfe-layout-bar_top .wdfe-title, .wdfe-layout-bar_bottom .wdfe-title { font-size: 15px; margin: 0; }
.wdfe-layout-bar_top .wdfe-msg, .wdfe-layout-bar_bottom .wdfe-msg { font-size: 14px; }
.wdfe-layout-bar_top .wdfe-label, .wdfe-layout-bar_bottom .wdfe-label { margin: 0; }
.wdfe-layout-bar_top .wdfe-actions, .wdfe-layout-bar_bottom .wdfe-actions { margin: 0; }
.wdfe-layout-bar_top .wdfe-cta, .wdfe-layout-bar_bottom .wdfe-cta { padding: 7px 16px; font-size: 14px; box-shadow: none; }
.wdfe-layout-bar_top .wdfe-store, .wdfe-layout-bar_bottom .wdfe-store { padding: 5px 10px; }
.wdfe-layout-bar_top .wdfe-close, .wdfe-layout-bar_bottom .wdfe-close { top: 50%; margin-top: -16px; inset-inline-end: 12px; }

/* Bars that push the page instead of covering it */
html.wdfe-push-bar_top body { padding-top: var(--wdfe-bar_top, 0px) !important; transition: padding .3s; }
html.wdfe-push-bar_bottom body { padding-bottom: var(--wdfe-bar_bottom, 0px) !important; transition: padding .3s; }

/* ===== Banner / ad image ===== */
.wdfe-banner-link { display: block; line-height: 0; text-decoration: none !important; }
.wdfe-banner-link picture, .wdfe-banner-link img { display: block; width: 100%; height: auto; max-width: 100%; }
.wdfe-type-banner .wdfe-box { padding: 0 !important; overflow: hidden; background: transparent; }
.wdfe-type-banner.wdfe-layout-modal .wdfe-box { width: min(var(--wdfe-width), 100%); }
.wdfe-type-banner.wdfe-layout-modal .wdfe-banner-link img { max-height: calc(100dvh - 32px); object-fit: contain; }
.wdfe-type-banner.wdfe-layout-slide .wdfe-box { display: block; border: 0; }
.wdfe-type-banner.wdfe-layout-bar_top .wdfe-box, .wdfe-type-banner.wdfe-layout-bar_bottom .wdfe-box { display: block; }
.wdfe-type-banner.wdfe-layout-bar_top .wdfe-banner-link img, .wdfe-type-banner.wdfe-layout-bar_bottom .wdfe-banner-link img { max-height: 160px; object-fit: contain; margin: 0 auto; width: auto; }
.wdfe-type-banner.wdfe-layout-bar_top .wdfe-box, .wdfe-type-banner.wdfe-layout-bar_bottom .wdfe-box { background: var(--wdfe-bg); }
.wdfe-type-banner .wdfe-close { background: rgba(0, 0, 0, .55); color: #fff; opacity: 1; width: 26px; height: 26px; padding: 4px; top: 6px; inset-inline-end: 6px; margin-top: 0; }
.wdfe-type-banner .wdfe-close:hover { background: rgba(0, 0, 0, .75); }

/* ===== Animations (initial state; .wdfe-in resets transform) ===== */
.wdfe-anim-zoom .wdfe-box { transform: scale(.85); }
.wdfe-anim-fade .wdfe-box { transform: none; }
.wdfe-anim-slide.wdfe-layout-modal .wdfe-box { transform: translateY(40px); }
.wdfe-anim-slide.wdfe-pos-bottom-right .wdfe-box, .wdfe-anim-slide.wdfe-pos-top-right .wdfe-box { transform: translateX(110%); }
.wdfe-anim-slide.wdfe-pos-bottom-left .wdfe-box, .wdfe-anim-slide.wdfe-pos-top-left .wdfe-box { transform: translateX(-110%); }
.wdfe-anim-slide.wdfe-layout-bar_top .wdfe-box { transform: translateY(-100%); }
.wdfe-anim-slide.wdfe-layout-bar_bottom .wdfe-box { transform: translateY(100%); }
.wdfe-anim-bounce .wdfe-box { transform: translateY(30px) scale(.9); transition-timing-function: cubic-bezier(.34, 1.8, .64, 1); }
.wdfe-layout-slide.wdfe-anim-zoom .wdfe-box, .wdfe-layout-bar_top.wdfe-anim-zoom .wdfe-box, .wdfe-layout-bar_bottom.wdfe-anim-zoom .wdfe-box { transform: scale(.95); }

/* Gentle attention pulse on the icon */
.wdfe-in .wdfe-icon { animation: wdfe-pulse 2.4s ease-in-out .6s infinite; }
@keyframes wdfe-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
	.wdfe-box, .wdfe-overlay { transition: opacity .2s !important; transform: none !important; }
	.wdfe-in .wdfe-icon { animation: none; }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
	.wdfe-layout-slide { left: 10px !important; right: 10px !important; width: auto; }
	.wdfe-pos-bottom-right, .wdfe-pos-bottom-left { bottom: calc(10px + var(--wdfe-bar_bottom, 0px)); }
	.wdfe-pos-top-right, .wdfe-pos-top-left { top: calc(10px + var(--wp-admin--admin-bar--height, 0px) + var(--wdfe-bar_top, 0px)); }
	.wdfe-anim-slide.wdfe-layout-slide[class*="wdfe-pos-bottom"] .wdfe-box { transform: translateY(120%); }
	.wdfe-anim-slide.wdfe-layout-slide[class*="wdfe-pos-top"] .wdfe-box { transform: translateY(-120%); }
	.wdfe-layout-modal .wdfe-box { padding: 28px 18px 20px; }
	.wdfe-layout-modal .wdfe-media { margin: 0 -18px 16px; }
	.wdfe-title { font-size: 18px; }
	.wdfe-layout-bar_top .wdfe-box, .wdfe-layout-bar_bottom .wdfe-box { justify-content: flex-start; padding-block: 10px; }
	.wdfe-layout-bar_top .wdfe-msg, .wdfe-layout-bar_bottom .wdfe-msg { display: none; }
}
