/* MusicJet distributor calculator. Colours and fonts follow the site's Elementor globals. */

.mjt-calc,
.mjt-prices {
	--mjt-navy: var(--e-global-color-primary, #1c244b);
	--mjt-navy-hover: #2a3566;
	--mjt-text: var(--e-global-color-text, #324a6d);
	--mjt-accent: var(--e-global-color-accent, #467ff7);
	--mjt-accent-soft: #a9c1f5;
	--mjt-soft: var(--e-global-color-secondary, #f3f5f8);
	--mjt-page: #f9fafd;
	--mjt-line: #c8d5dc;
	--mjt-radius: 12px;
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	color: var(--mjt-text);
	font-size: 16px;
	line-height: 1.5;
}

.mjt-calc *,
.mjt-prices * {
	box-sizing: border-box;
}

/* Layout: side by side only when the calculator's own column is wide enough, whatever the screen size. */

.mjt-calc {
	container-type: inline-size;
}

.mjt-calc__layout {
	display: grid;
	gap: 24px;
}

@container (min-width: 820px) {
	.mjt-calc__layout {
		grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
		align-items: start;
		gap: 32px;
	}

	/* calculator.js sets --mjt-sticky-top to clear any fixed site header. */
	.mjt-calc__form {
		position: sticky;
		top: var(--mjt-sticky-top, 24px);
	}

	.mjt-calc.is-form-too-tall .mjt-calc__form {
		position: static;
	}
}

/* Form */

.mjt-calc__form {
	background: var(--mjt-page);
	border: 1px solid var(--mjt-line);
	border-radius: var(--mjt-radius);
	padding: 20px;
}

.mjt-calc__group {
	border: 0;
	margin: 0 0 20px;
	padding: 0;
	min-width: 0;
}

.mjt-calc__group:last-child {
	margin-bottom: 0;
}

.mjt-calc__group legend {
	font-weight: 600;
	color: var(--mjt-navy);
	margin-bottom: 10px;
	padding: 0;
}

.mjt-calc__row {
	display: grid;
	gap: 12px;
}

.mjt-calc__row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mjt-calc__row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mjt-calc__field {
	margin: 0;
	min-width: 0;
}

.mjt-calc__field[hidden] {
	display: none;
}

.mjt-calc__field label {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.mjt-calc input[type="number"],
.mjt-calc select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	font: inherit;
	color: var(--mjt-navy);
	background: #fff;
	border: 1px solid var(--mjt-line);
	border-radius: 8px;
}

.mjt-calc input[type="number"]:focus-visible,
.mjt-calc select:focus-visible,
.mjt-calc input[type="radio"]:focus-visible,
.mjt-calc input[type="checkbox"]:focus-visible,
.mjt-calc button:focus-visible,
.mjt-calc a:focus-visible {
	outline: 2px solid var(--mjt-accent);
	outline-offset: 2px;
}

.mjt-calc__toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-bottom: 10px;
	font-size: 15px;
}

.mjt-calc__toggle label,
.mjt-calc__check label {
	display: inline-flex;
	gap: 8px;
	align-items: flex-start;
	cursor: pointer;
}

.mjt-calc__toggle input,
.mjt-calc__check input {
	margin-top: 4px;
	accent-color: var(--mjt-navy);
}

.mjt-calc__check {
	margin: 10px 0 0;
	font-size: 15px;
}

.mjt-calc__hint {
	margin: 8px 0 0;
	font-size: 13px;
}

.mjt-calc__hint:empty {
	display: none;
}

#mjt-youtube-field {
	margin-top: 10px;
}

/* Results */

.mjt-calc__results {
	min-width: 0;
	container-type: inline-size;
}

.mjt-res__summary {
	background: var(--mjt-navy);
	color: #fff;
	border-radius: var(--mjt-radius);
	padding: 20px 24px;
	margin-bottom: 16px;
}

.mjt-res__summary p {
	margin: 0;
}

.mjt-res__eyebrow {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.85;
}

.mjt-res__headline {
	font-size: 22px;
	line-height: 1.3;
	margin: 4px 0 8px !important;
}

.mjt-res__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.mjt-res__item {
	background: #fff;
	border: 1px solid var(--mjt-line);
	border-radius: var(--mjt-radius);
	padding: 16px 20px;
	margin: 0;
}

.mjt-res__item.is-best {
	border: 2px solid var(--mjt-accent);
}

.mjt-res__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
}

.mjt-res__rank {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mjt-soft);
	color: var(--mjt-navy);
	font-weight: 600;
	font-size: 15px;
}

.is-best .mjt-res__rank {
	background: var(--mjt-navy);
	color: #fff;
}

.mjt-res__name {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: var(--mjt-navy);
	font-weight: 600;
}

.mjt-res__plan {
	margin: 0;
	font-size: 14px;
}

.mjt-res__total {
	margin: 0;
	text-align: right;
	line-height: 1.2;
}

.mjt-res__total strong {
	display: block;
	font-size: 22px;
	color: var(--mjt-navy);
}

.mjt-res__total span {
	font-size: 13px;
}

.mjt-res__bar {
	display: flex;
	height: 8px;
	margin: 14px 0 10px;
	background: var(--mjt-soft);
	border-radius: 4px;
	overflow: hidden;
}

.mjt-res__seg--fees {
	background: var(--mjt-navy);
}

.mjt-res__seg--commission {
	background: var(--mjt-accent);
}

