/* Fancy Buttons — base layout. Presets use :where() so the widget's own style controls always win. */

.fancy-button-wrapper {
	display: flex;
	justify-content: flex-start;
}

.fancy-button {
	--fb-divider-color: currentColor;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	padding: 14px 20px;
	border-radius: 10px;
	color: #fff;
	background-color: var(--e-global-color-primary, #1f6f7b);
	text-decoration: none;
	line-height: 1.2;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

/* Themes often underline links in content areas with stronger selectors; never underline a fancy button. */
.elementor-widget-fancy-button .fancy-button,
.elementor-widget-fancy-button .fancy-button:hover,
.elementor-widget-fancy-button .fancy-button:focus,
.elementor-widget-fancy-button .fancy-button:visited,
.elementor-widget-fancy-button .fancy-button:active,
.elementor-widget-fancy-button .fancy-button * {
	text-decoration: none !important;
}

.fancy-button:focus-visible {
	outline: 3px solid rgba(31, 111, 123, 0.5);
	outline-offset: 3px;
}

/* Icon */
.fancy-button__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15em; /* keeps dividers aligned across stacked buttons */
	font-size: 34px;
	line-height: 1;
	color: inherit;
	transition: color 0.2s ease;
}

.fancy-button__icon i,
.fancy-button__chevron i {
	color: inherit;
}

.fancy-button__icon svg,
.fancy-button__chevron svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Divider */
.fancy-button__divider {
	flex: 0 0 auto;
	width: 1px;
	height: 44px;
	margin: 0 18px;
	background-color: var(--fb-divider-color);
	opacity: 0.45;
}

/* Text */
.fancy-button__text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fancy-button__label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
	margin-bottom: 2px;
	transition: color 0.2s ease;
}

.fancy-button__title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	transition: color 0.2s ease;
}

/* Chevron */
.fancy-button__chevron {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	margin-left: 14px;
	font-size: 18px;
	line-height: 1;
	transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover effects (prefix class on the widget) */
:where(.fancy-btn-hover-lift) .fancy-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

:where(.fancy-btn-hover-nudge, .fancy-btn-hover-glow-nudge) .fancy-button:hover .fancy-button__chevron {
	transform: translateX(4px);
}

:where(.fancy-btn-hover-glow, .fancy-btn-hover-glow-nudge) .fancy-button:hover {
	filter: brightness(1.08);
}

/* Presets. Primary/Secondary read Elementor's Global Colours (Site Settings); the soft sheen works over any colour. */
:where(.fancy-btn-preset-primary, .fancy-btn-preset-secondary) .fancy-button {
	color: #fff;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.1) 100%);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

:where(.fancy-btn-preset-primary) .fancy-button {
	background-color: var(--e-global-color-primary, #1f6f7b);
}

:where(.fancy-btn-preset-secondary) .fancy-button {
	background-color: var(--e-global-color-secondary, #2a3640);
}

:where(.fancy-btn-preset-light) .fancy-button {
	color: #1f2933;
	background: linear-gradient(180deg, #ffffff 0%, #f2f4f6 100%);
	border: 1px solid #d5dbe0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

:where(.fancy-btn-preset-light) .fancy-button__label {
	color: #5b6770;
	opacity: 1;
}

:where(.fancy-btn-preset-dark) .fancy-button {
	color: #fff;
	background: linear-gradient(180deg, #2b3640 0%, #161d23 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
	.fancy-button__title {
		font-size: 21px;
	}

	.fancy-button__icon {
		font-size: 28px;
	}

	.fancy-button__divider {
		margin: 0 14px;
	}
}
