/**
 * MeTimeOnTime — TM Button overrides (All Natural design system).
 * Targets Elementor Advanced Button: .tm-button-link.tm-button.style-flat.tm-button-nm
 */

:root {
	--mto-btn-font: "Inter", system-ui, -apple-system, sans-serif;
	--mto-btn-radius: 3px;
	--mto-btn-accent: #ff8800;
	--mto-btn-bg: #000000;
	--mto-btn-text: #ffffff;
	--mto-btn-border: #000000;
	--mto-btn-muted-bg: #f5f5f5;
	--mto-btn-transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.tm-button-link.tm-button,
a.tm-button,
div.tm-button {
	font-family: var(--mto-btn-font);
	text-transform: none;
	letter-spacing: -0.02em;
	-webkit-transform: none;
	transform: none;
}

.tm-button .button-content-wrapper {
	position: relative;
	z-index: 1;
}

/* —— Flat (filled) —— */
a.tm-button.style-flat,
div.tm-button.style-flat {
	position: relative;
	border-radius: var(--mto-btn-radius);
	background-color: var(--mto-btn-bg);
	color: var(--mto-btn-text);
	border: 1px solid var(--mto-btn-bg);
	transition: var(--mto-btn-transition);
	overflow: hidden;
}

a.tm-button.style-flat::before,
a.tm-button.style-flat::after,
div.tm-button.style-flat::before,
div.tm-button.style-flat::after,
.makeaholic-box:hover div.tm-button.style-flat::before,
.makeaholic-box:hover div.tm-button.style-flat::after,
a.tm-button.style-flat:hover::before,
a.tm-button.style-flat:hover::after,
div.tm-button.style-flat:hover::before,
div.tm-button.style-flat:hover::after {
	display: none !important;
	content: none !important;
	opacity: 0 !important;
	-webkit-transform: none !important;
	transform: none !important;
}

a.tm-button.style-flat:hover,
a.tm-button.style-flat:focus,
div.tm-button.style-flat:hover,
.makeaholic-box:hover div.tm-button.style-flat {
	background-color: var(--mto-btn-accent);
	border-color: var(--mto-btn-accent);
	color: var(--mto-btn-text);
}

a.tm-button.style-flat.tm-button-nm,
div.tm-button.style-flat.tm-button-nm {
	padding: 10px 24px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

a.tm-button.style-flat.tm-button-lg,
div.tm-button.style-flat.tm-button-lg {
	padding: 12px 28px;
	min-height: 48px;
	font-size: 15px;
}

a.tm-button.style-flat.tm-button-sm,
div.tm-button.style-flat.tm-button-sm {
	padding: 8px 20px;
	min-height: 40px;
	font-size: 13px;
}

a.tm-button.style-flat.tm-button-xs,
div.tm-button.style-flat.tm-button-xs {
	padding: 6px 16px;
	min-height: 36px;
	font-size: 12px;
}

a.tm-button.style-flat.button-black,
div.tm-button.style-flat.button-black {
	background-color: var(--mto-btn-bg);
	border-color: var(--mto-btn-bg);
	color: var(--mto-btn-text);
}

a.tm-button.style-flat.button-alt,
div.tm-button.style-flat.button-alt {
	background-color: var(--mto-btn-muted-bg);
	border-color: var(--mto-btn-muted-bg);
	color: var(--mto-btn-bg);
}

a.tm-button.style-flat.button-alt:hover,
a.tm-button.style-flat.button-alt:focus,
div.tm-button.style-flat.button-alt:hover,
.makeaholic-box:hover div.tm-button.style-flat.button-alt {
	background-color: var(--mto-btn-bg);
	border-color: var(--mto-btn-bg);
	color: var(--mto-btn-text);
}

/* —— Border / outline —— */
a.tm-button.style-border,
a.tm-button.style-thick-border,
div.tm-button.style-border,
div.tm-button.style-thick-border {
	position: relative;
	border-radius: var(--mto-btn-radius);
	background-color: transparent !important;
	border-color: var(--mto-btn-border);
	color: var(--mto-btn-bg);
	transition: var(--mto-btn-transition);
}

a.tm-button.style-thick-border,
div.tm-button.style-thick-border {
	border-width: 2px;
}

a.tm-button.style-border::before,
a.tm-button.style-border::after,
a.tm-button.style-thick-border::before,
a.tm-button.style-thick-border::after,
div.tm-button.style-border::before,
div.tm-button.style-border::after,
div.tm-button.style-thick-border::before,
div.tm-button.style-thick-border::after,
.makeaholic-box:hover div.tm-button.style-border::before,
.makeaholic-box:hover div.tm-button.style-border::after,
.makeaholic-box:hover div.tm-button.style-thick-border::before,
.makeaholic-box:hover div.tm-button.style-thick-border::after,
a.tm-button.style-border:hover::before,
a.tm-button.style-border:hover::after,
a.tm-button.style-thick-border:hover::before,
a.tm-button.style-thick-border:hover::after {
	display: none !important;
	content: none !important;
	opacity: 0 !important;
}

a.tm-button.style-border:hover,
a.tm-button.style-border:focus,
a.tm-button.style-thick-border:hover,
a.tm-button.style-thick-border:focus,
div.tm-button.style-border:hover,
div.tm-button.style-thick-border:hover,
.makeaholic-box:hover div.tm-button.style-border,
.makeaholic-box:hover div.tm-button.style-thick-border {
	background-color: var(--mto-btn-bg) !important;
	border-color: var(--mto-btn-bg);
	color: var(--mto-btn-text);
}

a.tm-button.style-border.tm-button-nm,
a.tm-button.style-thick-border.tm-button-nm,
div.tm-button.style-border.tm-button-nm,
div.tm-button.style-thick-border.tm-button-nm {
	padding: 10px 24px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 500;
}

/* —— Text / line styles —— */
a.tm-button.style-text,
div.tm-button.style-text {
	padding: 6px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--mto-btn-bg);
}

a.tm-button.style-text:hover,
a.tm-button.style-text:focus,
div.tm-button.style-text:hover {
	color: var(--mto-btn-accent);
}

a.tm-button.style-bottom-line .button-content-wrapper::before,
a.tm-button.style-bottom-line .button-content-wrapper::after,
a.tm-button.style-left-line .button-content-wrapper::before,
a.tm-button.style-left-line .button-content-wrapper::after {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* —— Icons —— */
.tm-button.icon-left .button-icon {
	margin-right: 10px;
}

.tm-button.icon-right .button-icon {
	margin-left: 10px;
}

.tm-button .button-icon {
	font-size: 16px;
}
