.pswcag-top-left {
  top: 20px;
  left: 20px;
}

.pswcag-top-right {
  top: 20px;
  right: 20px;
}

.pswcag-bottom-left {
  bottom: 20px;
  left: 20px;
}

.pswcag-bottom-right {
  bottom: 20px;
  right: 20px;
}

#pswcag-widget {
  position: fixed;
  z-index: 9999;
  font-family: 'Segoe UI', sans-serif;
}

#pswcag-toggle {
  position: relative;
  background: var(--pswcag-button-color, #0073aa);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pswcag-toggle:hover {
  background: var(--pswcag-button-hover-color, #005f8d);
}

#pswcag-toggle i {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

#pswcag-menu {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #c3c3c3;
  box-shadow: 0 0 0 2px #d0d0d0, 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 360px;
  font-size: 16px;
  max-height: 85vh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.pswcag-top-left #pswcag-menu {
  top: 100%;
  left: 0;
  transform-origin: top left;
  margin-top: 12px;
}

.pswcag-top-right #pswcag-menu {
  top: 100%;
  right: 0;
  transform-origin: top right;
  margin-top: 12px;
}

.pswcag-bottom-left #pswcag-menu {
  bottom: 100%;
  left: 0;
  transform-origin: bottom left;
  margin-bottom: 12px;
}

.pswcag-bottom-right #pswcag-menu {
  bottom: 100%;
  right: 0;
  transform-origin: bottom right;
  margin-bottom: 12px;
}

.pswcag-header {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--pswcag-menu-color, #0073aa);
}

.pswcag-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pswcag-btn.pswcag-big {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: var(--pswcag-button-color, #0073aa);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pswcag-btn.pswcag-big:hover {
  background: var(--pswcag-button-hover-color, #005f8d);
}

.pswcag-btn.pswcag-big i {
  font-size: 1.5rem;
  color: #fff;
}

.pswcag-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.pswcag-btn-icon {
  background: transparent;
  border: none;
  color: var(--pswcag-menu-color, #0073aa);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  transition: color 0.2s;
}

.pswcag-btn-icon:hover {
  color: var(--pswcag-button-hover-color, #005f8d);
}

.pswcag-btn.pswcag-big.pswcag-active {
  background: var(--pswcag-button-active-color, #004b73);
  box-shadow: 0 0 0 3px var(--pswcag-button-hover-color, #005f8d) inset;
  color: #fff;
}

.pswcag-btn.pswcag-big.pswcag-active i {
  color: #fff;
}

button:focus {
  outline: 2px solid var(--pswcag-button-hover-color, #005f8d);
  outline-offset: 2px;
}


@media (max-width: 768px) {
  #pswcag-menu {
    min-width: 90vw;
    max-width: 90vw;
    font-size: 17px;
  }

  #pswcag-toggle {
    font-size: 2.2rem;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Functions */
html.pswcag-contrast {
  filter: contrast(125%) !important;
}
html.pswcag-contrast *{
  color: #000 !important;
}

html.pswcag-grayscale {
  filter: grayscale(100%) !important;
}

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

html.pswcag-no-animations *,
html.pswcag-no-animations *::before,
html.pswcag-no-animations *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

