/* Akuna Popup - frontend styles */

.akuna-popup {
	--akuna-duration: 0.4s;
	--akuna-easing: cubic-bezier(0.16, 1, 0.3, 1);
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	pointer-events: none;
	/* Keep the popup fully hidden (and non-interactive) until it's shown,
	   but delay the visibility flip on the way OUT so the opacity/transform
	   transitions below get time to finish instead of snapping away. */
	transition: visibility 0s linear var(--akuna-duration);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.akuna-popup.is-visible {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.akuna-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 21, 0.55);
	opacity: 0;
	transition: opacity var(--akuna-duration) var(--akuna-easing);
}

.akuna-popup.is-visible .akuna-popup__overlay {
	opacity: 1;
}

.akuna-popup__box {
	position: absolute;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
}

/* ---------- Exit-intent / tab-switch / modal: centered, two columns side by side ---------- */
.akuna-popup--exit_intent .akuna-popup__box,
.akuna-popup--tab_switch .akuna-popup__box,
.akuna-popup--both.akuna-popup--as-modal .akuna-popup__box {
	top: 50%;
	left: 50%;
	flex-direction: row;
	align-items: stretch;
	width: calc(100% - 32px);
	max-width: 900px;
	transform: translate(-50%, -46%) scale(0.97);
	opacity: 0;
	transition: opacity var(--akuna-duration) var(--akuna-easing), transform var(--akuna-duration) var(--akuna-easing);
}

.akuna-popup--exit_intent.is-visible .akuna-popup__box,
.akuna-popup--tab_switch.is-visible .akuna-popup__box,
.akuna-popup--both.akuna-popup--as-modal.is-visible .akuna-popup__box {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.akuna-popup--exit_intent .akuna-popup__media,
.akuna-popup--tab_switch .akuna-popup__media,
.akuna-popup--both.akuna-popup--as-modal .akuna-popup__media {
	flex: 0 0 42%;
	max-width: 42%;
}

/* ---------- Slide-in: bottom-right corner, stacked, non-blocking ---------- */
.akuna-popup--slide_in .akuna-popup__overlay,
.akuna-popup--both:not(.akuna-popup--as-modal) .akuna-popup__overlay {
	display: none;
}

.akuna-popup--slide_in .akuna-popup__box,
.akuna-popup--both:not(.akuna-popup--as-modal) .akuna-popup__box {
	top: auto;
	left: auto;
	right: 20px;
	bottom: -100%;
	flex-direction: column;
	width: calc(100% - 32px);
	max-width: 380px;
	opacity: 0;
	transition: bottom var(--akuna-duration) var(--akuna-easing), opacity var(--akuna-duration) var(--akuna-easing);
}

.akuna-popup--slide_in.is-visible .akuna-popup__box,
.akuna-popup--both:not(.akuna-popup--as-modal).is-visible .akuna-popup__box {
	bottom: 20px;
	opacity: 1;
}

.akuna-popup--slide_in .akuna-popup__media,
.akuna-popup--both:not(.akuna-popup--as-modal) .akuna-popup__media {
	max-height: 140px;
}

/* ---------- Media column ---------- */
.akuna-popup__media {
	flex-shrink: 0;
	overflow: hidden;
}

.akuna-popup__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.akuna-popup--no-image .akuna-popup__media {
	display: none;
}

/* ---------- Content column ---------- */
.akuna-popup__panel {
	flex: 1 1 auto;
	min-width: 0;
	padding: 34px 32px 28px;
	box-sizing: border-box;
	max-height: 88vh;
	overflow-y: auto;
}

.akuna-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.akuna-popup__close:hover {
	background: #fff;
	color: #000;
}

.akuna-popup__headline {
	margin: 0;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	color: #14251c;
}

.akuna-popup__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

.akuna-popup__body p {
	margin: 0 0 12px;
}

.akuna-popup__body p:last-child {
	margin-bottom: 0;
}

.akuna-popup__body strong,
.akuna-popup__body b {
	font-weight: 700;
}

.akuna-popup__form-wrap {
	margin-top: 4px;
}

/* Light-touch resets so third-party form plugins (Gravity Forms, WPForms,
   Contact Form 7, etc.) sit flush inside the panel without their own
   theme spacing fighting the popup layout. */
.akuna-popup__form-wrap form {
	margin: 0;
}

.akuna-popup__form-wrap input[type="text"],
.akuna-popup__form-wrap input[type="email"],
.akuna-popup__form-wrap input[type="tel"],
.akuna-popup__form-wrap textarea,
.akuna-popup__form-wrap select {
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 700px) {
	.akuna-popup--exit_intent .akuna-popup__box,
	.akuna-popup--tab_switch .akuna-popup__box,
	.akuna-popup--both.akuna-popup--as-modal .akuna-popup__box {
		flex-direction: column;
		max-width: 440px;
		max-height: 92vh;
		overflow-y: auto;
	}

	.akuna-popup--exit_intent .akuna-popup__media,
	.akuna-popup--tab_switch .akuna-popup__media,
	.akuna-popup--both.akuna-popup--as-modal .akuna-popup__media {
		max-width: 100%;
		max-height: 160px;
	}

	.akuna-popup__panel {
		padding: 28px 20px 22px;
		max-height: none;
		overflow-y: visible;
	}

	.akuna-popup__headline {
		font-size: 22px !important;
	}
}

@media (max-width: 480px) {
	.akuna-popup--slide_in .akuna-popup__box,
	.akuna-popup--both:not(.akuna-popup--as-modal) .akuna-popup__box {
		right: 8px;
		left: 8px;
		width: auto;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.akuna-popup {
		/* Overriding the custom property cascades into every rule above
		   that reads it (fade, slide, and the visibility hide-delay). */
		--akuna-duration: 0.01ms;
	}
}
