.tp-ytmc,
.tp-ytmc-guide {
	padding-inline: 12px;
	text-align: left;
}

.tp-ytmc [hidden] {
	display: none !important;
}

.tp-ytmc-modes {
	display: grid;
	gap: .3rem;
	padding: .3rem;
	background: #eef2f6;
	border-radius: .75rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block-end: .75rem;
}

.tp-ytmc-modes a,
.tp-ytmc-format span {
	align-content: center;
	font-weight: 700;
	line-height: 1.2;
	min-height: 44px;
	padding: .55rem .3rem;
	text-align: center;
}

.tp-ytmc-modes a {
	border-radius: .5rem;
	color: #172231;
	text-decoration: none;
}

.tp-ytmc-modes a[aria-current] {
	background: #fff;
	box-shadow: 0 1px 3px #17223130;
	color: #195d6a;
}

.tp-ytmc-card section {
	scroll-margin-top: 6rem;
}

.tp-ytmc-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
}

.tp-ytmc label {
	display: block;
	min-width: 0;
}

.tp-ytmc label[for],
.tp-ytmc [data-copy-fallback],
.tp-ytmc #tp-ytmc-country-label,
.tp-ytmc .tp-ytmc-compare-label {
	color: #000;
	font-size: .9em;
}

.tp-ytmc input:not([type="radio"], [type="hidden"]),
.tp-ytmc textarea {
	display: block;
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	margin: .25rem 0 0;
}

