#accessibility-toolbar {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  background: #eee;
  max-width: 128px;
  padding: 6px;
  z-index: 10000;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  padding-right: 12px;
  margin-top: -103.5px;
}

#accessibility-toolbar button,
#accessibility-toolbar .acc-skip {
  margin: 4px 4px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  width: 100%;
}

.acc-skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.acc-skip:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 6px;
  background: #000;
  color: #fff;
  z-index: 10001;
}

/*
.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
  text-decoration: underline !important;
}
*/

body.high-contrast *:focus,
body.high-contrast *:focus-visible {
  outline: 2px solid yellow !important;
  outline-offset: 2px;
}

body.high-contrast svg path {
  fill: #fff;
}

body.high-contrast svg tspan {
  fill: #fff;
}

body.high-contrast svg text {
  fill: #000;
}


.underline-links a {
  text-decoration: underline !important;
}

button:focus, a:focus {
  outline: 3px solid #f90;
  outline-offset: 2px;
}

@media (max-width: 1280px) {
    #accessibility-toolbar {
        top: inherit;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        font-size: 15px;
        box-shadow: 0 -2px 4px rgba(0,0,0,0.15);
        padding: 8px 4px;
        display: flex;
        margin-top: 0px;
    }

    #accessibility-toolbar button,
    #accessibility-toolbar .acc-skip {
        font-size: 13px;
        padding: 6px 10px;
        margin: 3px 2px;
        width: inherit;
        max-width: 70px;
        display: inline-block;
    }
}

body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

body.high-contrast .sanweb-label {
  color: #000;
  background: #fff;
}

/* Tekst białe */
body.high-contrast, 
body.high-contrast p,
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4, body.high-contrast h5, body.high-contrast h6,
body.high-contrast span,
body.high-contrast li,
body.high-contrast a,
body.high-contrast div,
body.high-contrast label {
  color: #fff !important;
}

/* Tła czarne wszędzie */
body.high-contrast * {
  background-color: #000 !important;
}

/* Przyciski i linki stylizowane na przyciski mają białe tło i czarny tekst */
body.high-contrast button,
body.high-contrast .btn,
body.high-contrast input[type="button"],
body.high-contrast input[type="submit"],
body.high-contrast a.btn {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

/* Linki (nie-przyciski) zostają białe na czarnym tle */
body.high-contrast a:not(.btn) {
  color: #fff !important;
  background-color: transparent !important;
  border: none !important;
}
