/**
 * Settings screen.
 *
 * Deliberately close to core's own admin styling — the same greys, borders and
 * radii Site Health and the block editor use — so the screen reads as part of
 * WordPress rather than as a plugin with its own look. Colours come from core's
 * admin theme variable where possible, so it follows the user's colour scheme.
 */

.ytsub-settings .ytsub-columns {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 20px;
	align-items: start;
	margin-top: 20px;
	max-width: 1200px;
}

@media screen and ( max-width: 960px ) {
	.ytsub-settings .ytsub-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ytsub-card {
	margin-bottom: 20px;
	padding: 20px 24px 24px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.ytsub-card:last-child {
	margin-bottom: 0;
}

.ytsub-card__title {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.4;
}

.ytsub-card__intro {
	margin: 0 0 16px;
	color: #50575e;
}

.ytsub-field {
	margin-bottom: 20px;
}

.ytsub-field:last-child {
	margin-bottom: 0;
}

.ytsub-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.ytsub-field input[type="text"],
.ytsub-field select {
	max-width: 100%;
}

.ytsub-field .description {
	margin: 6px 0 0;
}

/* Layout, theme and count sit side by side; they are short and related. */
.ytsub-options {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.ytsub-options .ytsub-field {
	margin-bottom: 0;
	min-width: 180px;
}

/* The stand-in button, on a neutral stage so both themes stay readable. */
.ytsub-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	margin-top: 16px;
	padding: 24px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background-color: #f6f7f7;
	background-image:
		linear-gradient( 45deg, #efeff0 25%, transparent 25%, transparent 75%, #efeff0 75% ),
		linear-gradient( 45deg, #efeff0 25%, transparent 25%, transparent 75%, #efeff0 75% );
	background-size: 16px 16px;
	background-position: 0 0, 8px 8px;
}

.ytsub-stage__note {
	margin: 0;
	color: #646970;
	font-style: italic;
}

.ytsub-shortcode {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 8px 0 0;
}

.ytsub-shortcode input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	font-family: Menlo, Consolas, monaco, monospace;
	font-size: 12px;
	background: #f6f7f7;
}

.ytsub-side .ytsub-card p:last-child {
	margin-bottom: 0;
}

.ytsub-steps {
	margin: 0 0 12px;
	padding-left: 20px;
}

.ytsub-steps li {
	margin-bottom: 6px;
}

.ytsub-submit {
	margin: 0;
	padding: 0;
}