.tp-ytmc select,
.tp-ytmc .tp-ytmc-country-picker > summary {
	display: block;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	margin-top: .25rem;
	padding: 8px 36px 8px 10px !important;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	color: #000;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
	line-height: 26px;
	/* Match the Hashtags Generator dropdown arrow. */
	background-image: linear-gradient(45deg, transparent 50%, #000 50%),
		linear-gradient(135deg, #000 50%, transparent 50%);
	background-position: right 17px center, right 5px center;
	background-size: 12px 12px;
	background-repeat: no-repeat;
}

.tp-ytmc select {
	appearance: none;
	cursor: pointer;
}

.tp-ytmc-country-picker {
	position: relative;
	width: 18rem;
	max-width: 100%;
}

.tp-ytmc-country-picker > summary {
	list-style: none;
	overflow-wrap: anywhere;
}

@media (min-width: 768px) {
	.tp-ytmc-country-picker {
		width: 21rem;
	}

	.tp-ytmc-country-picker > summary {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.tp-ytmc-country-picker > summary::-webkit-details-marker,
.tp-ytmc-rate-help > summary::-webkit-details-marker {
	display: none;
}

.tp-ytmc-country-popup,
.tp-ytmc-rate-help > p {
	position: absolute;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.tp-ytmc-country-popup {
	z-index: 2;
	inset: calc(100% + .25rem) 0 auto;
	padding: .5rem;
}

.tp-ytmc .tp-ytmc-country-popup input {
	margin: 0 0 .5rem;
}

.tp-ytmc-country-options {
	max-height: 15rem;
	overflow-y: auto;
	padding: 3px;
}

.tp-ytmc .tp-ytmc-country-options button {
	display: block;
	width: 100%;
	min-height: 2rem;
	padding: .4rem .5rem;
	background: #fff !important;
	color: #333;
	text-align: left;
	font: inherit;
	overflow-wrap: anywhere;
}

.tp-ytmc .tp-ytmc-country-options button:hover,
.tp-ytmc .tp-ytmc-country-options button[aria-pressed="true"] {
	background: #eef2f6 !important;
}

.tp-ytmc-country-options button[aria-pressed="true"] {
	font-weight: 700;
}

.tp-ytmc-country-options button[aria-pressed="true"]::before {
	content: "✓ ";
}

.tp-ytmc select option {
	font-weight: normal;
}

/* Match the theme's text fields for numeric inputs. */
.tp-ytmc input[type="number"] {
	background: #fff;
	border: 2px solid #ccc;
	font: inherit;
	font-size: 14px;
	line-height: 26px;
	padding: 8px 10px;
}

.tp-ytmc-inline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: .25rem;
}

.tp-ytmc-inline input[type="text"] {
	flex: 1 1 15rem;
	margin: 0;
}

.tp-ytmc-lookup button[type="submit"] {
	text-transform: uppercase;
}

.tp-ytmc :is(#youtube-money-by-video, #youtube-money-by-channel):not([hidden]) ~ [data-lookup-status] {
	display: block !important;
	block-size: 2lh;
	line-height: 1.35;
	margin: .25rem 0 0;
	overflow-wrap: anywhere;
	overflow-y: auto;
}

@media (min-width: 768px) {
	.tp-ytmc :is(#youtube-money-by-video, #youtube-money-by-channel):not([hidden]) ~ [data-lookup-status] {
		block-size: 1lh;
	}
}

.tp-ytmc button {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
	min-height: 40px;
	line-height: 1.25;
	padding-block: 8px;
	white-space: normal;
}

.tp-ytmc button:disabled {
	cursor: default;
	opacity: .55;
}

.tp-ytmc [data-model] {
	--tp-ytmc-section-gap: 2.25rem;
}

.tp-ytmc-format {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .5rem;
	box-sizing: border-box;
	border: 0;
	padding: 0;
	min-width: 0;
	width: fit-content;
	max-width: 100%;
	margin: var(--tp-ytmc-section-gap) 0 0;
}

#youtube-money-by-video:not([hidden]) ~ .tp-ytmc-public:not([hidden]) + [data-model] .tp-ytmc-format {
	margin-top: 1rem;
}

.tp-ytmc-format + .tp-ytmc-fields {
	padding-block: var(--tp-ytmc-section-gap);
}

.tp-ytmc-format label {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.tp-ytmc-format input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	clip-path: inset(50%);
}

.tp-ytmc-format span {
	display: block;
	box-sizing: border-box;
	background: #666;
	border: 2px solid transparent;
	border-radius: 4px;
	color: #fff;
	padding-inline: 1rem;
	text-transform: uppercase;
}

.tp-ytmc-format input:checked + span {
	background: #00749f;
}

.tp-ytmc-format input:focus-visible + span {
	outline: 2px solid #00749f;
	outline-offset: 2px;
}

@media (forced-colors: active) {
	.tp-ytmc-format input:checked + span {
		border-color: Highlight;
	}
}

.tp-ytmc-options[data-comparison],
.tp-ytmc-public,
.tp-ytmc-actions {
	margin-top: 1rem;
}

/* Match the Tags Generator results box. */
.tp-ytmc-result-box {
	--tp-ytmc-result-padding: clamp(16px, 4vw, 35px);
	margin: 2rem 0 35px;
	padding: var(--tp-ytmc-result-padding);
	border-radius: 4px;
	background-color: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.tp-ytmc-result-box [data-result-title] {
	padding-block: 0 var(--tp-ytmc-result-padding);
}

.tp-ytmc-result-box:has(> .tp-ytmc-actions[hidden]) {
	display: none;
}

.tp-ytmc-disclosure {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: .75rem 1rem;
	border-radius: 4px;
	background-color: #f4e3c6;
	font-size: .9em;
	font-weight: 700;
}

.tp-ytmc-disclosure > .fa {
	flex: none;
	color: #a65d00;
	font-size: 1.75rem;
	line-height: 1;
}

.tp-ytmc summary,
.tp-ytmc-guide summary {
	cursor: pointer;
	font-weight: bold;
	padding-block: .5rem;
}

.tp-ytmc [data-advanced] > summary {
	padding-block-start: 0;
}

.tp-ytmc-rate-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-top: .25rem;
}

.tp-ytmc .tp-ytmc-rate-row > select {
	min-width: 0;
	margin: 0;
}

.tp-ytmc .tp-ytmc-rate-help > summary {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	list-style: none;
	border-radius: 50%;
	background-color: #e6e6e6;
	color: #333;
}

.tp-ytmc-rate-help > p {
	z-index: 1;
	inset-block-start: calc(100% + .5rem);
	inset-inline-start: 0;
	box-sizing: border-box;
	width: min(24rem, 100%);
	margin: 0;
	padding: .75rem 1rem;
}

.tp-ytmc-options .tp-ytmc-fields,
.tp-ytmc-options [data-impressions] {
	margin-top: .75rem;
}

.tp-ytmc-projections {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
	gap: .75rem;
	margin: 0 0 .75rem;
}

.tp-ytmc-projections > div {
	display: grid;
	align-content: center;
	gap: .25rem;
	padding: .75rem;
	border-radius: 6px;
	background-color: #222;
	box-shadow: 0 0 4px rgba(0, 0, 0, .2);
	color: #fff;
	text-align: center;
}

.tp-ytmc-projections dt {
	color: #ccc;
	font-size: .75rem;
	font-weight: bold;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tp-ytmc-projections dd {
	font-size: 1rem;
	font-weight: bold;
	line-height: 1.25;
	margin: 0;
	overflow-wrap: anywhere;
}

.tp-ytmc-projections .tp-ytmc-typical {
	color: #ddd;
	font-size: .75rem;
	font-weight: 400;
	line-height: inherit;
	text-transform: uppercase;
}

.tp-ytmc-typical-control > p {
	grid-column: 1 / -1;
	margin: 0;
}

.tp-ytmc-public h3,
.tp-ytmc-table th,
.tp-ytmc-table td {
	overflow-wrap: anywhere;
}

.tp-ytmc-table table {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

.tp-ytmc-compare-intro {
	margin: 0;
}

.tp-ytmc label[for="tp-ytmc-compare-niche"] {
	align-self: end;
}

.tp-ytmc-table th,
.tp-ytmc-table td {
	padding: .6rem .4rem;
	vertical-align: middle;
}

.tp-ytmc-table thead th.black {
	color: #000 !important;
}

.tp-ytmc .tp-ytmc-table tbody :is(tr, th, td) {
	border: 0 !important;
}

.tp-ytmc-table tbody th {
	text-transform: none;
}

.tp-ytmc [data-comparison][open] .tp-ytmc-table:not(:empty) {
	padding-bottom: 20px;
}

.tp-ytmc-scenario-niche {
	display: block;
	margin-top: .2em;
	font-weight: 400;
}

.tp-ytmc :focus-visible,
.tp-ytmc-guide summary:focus-visible {
	outline: 2px solid #00749f;
	outline-offset: 2px;
}

.tp-ytmc :is(input, select, textarea, summary):focus {
	outline: none;
	box-shadow: none;
}

.tp-ytmc :is(input, select, textarea, summary):focus-visible {
	background-color: #f5f5f5;
}

@media (forced-colors: active) {
	.tp-ytmc :is(input, select, textarea, summary):focus-visible {
		outline: 2px solid Highlight;
	}
}

@media (max-width: 470px) {
	.tp-ytmc-modes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tp-ytmc-fields {
		grid-template-columns: 1fr;
	}
}