.mjt-res__seg--youtube {
	background: var(--mjt-accent-soft);
}

.mjt-res__breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0 0 8px;
	font-size: 14px;
}

.mjt-res__breakdown div {
	display: flex;
	gap: 6px;
	align-items: center;
}

.mjt-res__breakdown dt::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 6px;
	background: var(--mjt-navy);
}

.mjt-res__breakdown div:nth-child(2) dt::before {
	background: var(--mjt-accent);
}

.mjt-res__breakdown div:nth-child(3) dt::before {
	background: var(--mjt-accent-soft);
}

.mjt-res__breakdown dd {
	margin: 0;
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-res__facts {
	margin: 0 0 12px;
	padding-left: 18px;
	font-size: 14px;
}

.mjt-res__facts li {
	margin: 0;
}

.mjt-res__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0;
	font-size: 13px;
}

.mjt-res__cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--mjt-navy);
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none !important;
}

.mjt-res__cta:hover {
	background: var(--mjt-navy-hover);
}

.mjt-res__excluded {
	margin: 16px 0 0;
	padding: 12px 16px;
	background: var(--mjt-page);
	border-radius: var(--mjt-radius);
	font-size: 14px;
}

.mjt-res__excluded summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--mjt-navy);
}

.mjt-res__excluded ul {
	margin: 8px 0 0;
	padding-left: 18px;
}

.mjt-res__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 16px 0 0;
}

.mjt-res__copy {
	min-height: 44px;
	padding: 8px 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--mjt-navy);
	background: #fff;
	border: 1px solid var(--mjt-navy);
	border-radius: 8px;
	cursor: pointer;
}

.mjt-res__copy:hover {
	background: var(--mjt-soft);
}

.mjt-res__copied {
	font-size: 14px;
}

.mjt-res__small {
	margin: 12px 0 0;
	font-size: 13px;
}

@container (max-width: 420px) {
	.mjt-calc__form {
		padding: 16px;
	}
}

@container (max-width: 440px) {
	.mjt-res__item {
		padding: 14px 16px;
	}

	.mjt-res__head {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.mjt-res__total {
		grid-column: 1 / -1;
		text-align: left;
		display: flex;
		align-items: baseline;
		gap: 8px;
	}

	.mjt-res__total strong {
		display: inline;
	}
}

/* Price table */

.mjt-prices__distributor {
	margin: 0 0 32px;
}

.mjt-prices__distributor h3 {
	color: var(--mjt-navy);
	margin: 0 0 8px;
}

.mjt-prices__scroll {
	overflow-x: auto;
	border: 1px solid var(--mjt-line);
	border-radius: var(--mjt-radius);
}

.mjt-prices table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
}

.mjt-prices th,
.mjt-prices td {
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid var(--mjt-line);
}

.mjt-prices thead th {
	background: var(--mjt-soft);
	color: var(--mjt-navy);
	font-weight: 600;
}

.mjt-prices tbody tr:last-child th,
.mjt-prices tbody tr:last-child td {
	border-bottom: 0;
}

.mjt-prices tbody th {
	color: var(--mjt-navy);
	font-weight: 600;
}

.mjt-prices__meta {
	margin: 8px 0 0;
	font-size: 13px;
}

/* "Compare all distributors" link under a preset calculator */

.mjt-calc__all {
	margin: 16px 0 0;
	font-size: 15px;
	font-weight: 600;
}

/* Example-artist and free-vs-paid tables */

.mjt-scenarios {
	margin: 0 0 24px;
}

.mjt-scenarios__lead {
	margin: 0 0 12px;
	font-size: 17px;
	color: var(--mjt-navy);
}

.mjt-scenarios tbody th,
.mjt-scenarios td {
	min-width: 150px;
}

.mjt-scenarios td strong,
.mjt-scenarios td span,
.mjt-scenarios__desc {
	display: block;
}

.mjt-scenarios__desc {
	font-weight: 400;
	font-size: 13px;
	color: var(--mjt-text);
	margin-top: 2px;
}

.mjt-scenarios td strong {
	color: var(--mjt-navy);
	font-size: 16px;
}

.mjt-scenarios td.is-cheapest {
	background: #eef3fe;
}

.mjt-scenarios tr.is-base th,
.mjt-scenarios tr.is-base td {
	background: var(--mjt-soft);
}

.mjt-scenarios td.is-unsuitable {
	color: var(--mjt-text);
	font-size: 13px;
}

/* Narrow columns (phones): each table row becomes a card, every value labelled from its column. */

.mjt-prices {
	container-type: inline-size;
}

@container (max-width: 600px) {
	.mjt-prices table {
		min-width: 0;
	}

	.mjt-prices thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.mjt-prices table,
	.mjt-prices tbody,
	.mjt-prices tbody tr,
	.mjt-prices tbody th,
	.mjt-prices td {
		display: block;
		width: auto;
		min-width: 0;
	}

	.mjt-prices tbody tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--mjt-line);
	}

	.mjt-prices tbody tr:last-child {
		border-bottom: 0;
	}

	.mjt-prices tbody th,
	.mjt-prices td {
		border: 0;
		padding: 4px 14px;
	}

	.mjt-prices tbody th {
		padding-bottom: 8px;
	}

	.mjt-prices td {
		display: grid;
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
		gap: 12px;
	}

	.mjt-prices td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--mjt-navy);
	}
}

.mjt-scenarios .mjt-badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--mjt-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
