/* =============================================================
   WP CTA Bar — Frontend Styles v2.0
   WorldWin Coder Pvt Ltd | worldwincoder.com
   ============================================================= */

/* ── Wrapper ──────────────────────────────────────────────── */
#wp-cta-bar-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
}

/* Position variants */
#wp-cta-bar-wrap.cta-position-top    { top: 0; left: 0; right: 0; }
#wp-cta-bar-wrap.cta-position-bottom { bottom: 0; left: 0; right: 0; }
#wp-cta-bar-wrap.cta-position-left   { top: 50%; left: 0; right: auto; width: auto; transform: translateY(-50%); writing-mode: vertical-rl; }
#wp-cta-bar-wrap.cta-position-right  { top: 50%; right: 0; left: auto; width: auto; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }

/* Shown after scroll: hide initially */
#wp-cta-bar-wrap.cta-hidden-init {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-110%);
}
#wp-cta-bar-wrap.cta-position-bottom.cta-hidden-init {
	transform: translateY(110%);
}
#wp-cta-bar-wrap.cta-bar-visible {
	opacity: 1 !important;
	pointer-events: all !important;
	transform: translateY(0) !important;
}

/* Dismiss animation */
#wp-cta-bar-wrap.cta-dismissed {
	opacity: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.cta-has-top div.et_pb_sticky--top {
    top: 55px !important;
}

#wp-cta-bar.wp-cta-bar-position-bottom.wp-cta-bar-hidden-initially {
	transform: translateY(100%);
}

#wp-cta-bar {
    top: 0;
    bottom: auto;
    display: none;
}
.cta-slider-dots {
    display: none !important;
}
.cta-has-top div.cta-position-top {
    display: block !important;
}

.cta-position-top.wp-cta-bar-visible.wp-cta-bar-dismissed{
	display: none !important;
}

.cta-slider-dots {
    display: none;
}


/* Body offset (set by JS for fixed top/bottom bars) */
body.cta-has-top    { padding-top: var(--cta-h, 0px); }
body.cta-has-bottom { padding-bottom: var(--cta-h, 0px); }

/* ── Slider ───────────────────────────────────────────────── */
#wp-cta-bar-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* ── Slides ───────────────────────────────────────────────── */
.cta-slide {
	display: none;
	width: 100%;
	box-sizing: border-box;
}
.cta-slide.cta-slide-active { display: flex; align-items: center; justify-content: center; }
.cta-slide-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	max-width: 1200px;
	flex-wrap: wrap;
	padding-right: 36px; /* space for close btn */
}

/* ── Bar Content ─────────────────────────────────────────── */
.cta-bar-content { flex: 1; text-align: center; }
.cta-bar-text { display: inline; }
.cta-bar-text-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: opacity .2s; }
.cta-bar-text-link:hover { opacity: .8; }

/* ── Button ──────────────────────────────────────────────── */
.cta-bar-btn-wrap { flex-shrink: 0; }
.cta-bar-btn {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 6px;
	font-weight: 700;
	font-size: .875em;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity .2s, transform .15s, box-shadow .2s;
	cursor: pointer;
	letter-spacing: .02em;
}
.cta-bar-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.15); text-decoration: none; }

/* ── Close button ────────────────────────────────────────── */
.cta-bar-close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	background: rgba(255,255,255,.2);
	border: none;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: inherit;
	opacity: .8;
	transition: opacity .2s, background .2s, transform .2s;
	padding: 0;
	flex-shrink: 0;
	z-index: 2;
}
.cta-bar-close:hover { opacity: 1; background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.1); }

/* ── Dots ────────────────────────────────────────────────── */
.cta-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 5px 0 4px;
	background: inherit;
}
.cta-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.4);
	cursor: pointer;
	padding: 0;
	transition: transform .25s, background .25s;
}
.cta-dot.active, .cta-dot:hover { background: rgba(255,255,255,.95); transform: scale(1.35); }

/* ======================================================
   ANIMATION: SLIDE (default)
   ====================================================== */
