#wcag-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #222;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
  z-index: 9999;
  transition: background 0.2s;
}
#wcag-widget:focus, #wcag-widget:hover {
  outline: 2px solid #ffd600;
  background: #444;
}
#wcag-panel {
  position: fixed;
  bottom: 100px;
  right: 40px;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  color: #222;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  padding: 24px 18px 18px 18px;
  z-index: 10000;
  font-family: system-ui, Arial, sans-serif;
  animation: fadein 0.2s;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(40px);}
  to   { opacity: 1; transform: translateY(0);}
}
.wcag-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}
#wcag-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0 6px;
}
#wcag-close:focus, #wcag-close:hover {
  background: #ffd600;
  color: #111;
  outline: 2px solid #222;
}
.wcag-panel-body > * { margin-bottom: 12px; }
.wcag-fontsize button {
  background: #f3f3f3;
  border: 1px solid #bbb;
  color: #333;
  border-radius: 6px;
  padding: 4px 10px;
  margin: 0 2px;
  font-size: 1.15rem;
  cursor: pointer;
}
.wcag-fontsize button:focus, .wcag-fontsize button:hover {
  background: #ffd600;
  color: #111;
  border-color: #ffd600;
}
#toggle-contrast {
  width: 100%;
  background: #222;
  color: #fff;
  border: none;
  padding: 7px 0;
  margin-top: 2px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}
#toggle-contrast:focus, #toggle-contrast:hover {
  background: #ffd600;
  color: #111;
}
.wcag-anim label,
.wcag-anim input {
  cursor: pointer;
}
.skip-to-content {
  display: inline-block;
  background: #ffd600;
  color: #222;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.skip-to-content:focus, .skip-to-content:hover {
  background: #222;
  color: #ffd600;
}
/* Kontrast wysoki */
body.wcag-high-contrast,
body.wcag-high-contrast * {
  background: #111 !important;
  color: #ffe600 !important;
  border-color: #ffe600 !important;
  box-shadow: none !important;
}
/* Wyłącz animacje */
body.wcag-no-anim *,
body.wcag-no-anim *:before,
body.wcag-no-anim *:after {
  animation: none !important;
  transition: none !important;
}
