#wcag-accessibility-widget {
	position: fixed;
	z-index: 999999;
}

.wcag-widget-bottom-right {
	bottom: 20px;
	right: 20px;
}

.wcag-widget-bottom-left {
	bottom: 20px;
	left: 20px;
}

.wcag-widget-top-right {
	top: 20px;
	right: 20px;
}

.wcag-widget-top-left {
	top: 20px;
	left: 20px;
}

.wcag-widget-toggle {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--wcag-primary-color, #0066cc);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transition: all 0.3s ease;
}

.wcag-widget-toggle svg {
	width: 40px;
	height: 40px;
}

.wcag-widget-toggle:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.wcag-widget-toggle:focus {
	outline: 3px solid var(--wcag-primary-color, #0066cc);
	outline-offset: 3px;
}

.wcag-widget-panel {
	position: absolute;
	bottom: 70px;
	right: 0;
	width: 320px;
	max-height: 80vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.wcag-widget-panel[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.wcag-widget-top-right .wcag-widget-panel,
.wcag-widget-top-left .wcag-widget-panel {
	bottom: auto;
	top: 70px;
}

.wcag-widget-bottom-left .wcag-widget-panel,
.wcag-widget-top-left .wcag-widget-panel {
	right: auto;
	left: 0;
}

.wcag-widget-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 2px solid #f0f0f0;
	background: var(--wcag-primary-color, #0066cc);
	color: #fff;
	border-radius: 12px 12px 0 0;
}

.wcag-widget-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff !important;
}

.wcag-widget-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s;
}

.wcag-widget-close:hover {
	background: rgba(255,255,255,0.2);
}

.wcag-widget-close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.wcag-widget-content {
	padding: 20px;
}

.wcag-widget-section {
	margin-bottom: 25px;
}

.wcag-widget-section h4 {
	margin: 0 0 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcag-widget-controls {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.wcag-control-btn {
	flex: 1;
	padding: 12px 16px;
	background: #f7f7f7;
	border: 2px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.2s;
	color: #333;
}

.wcag-control-btn:hover {
	background: #e8e8e8;
	border-color: var(--wcag-primary-color, #0066cc);
}

.wcag-control-btn:focus {
	outline: 3px solid var(--wcag-primary-color, #0066cc);
	outline-offset: 2px;
}

.wcag-control-btn:active {
	transform: scale(0.95);
}

.wcag-widget-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wcag-option {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	background: #f7f7f7;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
}

.wcag-option:hover {
	background: #e8e8e8;
}

.wcag-option input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin-right: 12px;
	cursor: pointer;
	accent-color: var(--wcag-primary-color, #0066cc);
}

.wcag-option span {
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

.wcag-reset-btn {
	width: 100%;
	padding: 14px 20px;
	background: #f44336;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcag-reset-btn:hover {
	background: #d32f2f;
}

.wcag-reset-btn:focus {
	outline: 3px solid #f44336;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.wcag-widget-panel {
		width: calc(100vw - 40px);
		max-width: 320px;
	}
	
	.wcag-widget-bottom-right .wcag-widget-panel {
		right: 10px;
	}
	
	.wcag-widget-bottom-left .wcag-widget-panel {
		left: 10px;
		right: auto;
	}
	
	.wcag-widget-top-right .wcag-widget-panel {
		right: 10px;
	}
	
	.wcag-widget-top-left .wcag-widget-panel {
		left: 10px;
		right: auto;
	}
	
	.wcag-widget-toggle {
		width: 56px;
		height: 56px;
	}
	
	.wcag-widget-toggle svg {
		width: 26px;
		height: 26px;
	}
}
