/* Theme Picker */
.aw-theme-picker {
	display: flex;
	gap: 12px;
	align-items: center;
	background: #f6f8fa;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #d0d7de;
}
body:not(.graphiql-light) .aw-theme-picker {
	background: #161b22;
	border-color: #30363d;
}

.aw-theme-option {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.aw-theme-option.disabled-option {
	opacity: 0.5;
	cursor: not-allowed;
}
/* Hide the actual radio input */
.aw-theme-option input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.aw-theme-circle {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
	position: relative;
	transition: transform 0.1s;
}

/* Radio Checked State */
.aw-theme-option input:checked + .aw-theme-circle {
	transform: scale(1.1);
	/* White ring for contrast */
	box-shadow:
		0 0 0 2px white,
		0 0 0 4px hsl(var(--theme-color));
}
body:not(.graphiql-light) .aw-theme-option input:checked + .aw-theme-circle {
	box-shadow:
		0 0 0 2px #1e2125,
		0 0 0 4px hsl(var(--theme-color));
}

/* Inner white dot for selected */
.aw-theme-check {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
	opacity: 0;
	transition: opacity 0.2s;
}
.aw-theme-option input:checked + .aw-theme-circle .aw-theme-check {
	opacity: 1;
}

/* Features List */
.aw-dialog-separator {
	display: flex;
	align-items: center;
	border-top: 1px solid #d0d7de;
	margin-top: 5px;
	position: relative;
}
body:not(.graphiql-light) .aw-dialog-separator {
	border-color: #30363d;
}

.aw-dialog-separator span {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	padding: 0 10px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #57606a;
	text-transform: uppercase;
}
body:not(.graphiql-light) .aw-dialog-separator span {
	background: #1e2125;
	color: #8b949e;
}

.aw-features-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aw-feature-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.95rem;
	cursor: pointer;
	user-select: none;
}
.aw-feature-label {
	font-weight: 500;
}

/* Toggle Switch */
.aw-toggle-switch {
	position: relative;
	width: 44px;
	height: 24px;
}
.aw-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
.aw-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #afb8c1;
	transition: 0.2s;
	border-radius: 24px;
}
body:not(.graphiql-light) .aw-toggle-slider {
	background-color: #6e7681;
}

.aw-toggle-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.2s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.aw-toggle-switch input:checked + .aw-toggle-slider {
	background-color: hsl(var(--color-primary));
}
.aw-toggle-switch input:checked + .aw-toggle-slider:before {
	transform: translateX(20px);
}
