.gcmd-filter-wrap { width: 100%; }
.gcmd-filter-heading { margin: 0 0 16px; padding: 0; color: #222; background: transparent; }
[data-theme="dark"] .gcmd-filter-heading { color: #fff; }

.gcmd-alphabet {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.gcmd-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 6px 10px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	background: #fff;
	color: #222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.gcmd-letter:hover,
.gcmd-letter.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.gcmd-network-widget {
	display: flow-root;
	width: 100%;
	clear: both;
}

[data-theme="dark"] .gcmd-letter {
	background: var(--nav-bg, #181818);
	border-color: rgba(255, 255, 255, .14);
	color: #fff;
}

[data-theme="dark"] .gcmd-letter:hover,
[data-theme="dark"] .gcmd-letter.is-active {
	background: #fff;
	border-color: #fff;
	color: #111;
}

@media (max-width: 480px) {
	.gcmd-alphabet {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 5px;
	}

	.gcmd-letter {
		width: 100%;
		min-width: 0;
		min-height: 34px;
		padding: 5px 2px;
		font-size: 12px;
	}

	.gcmd-letter-all {
		grid-column: span 2;
	}
}


.gcmd-standalone-filter,
.gcmd-directory-grid {
	width: 100%;
	min-width: 0;
}

.gcmd-checkbox-heading {
	margin: 0 0 16px;
	color: #222;
}

.gcmd-checkbox-status {
	font-size: 14px;
	opacity: .7;
}

.gcmd-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gcmd-checkbox-item {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 9px;
	cursor: pointer;
}

.gcmd-checkbox-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.gcmd-checkbox-box {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid #aaa;
	border-radius: 2px;
	background: #fff;
	box-sizing: border-box;
}

.gcmd-checkbox-box::after {
	position: absolute;
	top: 45%;
	left: 50%;
	width: 30%;
	height: 55%;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	content: "";
	opacity: 0;
	transform: translate(-50%, -58%) rotate(45deg);
}

.gcmd-checkbox-input:checked + .gcmd-checkbox-box {
	border-color: #111;
	background: #111;
}

.gcmd-checkbox-input:checked + .gcmd-checkbox-box::after {
	opacity: 1;
}

.gcmd-checkbox-label {
	color: #222;
	line-height: 1.4;
}

.gcmd-checkbox-reset {
	display: inline-flex;
	margin-top: 8px;
	color: inherit;
	text-decoration: underline;
}

[data-theme="dark"] .gcmd-checkbox-heading,
[data-theme="dark"] .gcmd-checkbox-label {
	color: #fff;
}

[data-theme="dark"] .gcmd-checkbox-box {
	border-color: rgba(255,255,255,.35);
	background: var(--nav-bg, #181818);
}

[data-theme="dark"] .gcmd-checkbox-input:checked + .gcmd-checkbox-box {
	border-color: #fff;
	background: #fff;
}

[data-theme="dark"] .gcmd-checkbox-input:checked + .gcmd-checkbox-box::after {
	border-color: #111;
}


.gcmd-checkbox-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	text-decoration: underline;
	cursor: pointer;
	appearance: none;
}

.gcmd-checkbox-count {
	opacity: .65;
}


.gcmd-checkbox-reset {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.gcmd-reset-display-link .gcmd-checkbox-reset {
	border-color: transparent;
	background: transparent;
}

.gcmd-reset-display-button .gcmd-checkbox-reset {
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid #d5d5d5;
	background: #fff;
	text-decoration: none;
}

[data-theme="dark"] .gcmd-reset-display-button .gcmd-checkbox-reset {
	border-color: rgba(255,255,255,.2);
	background: var(--nav-bg, #181818);
	color: #fff;
}


/* Responsive Checkbox-Layout */
.gcmd-checkbox-list {
	min-width: 0;
}

.gcmd-checkbox-item {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.gcmd-checkbox-label {
	min-width: 0;
	overflow-wrap: anywhere;
}


/* Checkbox Layout 0.3.4 – einheitliche, steuerbare Grid-Basis */
.gcmd-checkbox-list {
	--gcmd-checkbox-columns: 1;
	display: grid !important;
	grid-template-columns: repeat(var(--gcmd-checkbox-columns), minmax(0, 1fr)) !important;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.gcmd-checkbox-item {
	display: inline-grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.gcmd-checkbox-reset {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
