/* Hair Freedom EXPO promo: floating button + bubble popup. Auto-removed via functions.php after the expo date. */

.ewa-expo__fab {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px 12px 14px;
	background: linear-gradient(135deg, #00843D, #006B31);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 180, 0, 0.3);
	cursor: pointer;
	font-family: inherit;
	line-height: 1.2;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ewa-expo__fab:hover,
.ewa-expo__fab:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), 0 0 0 2px rgba(255, 180, 0, 0.5);
}

.ewa-expo__fab.is-pulsing {
	animation: ewaExpoPulse 2s ease-out 1s 3;
}

.ewa-expo__fab-icon {
	display: flex;
	flex-shrink: 0;
	position: relative;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
}

.ewa-expo__fab-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ewa-expo__fab-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
}

.ewa-expo__fab-label {
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}

.ewa-expo__fab-sub {
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #FFB400;
	white-space: nowrap;
}

.ewa-expo__fab-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 12px;
	height: 12px;
	background: #FF5C54;
	border: 2px solid #fff;
	border-radius: 50%;
}

.ewa-expo__fab-badge::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: #FF5C54;
	opacity: 0.65;
	animation: ewaExpoPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ewaExpoPulse {
	0% {
		box-shadow:
			0 4px 16px rgba(0, 0, 0, 0.25),
			0 0 0 0 rgba(0, 132, 61, 0.55),
			0 0 0 0 rgba(255, 180, 0, 0.55),
			0 0 0 0 rgba(218, 24, 15, 0.55);
	}
	70% {
		box-shadow:
			0 4px 16px rgba(0, 0, 0, 0.25),
			0 0 0 10px rgba(0, 132, 61, 0),
			0 0 0 20px rgba(255, 180, 0, 0),
			0 0 0 30px rgba(218, 24, 15, 0);
	}
	100% {
		box-shadow:
			0 4px 16px rgba(0, 0, 0, 0.25),
			0 0 0 0 rgba(0, 132, 61, 0),
			0 0 0 0 rgba(255, 180, 0, 0),
			0 0 0 0 rgba(218, 24, 15, 0);
	}
}

@keyframes ewaExpoPing {
	0% {
		transform: scale(1);
		opacity: 0.65;
	}
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}

.ewa-expo__backdrop {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ewa-expo__popup {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 10000;
	width: 360px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	overflow: hidden;
}

.ewa-expo__popup::before {
	content: "";
	display: block;
	height: 6px;
	background: linear-gradient(90deg, #DA180F, #FFB400, #00843D);
}

.ewa-expo.is-open .ewa-expo__backdrop {
	opacity: 1;
	pointer-events: auto;
}

.ewa-expo.is-open .ewa-expo__popup {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	animation: ewaExpoPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ewaExpoPopIn {
	0% {
		opacity: 0;
		transform: translateY(16px) scale(0.9);
	}
	60% {
		opacity: 1;
		transform: translateY(-4px) scale(1.03);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.ewa-expo.is-open .ewa-expo__fab {
	display: none;
}

.ewa-expo__popup-inner {
	position: relative;
	padding: 28px 24px 24px;
}

.ewa-expo__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #666;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
}

.ewa-expo__close:hover,
.ewa-expo__close:focus-visible {
	background: #f0f0f0;
	color: #111;
}

.ewa-expo__popup h3 {
	margin: 0 0 6px;
	padding-right: 24px;
	font-size: 1.3rem;
	line-height: 1.25;
	color: #111;
}

.ewa-expo__date {
	margin: 0 0 4px;
	font-weight: 600;
	color: #00843D;
	font-size: 0.9rem;
}

.ewa-expo__location {
	margin: 0 0 12px;
	color: #555;
	font-size: 0.85rem;
}

.ewa-expo__copy {
	margin: 0 0 20px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #333;
}

.ewa-expo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ewa-expo__btn {
	flex: 1 1 auto;
	text-align: center;
	padding: 12px 16px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.ewa-expo__btn--primary {
	background: linear-gradient(120deg, #FFB400, #DA180F, #FFB400);
	background-size: 200% 200%;
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(218, 24, 15, 0.35);
	animation: ewaExpoGradientShift 4s ease-in-out infinite;
}

.ewa-expo__btn--primary:hover,
.ewa-expo__btn--primary:focus-visible {
	box-shadow: 0 6px 18px rgba(218, 24, 15, 0.45);
	color: #fff;
}

@keyframes ewaExpoGradientShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.ewa-expo__btn--secondary {
	background: transparent;
	color: #00843D;
	border-color: #00843D;
}

.ewa-expo__btn--secondary:hover,
.ewa-expo__btn--secondary:focus-visible {
	background: #00843D;
	color: #fff;
}

@media (max-width: 767px) {
	.ewa-expo__fab {
		left: 12px;
		bottom: 12px;
		padding: 12px;
		border-radius: 50%;
	}

	.ewa-expo__fab-text {
		display: none;
	}

	.ewa-expo__popup {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
	}

	.ewa-expo.is-open .ewa-expo__popup {
		transform: translateY(0);
		animation: ewaExpoSlideUp 0.35s ease-out;
	}

	.ewa-expo__actions {
		flex-direction: column;
	}
}

@keyframes ewaExpoSlideUp {
	0% {
		transform: translateY(100%);
	}
	100% {
		transform: translateY(0);
	}
}
