/**
 * Event Phone CTA front-end styles.
 *
 * The dimensions and interaction states intentionally match the production
 * Shortcoder implementation. All public selectors are plugin-prefixed.
 */

#event-phone-cta.mepcta,
#event-phone-cta.mepcta * {
	box-sizing: border-box;
}

#event-phone-cta.mepcta {
	--mepcta-button-bg: #ff5433;
	--mepcta-button-hover: #e84728;
	--mepcta-button-text: #ffffff;
	--mepcta-focus: #222222;
	--mepcta-top: 0px;
	position: sticky;
	top: var(--mepcta-top);
	z-index: 0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #e8e8e8;
	background: #ffffff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
	color: #222222;
	font-family: YuGothic, "Yu Gothic", sans-serif;
	line-height: 1.4;
}

/*
 * HFE shortcode mode is governed by the existing sticky header wrapper. It
 * must not create a nested sticky layer or rise above the menu (z-index 9).
 */
#event-phone-cta.mepcta[data-mepcta-mode="shortcode"] {
	position: relative;
	top: auto;
	z-index: 0;
}

.mepcta-shortcode-host,
.mepcta-shortcode-container,
.mepcta-shortcode-section,
.mepcta-shortcode-layout-reset {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mepcta-shortcode-hidden,
.mepcta-placeholder {
	display: none !important;
}

#event-phone-cta .mepcta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: min(1100px, calc(100% - 40px));
	min-height: 84px;
	margin: 0 auto;
	padding: 8px 0;
}

#event-phone-cta .mepcta__message {
	margin: 0;
	color: #222222;
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

#event-phone-cta .mepcta__button {
	display: flex;
	flex: 0 0 360px;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 360px;
	max-width: 100%;
	min-height: 64px;
	padding: 8px 24px;
	color: #fff !important;
	color: var(--mepcta-button-text, #fff) !important;
	text-decoration: none !important;
	pointer-events: auto !important;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	background: var(--mepcta-button-bg);
	border: 2px solid var(--mepcta-button-bg);
	border-radius: 12px;
	box-shadow: 0 5px 14px rgba(255, 84, 51, 0.24) !important;
	transition:
		transform 220ms ease,
		background-color 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

#event-phone-cta .mepcta__button:visited {
	color: #fff !important;
	color: var(--mepcta-button-text, #fff) !important;
}

#event-phone-cta .mepcta__button:focus {
	outline: 3px solid var(--mepcta-focus);
	outline-offset: 3px;
}

#event-phone-cta .mepcta__button:focus:not(:focus-visible) {
	outline: none;
}

#event-phone-cta .mepcta__button:focus-visible {
	outline: 3px solid var(--mepcta-focus);
	outline-offset: 3px;
}

#event-phone-cta .mepcta__button:active {
	box-shadow: 0 3px 9px rgba(232, 71, 40, 0.24) !important;
	transform: translateY(0) scale(0.98);
}

#event-phone-cta .mepcta__icon {
	display: block;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	fill: currentColor;
	transform-origin: 50% 50%;
}

#event-phone-cta .mepcta__button-text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1.2;
}

#event-phone-cta .mepcta__label,
#event-phone-cta .mepcta__number {
	display: block;
	margin: 0;
	color: inherit;
	line-height: 1.2;
}

#event-phone-cta .mepcta__label {
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

#event-phone-cta .mepcta__number {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

@keyframes mepcta-phone-ring {
	0%,
	100% {
		transform: rotate(0deg);
	}
	20% {
		transform: rotate(-8deg);
	}
	40% {
		transform: rotate(8deg);
	}
	60% {
		transform: rotate(-6deg);
	}
	80% {
		transform: rotate(6deg);
	}
}

@media (hover: hover) and (pointer: fine) {
	#event-phone-cta .mepcta__button:hover {
		color: #fff !important;
		color: var(--mepcta-button-text, #fff) !important;
		background: var(--mepcta-button-hover);
		border-color: var(--mepcta-button-hover);
		box-shadow: 0 9px 22px rgba(232, 71, 40, 0.32) !important;
		transform: translateY(-2px);
	}

	#event-phone-cta .mepcta__button:hover .mepcta__icon {
		animation: mepcta-phone-ring 460ms ease-in-out 1;
	}
}

@media (max-width: 767px) {
	#event-phone-cta .mepcta__inner {
		width: 100%;
		min-height: 70px;
		padding: 7px 10px;
	}

	#event-phone-cta .mepcta__message {
		display: none;
	}

	#event-phone-cta .mepcta__button {
		flex: none;
		width: 100%;
		min-height: 56px;
		padding: 7px 14px;
		border-radius: 9px;
	}

	#event-phone-cta .mepcta__icon {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
	}

	#event-phone-cta .mepcta__label {
		font-size: 10px;
	}

	#event-phone-cta .mepcta__number {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#event-phone-cta .mepcta__button {
		transition:
			background-color 120ms linear,
			border-color 120ms linear,
			box-shadow 120ms linear;
	}

	#event-phone-cta .mepcta__button:hover,
	#event-phone-cta .mepcta__button:active {
		transform: none;
	}

	#event-phone-cta .mepcta__button .mepcta__icon {
		animation: none !important;
	}
}
