/* YouTube Views to Money Calculator free tool */
.ml-ymc {
	--ml-ymc-gradient: linear-gradient(135deg, #9647db, #005ff9);
	--ml-ymc-danger: #ef4444;
	--ml-ymc-ink: #0a0a0a;
	--ml-ymc-muted: #7a7a85;
	--ml-ymc-faint: #9090a0;
	--ml-ymc-border: #00000014;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: min(100%, var(--site-width, 1200px));
	margin: 0 auto;
	color: var(--ml-ymc-ink);
	font-family: inherit;
	line-height: 1.6;
	text-align: left;
}

.ml-center-hero .ml-ymc {
	margin-top: 24px;
}

.ml-ymc *,
.ml-ymc *::before,
.ml-ymc *::after {
	box-sizing: border-box;
}

.ml-ymc :is(p, ol, h2, h3) {
	margin: 0;
}

.ml-ymc button {
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	appearance: none;
}

.ml-ymc :is(button, a, input, select):focus-visible {
	outline: 2px solid #005ff961;
	outline-offset: 2px;
}

.ml-ymc svg {
	flex: 0 0 auto;
}

.ml-ymc__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ml-ymc-border);
	border-radius: 28px;
}

/* Inputs */
.ml-ymc__inputs {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 40px 44px;
	border-inline-end: 1px solid var(--ml-ymc-border);
}

.ml-ymc__inputs header {
	margin-bottom: 4px;
}

.ml-ymc .ml-ymc__title {
	color: var(--ml-ymc-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0;
}

.ml-ymc__sub {
	margin-top: 4px;
	color: var(--ml-ymc-faint);
	font-size: 14px;
}

.ml-ymc__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ml-ymc__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ml-ymc__field label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ml-ymc__field :is(select, input) {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 12px 16px;
	color: var(--ml-ymc-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	background-color: #fff;
	border: 1px solid #00000024;
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

.ml-ymc__field select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

.ml-ymc__field input {
	-moz-appearance: textfield;
}

.ml-ymc__field input::-webkit-outer-spin-button,
.ml-ymc__field input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.ml-ymc__field input::placeholder {
	color: var(--ml-ymc-faint);
}

.ml-ymc__field :is(select, input):hover {
	border-color: #9647db59;
}

.ml-ymc__field :is(select, input):focus {
	border-color: #9647db;
	outline: 0;
	box-shadow: 0 0 0 4px #9647db1f;
}

.ml-ymc__field input.is-invalid {
	border-color: var(--ml-ymc-danger);
}

.ml-ymc__field input.is-invalid:focus {
	box-shadow: 0 0 0 4px #ef44441f;
}

.ml-ymc__error {
	color: var(--ml-ymc-danger);
	font-size: 12px;
	line-height: 1.4;
}

.ml-ymc__error:empty {
	display: none;
}

.ml-ymc .ml-ymc__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
	padding: 16px 24px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	background: var(--ml-ymc-gradient);
	border: 0;
	border-radius: 12px;
	transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
}

.ml-ymc .ml-ymc__submit:hover {
	box-shadow: 0 8px 24px #9647db40;
	opacity: 0.94;
	transform: translateY(-1px);
}

.ml-ymc__submit svg {
	width: 20px;
	height: 20px;
}

/* Results */
.ml-ymc__output {
	display: flex;
	flex-direction: column;
	padding: 40px 32px;
	background: #fafafa;
}

.ml-ymc__eyebrow {
	margin-bottom: 8px;
	color: var(--ml-ymc-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ml-ymc__metric {
	padding: 16px 0;
	border-bottom: 1px solid var(--ml-ymc-border);
}

.ml-ymc__metric-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--ml-ymc-faint);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.ml-ymc__metric-label svg {
	width: 16px;
	height: 16px;
}

.ml-ymc__metric-value {
	min-height: 36px;
	color: #9647db;
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
	overflow-wrap: anywhere;
	background: var(--ml-ymc-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.ml-ymc__metric-value.is-muted {
	color: var(--ml-ymc-muted);
	font-size: 24px;
	line-height: 1.5;
	background: none;
	-webkit-background-clip: initial;
	background-clip: initial;
	-webkit-text-fill-color: currentColor;
}

.ml-ymc__metric-sub {
	margin-top: 8px;
	color: var(--ml-ymc-faint);
	font-size: 12px;
	line-height: 1.5;
}

.ml-ymc__metric-sub:empty {
	display: none;
}

.ml-ymc__message {
	margin: 16px 0 24px;
	color: var(--ml-ymc-muted);
	font-size: 14px;
	line-height: 1.5;
}

.ml-ymc__cta {
	margin-top: auto;
	padding: 20px;
	color: #fff;
	background: var(--ml-ymc-gradient);
	border-radius: 16px;
}

.ml-ymc .ml-ymc__cta-title {
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ml-ymc a.ml-ymc__cta-button {
	display: block;
	padding: 12px;
	color: #9647db;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.ml-ymc a.ml-ymc__cta-button:hover {
	color: #9647db;
	background: #ffffffeb;
	box-shadow: 0 6px 20px #00000026;
	transform: translateY(-1px);
}

/* How it works */
.ml-ymc__how {
	margin-top: 48px;
}

.ml-ymc .ml-ymc__how-title {
	margin-bottom: 24px;
	color: var(--ml-ymc-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
}

.ml-ymc .ml-ymc__steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
	counter-reset: ml-ymc-step;
}

.ml-ymc__step {
	margin: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--ml-ymc-border);
	border-radius: 20px;
	counter-increment: ml-ymc-step;
}

.ml-ymc__step::before {
	content: counter(ml-ymc-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 16px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	background: var(--ml-ymc-gradient);
	border-radius: 12px;
}

.ml-ymc .ml-ymc__step h3 {
	margin-bottom: 8px;
	color: var(--ml-ymc-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ml-ymc__step p {
	color: var(--ml-ymc-muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Editor preview: the tool is static there. */
.ml-free-tool-preview {
	pointer-events: none;
}

@media (max-width: 900px) {
	.ml-ymc__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-ymc__inputs {
		border-inline-end: 0;
		border-bottom: 1px solid var(--ml-ymc-border);
	}

	.ml-ymc__output {
		padding: 36px 44px 44px;
	}

	.ml-ymc__cta {
		margin-top: 0;
	}

	.ml-ymc .ml-ymc__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ml-ymc__card {
		border-radius: 20px;
	}

	.ml-ymc__inputs,
	.ml-ymc__output {
		padding: 28px 20px;
	}

	.ml-ymc__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-ymc__metric-value {
		font-size: 32px;
	}

	.ml-ymc__how {
		margin-top: 40px;
	}

	.ml-ymc .ml-ymc__how-title {
		font-size: 24px;
	}

	.ml-ymc .ml-ymc__steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.ml-ymc__step {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ml-ymc *,
	.ml-ymc *::before,
	.ml-ymc *::after {
		transition-duration: 0.01ms !important;
	}
}