#wp-cta-bar-wrap.cta-anim-slide .cta-slide.cta-slide-active { display: flex; }
#wp-cta-bar-wrap.cta-anim-slide .cta-slide.cta-slide-in-next {
	animation: ctaSlideInFromRight 0.55s cubic-bezier(.25,.46,.45,.94) both;
}
#wp-cta-bar-wrap.cta-anim-slide .cta-slide.cta-slide-out-prev {
	animation: ctaSlideOutToLeft 0.55s cubic-bezier(.25,.46,.45,.94) both;
	position: absolute; top: 0; left: 0; width: 100%;
}
#wp-cta-bar-wrap.cta-anim-slide .cta-slide.cta-slide-in-prev {
	animation: ctaSlideInFromLeft 0.55s cubic-bezier(.25,.46,.45,.94) both;
}
#wp-cta-bar-wrap.cta-anim-slide .cta-slide.cta-slide-out-next {
	animation: ctaSlideOutToRight 0.55s cubic-bezier(.25,.46,.45,.94) both;
	position: absolute; top: 0; left: 0; width: 100%;
}

@keyframes ctaSlideInFromRight  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ctaSlideOutToLeft    { from { transform: translateX(0);    opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }
@keyframes ctaSlideInFromLeft   { from { transform: translateX(-100%);opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ctaSlideOutToRight   { from { transform: translateX(0);    opacity: 1; } to { transform: translateX(100%);  opacity: 0; } }

/* ======================================================
   ANIMATION: FADE
   ====================================================== */
#wp-cta-bar-wrap.cta-anim-fade .cta-slide.cta-slide-in-next,
#wp-cta-bar-wrap.cta-anim-fade .cta-slide.cta-slide-in-prev {
	animation: ctaFadeIn 0.6s ease both;
}
#wp-cta-bar-wrap.cta-anim-fade .cta-slide.cta-slide-out-prev,
#wp-cta-bar-wrap.cta-anim-fade .cta-slide.cta-slide-out-next {
	animation: ctaFadeOut 0.6s ease both;
	position: absolute; top: 0; left: 0; width: 100%;
}
@keyframes ctaFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctaFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ======================================================
   ANIMATION: FLIP
   ====================================================== */
#wp-cta-bar-wrap.cta-anim-flip { perspective: 800px; }
#wp-cta-bar-wrap.cta-anim-flip .cta-slide.cta-slide-in-next,
#wp-cta-bar-wrap.cta-anim-flip .cta-slide.cta-slide-in-prev {
	animation: ctaFlipIn 0.65s cubic-bezier(.25,.46,.45,.94) both;
}
#wp-cta-bar-wrap.cta-anim-flip .cta-slide.cta-slide-out-prev,
#wp-cta-bar-wrap.cta-anim-flip .cta-slide.cta-slide-out-next {
	animation: ctaFlipOut 0.65s cubic-bezier(.25,.46,.45,.94) both;
	position: absolute; top: 0; left: 0; width: 100%;
}
@keyframes ctaFlipIn  { from { transform: rotateX(-90deg); opacity: 0; } to { transform: rotateX(0); opacity: 1; } }
@keyframes ctaFlipOut { from { transform: rotateX(0);      opacity: 1; } to { transform: rotateX(90deg); opacity: 0; } }

/* ======================================================
   ANIMATION: ZOOM
   ====================================================== */
#wp-cta-bar-wrap.cta-anim-zoom .cta-slide.cta-slide-in-next,
#wp-cta-bar-wrap.cta-anim-zoom .cta-slide.cta-slide-in-prev {
	animation: ctaZoomIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
#wp-cta-bar-wrap.cta-anim-zoom .cta-slide.cta-slide-out-prev,
#wp-cta-bar-wrap.cta-anim-zoom .cta-slide.cta-slide-out-next {
	animation: ctaZoomOut 0.45s ease both;
	position: absolute; top: 0; left: 0; width: 100%;
}
@keyframes ctaZoomIn  { from { transform: scale(.7);  opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ctaZoomOut { from { transform: scale(1);   opacity: 1; } to { transform: scale(1.2); opacity: 0; } }

/* Sticky for mobile css */
@media screen and (max-width: 450px) {
	.cta-has-top div.et_pb_sticky--top {
    	top: 65px !important;
	}
}