#wyac-root {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.35;
	color: #172033;
}

#wyac-root.wyac-theme-dark { color: #f5f7fb; }

#wyac-root .wyac-banner {
	position: fixed;
	z-index: 999999;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 12px 16px;
	background: #fff;
	color: #172033;
	box-shadow: 0 -4px 24px #0002;
}

#wyac-root.wyac-theme-dark .wyac-banner,
#wyac-root.wyac-theme-dark .wyac-dialog { background: #18202e; color: #f5f7fb; }
#wyac-root .wyac-copy { min-width: 0; margin: 0; padding: 0; }

#wyac-root .wyac-copy h2,
#wyac-root .wyac-dialog h2 {
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 17px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

#wyac-root .wyac-copy p,
#wyac-root .wyac-category p {
	margin: 0 !important;
	padding: 0 !important;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 400 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

#wyac-root .wyac-copy a,
#wyac-root .wyac-legal a { color: inherit; font: inherit; text-decoration: underline; }
#wyac-root .wyac-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0; }

#wyac-root .wyac-actions button,
#wyac-root .wyac-save,
.wyac-open-preferences {
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #667085;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
}

#wyac-root .wyac-primary { border-color: var(--wyac-primary) !important; background: var(--wyac-primary) !important; color: var(--wyac-primary-text) !important; }
#wyac-root .wyac-secondary { border-color: transparent !important; text-decoration: underline; }
#wyac-root .wyac-dialog-wrap { position: fixed; z-index: 1000000; inset: 0; display: grid; place-items: center; padding: 16px; background: #0007; }
#wyac-root .wyac-dialog { position: relative; box-sizing: border-box; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 12px; background: #fff; color: #172033; box-shadow: 0 12px 50px #0005; }
#wyac-root .wyac-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: inherit; font-size: 28px !important; line-height: 1 !important; cursor: pointer; }
#wyac-root .wyac-category { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 0; border-top: 1px solid #9995; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.35; }
#wyac-root .wyac-description { display: block; margin-top: 3px; font-size: 13px; }
#wyac-root .wyac-category input { position: absolute; opacity: 0; }
#wyac-root .wyac-switch { position: relative; width: 44px; height: 24px; border-radius: 20px; background: #79808d; flex: 0 0 auto; }
#wyac-root .wyac-switch::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; content: ""; transition: transform 0.15s; }
#wyac-root .wyac-category input:checked + .wyac-switch { background: var(--wyac-primary); }
#wyac-root .wyac-category input:checked + .wyac-switch::after { transform: translateX(20px); }
#wyac-root .wyac-save { width: 100%; margin-top: 8px; }
#wyac-root .wyac-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; font-size: 12px; }
#wyac-root .wyac-error { color: #b42318; font-size: 13px; }
.wyac-open-preferences { min-height: auto; padding: 0; border: 0; background: none; text-decoration: underline; }
#wyac-root .wyac-actions button:focus-visible,
#wyac-root .wyac-dialog button:focus-visible,
#wyac-root .wyac-dialog input:focus-visible + .wyac-switch,
.wyac-open-preferences:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
[hidden] { display: none !important; }

@media (max-width: 680px) {
	#wyac-root .wyac-banner { display: block; padding: 8px 10px; }
	#wyac-root .wyac-copy h2 { margin-bottom: 2px !important; font-size: 14px !important; line-height: 1.15 !important; }
	#wyac-root .wyac-copy p { font-size: 11px !important; line-height: 1.3 !important; }
	#wyac-root .wyac-actions { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin-top: 6px; }
	#wyac-root .wyac-actions button { width: 100%; min-width: 0; min-height: 42px; padding: 6px; font-size: 12px !important; }
	#wyac-root .wyac-dialog { padding: 20px 16px; }
	#wyac-root .wyac-category { padding: 11px 0; }
}

@media (max-width: 360px) {
	#wyac-root .wyac-copy p { font-size: 10.5px !important; }
	#wyac-root .wyac-actions button { font-size: 11px !important; }
}
