.videm-theme-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
	gap: 10px;
	max-width: 900px;
	margin: 0;
	padding: 0;
}

.videm-theme-choice {
	position: relative;
	cursor: pointer;
}

.videm-theme-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.videm-theme-card {
	display: block;
	overflow: hidden;
	border: 2px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
}

.videm-theme-choice input:checked + .videm-theme-card {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.videm-theme-choice input:focus-visible + .videm-theme-card {
	outline: 2px solid #2271b1;
	outline-offset: 3px;
}

.videm-theme-previews {
	display: flex;
	direction: ltr;
}

.videm-theme-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50%;
	height: 38px;
}

.videm-theme-preview::after {
	content: '';
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--videm-preview);
	border: 1px solid rgb(0 0 0 / 18%);
}

.videm-theme-preview-light { background: #fff; }
.videm-theme-preview-dark { background: #18181b; }
.videm-theme-preview-dark::after { border-color: rgb(255 255 255 / 24%); }

.videm-theme-name {
	display: block;
	padding: 7px 5px;
	text-align: center;
	font-weight: 600;
}

/* Tabbed settings layout */
.videm-settings .videm-nav-tabs {
	margin-bottom: 0;
}

.videm-settings .videm-tab-panel {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 4px 20px 20px;
}

.videm-settings .videm-tab-panel > form > h2:first-child {
	margin-top: 10px;
}

.videm-identity-key-hidden {
	display: none;
}
