/**
 * Boutons Magiques — Contact Simple – Frontend Styles
 *
 * Structural layout and state behaviour only.
 * All visual properties (colors, backgrounds, borders, typography,
 * padding, border-radius) are injected by Elementor's selector system.
 *
 * @package ECB
 */

/* ======================================================
   Wrapper
   ====================================================== */
.bm-contact-wrapper {
	display: block;
}

/* ======================================================
   Button Base (anchor styled as button)
   ====================================================== */
.bm-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	cursor: pointer;
	border: none;
	background-color: var(--e-global-color-accent, #6ec1e4);
	color: #fff;
	font-family: inherit;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition-property: background-color, background, color, border-color, box-shadow, transform;
	transition-timing-function: ease;
	transition-duration: 250ms;
}

/* ── Focus visible ── */
.bm-contact-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ── Disabled state ── */
.bm-contact-btn.bm-disabled {
	cursor: default;
	pointer-events: none;
	opacity: 0.5;
}

/* ======================================================
   Size Presets (defaults — overridable via Elementor)
   ====================================================== */
.bm-size-sm {
	font-size: 0.8125rem;
	padding: 0.4em 0.9em;
	border-radius: 4px;
}

.bm-size-md {
	font-size: 0.9375rem;
	padding: 0.55em 1.25em;
	border-radius: 6px;
}

.bm-size-lg {
	font-size: 1.125rem;
	padding: 0.7em 1.6em;
	border-radius: 8px;
}

/* ======================================================
   Full Width
   ====================================================== */
.bm-full {
	display: flex;
	width: 100%;
}

/* ======================================================
   Inner Layout
   ====================================================== */
.bm-btn-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	pointer-events: none;
}

/* ── Icon position: After (reverse flex) ── */
.bm-icon-after .bm-btn-inner {
	flex-direction: row-reverse;
}

/* ======================================================
   Icon Wrap
   ====================================================== */
.bm-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	line-height: 1;
}

/* Ensure child elements (i, svg, img) inherit size */
.bm-icon-wrap > * {
	width: 1em;
	height: 1em;
	font-size: inherit;
}

/* SVG icons: inherit color */
.bm-icon-wrap svg {
	fill: currentColor;
}

/* ======================================================
   Label
   ====================================================== */
.bm-label {
	pointer-events: none;
}

/* ======================================================
   Prefers Reduced Motion
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
	.bm-contact-btn {
		transition-duration: 0s !important;
	}
}
