.pshowwcag-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

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

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

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

#pshowwcag-toggle {
  position: relative;
  background: var(--pshowwcag-primary, #6366f1);
  color: var(--pshowwcag-primary-text, #fff);
  border: none;
  font-size: 1.6rem;
  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;
}

#pshowwcag-toggle.pshowwcag-menu-open {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 0 3px #ffffff, 0 0 0 5px var(--pshowwcag-primary, #6366f1);
}

#pshowwcag-toggle:hover {
  background: var(--pshowwcag-primary, #6366f1);
  filter: brightness(0.95);
}

#pshowwcag-menu {
  position: fixed;
  right: -450px;
  top: 0;
  width: 450px;
  height: 100dvh;
  background: var(--pshowwcag-background, #f5f5f5);
  padding: 0;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

#pshowwcag-menu:not([hidden]) {
  right: 0;
}

.pshowwcag-header {
  background: var(--pshowwcag-primary, #6366f1);
  color: var(--pshowwcag-primary-text, #fff);
  padding: 12px 16px;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.pshowwcag-header p {
  font-size: 18px !important;
  font-weight: 700;
  margin: 0;
  color: var(--pshowwcag-primary-text, #fff);
}

.pshowwcag-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pshowwcag-language {
  font-size: 18px !important;
  opacity: 0.9;
}

.pshowwcag-language-selector select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pshowwcag-primary-text, #fff);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pshowwcag-language-selector select:hover, #pshowwcag-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.pshowwcag-language-selector select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.pshowwcag-language-selector select option {
  background: var(--pshowwcag-background, #f5f5f5);
  color: var(--pshowwcag-secondary-text, #374151);
}

.pshowwcag-close-btn {
  background: none;
  border: none;
  color: var(--pshowwcag-primary-text, #fff);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pshowwcag-close-btn i {
  padding: 10px;
  font-size: 18px !important;
}

.pshowwcag-close-btn:hover h{
  background: rgba(255, 255, 255, 0.1);
}

.pshowwcag-content {
  padding: 20px;
  flex-shrink: 0;
}

.pshowwcag-section {
  margin-bottom: 24px;
}

.pshowwcag-section:last-child {
  margin-bottom: 0;
}

.pshowwcag-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--pshowwcag-secondary-text, #374151);
  margin: 0 0 16px 0;
}

.pshowwcag-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pshowwcag-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pshowwcag-card {
  background: var(--pshowwcag-card, #ffffff);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1;
}

.pshowwcag-card:hover {
  background: var(--pshowwcag-card, #ffffff);
  border-color: var(--pshowwcag-primary, #6366f1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  filter: brightness(0.95);
}

.pshowwcag-card.pshowwcag-active {
  background: var(--pshowwcag-primary, #6366f1);
  border-color: var(--pshowwcag-primary, #6366f1);
  color: var(--pshowwcag-primary-text, #fff);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.pshowwcag-card i {
  font-size: 28px !important;
  color: var(--pshowwcag-primary, #6366f1);
}

.pshowwcag-card.pshowwcag-active i {
  color: var(--pshowwcag-primary-text, #fff);
}

.pshowwcag-card span {
  font-size: 12px;
  font-weight: 500;
  color: var(--pshowwcag-secondary-text, #374151);
}

.pshowwcag-card.pshowwcag-active span {
  color: var(--pshowwcag-primary-text, #fff);
}

.pshowwcag-footer {
  padding: 0px 15px 15px 15px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex-grow: 1;
}

.pshowwcag-prestashow-link {
  color: #000;
  text-decoration: none;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pshowwcag-prestashow-link:hover {
  color: #000;
}

.pshowwcag-prestashow-text{
  font-size: 11px !important;
  color: var(--pshowwcag-secondary-text, #374151);
}

.pshowwcag-prestashow-logo {
  height: 15px;
}
.pshowwcag-reset-btn {
  margin-top: -6px;
  background: var(--pshowwcag-primary, #6366f1);
  border: 1px solid var(--pshowwcag-primary, #6366f1);
  border-radius: 4px;
  color: var(--pshowwcag-primary-text, white);
  padding: 16px 20px;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pshowwcag-reset-btn:hover {
  background: var(--pshowwcag-card, #ffffff);
  border-color: var(--pshowwcag-primary, #6366f1);
  color: var(--pshowwcag-primary, #6366f1);
}

.pshowwcag-reset-btn i {
  color: var(--pshowwcag-primary-text, white);
}

.pshowwcag-reset-btn:hover i {
  color: var(--pshowwcag-primary, #6366f1);
}

/* .pshowwcag-smarttag-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pshowwcag-primary, #6366f1);
  font-weight: 400;
  cursor: pointer;
  font-size: 16px;
  background: none;
  border: none;
  padding: 0;
  z-index: 1000;
  position: relative;
  transition: all 0.2s ease;
}

.pshowwcag-smarttag-link:hover {
  filter: brightness(0.95);
  transform: scale(1.05);
}

.pshowwcag-smarttag-link:active {
  transform: scale(0.95);
}
*/
.pshowwcag-smarttag-icon {
  background: var(--pshowwcag-primary, #6366f1);
  color: var(--pshowwcag-primary-text, #fff);
  border: none;
  border-radius: 50%;
  padding: 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pshowwcag-smarttag-icon:hover {
  filter: brightness(0.95);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pshowwcag-smarttag-icon:active {
  transform: scale(0.95);
} 

button:focus {
  outline: none;
}

#pshowwcag-toggle:focus {
  outline: none;
}


.pshowwcag-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease 0.2s;
  cursor: pointer;
}

.pshowwcag-overlay.pshowwcag-overlay-active {
  background: rgba(0, 0, 0, 0.1);
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease 0.1s;
}

@media (max-width: 600px) {
  #pshowwcag-menu {
    width: 100%;
    right: -100%;
    top: 0;
  }
  
  .pshowwcag-overlay.pshowwcag-overlay-active {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .pshowwcag-top-left #pshowwcag-menu,
  .pshowwcag-top-right #pshowwcag-menu,
  .pshowwcag-bottom-left #pshowwcag-menu,
  .pshowwcag-bottom-right #pshowwcag-menu {
    width: 100%;
    right: -100%;
  }
}

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


/* Functions */
html.pshowwcag-contrast {
  filter: contrast(125%) !important;
}

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

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

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


/* Disabled state when module is turned off */
.pshowwcag-disabled {
  display: none !important;
}

.pshowwcag-card:disabled,
.pshowwcag-card.pshowwcag-disabled {
  background: #f8f8f8 !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.5;
}

.pshowwcag-card:disabled i,
.pshowwcag-card.pshowwcag-disabled i {
  color: #ccc !important;
}

.pshowwcag-card:disabled span,
.pshowwcag-card.pshowwcag-disabled span {
  color: #ccc !important;
}

.pshowwcag-card:disabled i,
.pshowwcag-card.pshowwcag-disabled i {
  color: #ccc !important;
}

.pshowwcag-card:disabled span,
.pshowwcag-card.pshowwcag-disabled span {
  color: #ccc !important;
}

