  /* Base styles for the widget */
  .acc-widget, .acc-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
  }
  
  .acc-widget *, .acc-menu * { 
    box-sizing: border-box !important; 
  }
  
  /* Accessibility toggle button */
  .acc-toggle-btn {
    position: fixed;
    z-index: var(--acc-widget-z-index, 100000);
    left: 30px;
    bottom: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    width: var(--acc-button-size, 48px);
    height: var(--acc-button-size, 48px);
    display: flex;
    cursor: pointer;
    outline: none !important;
    border: none !important;
    box-shadow: inset 0 0 0 4px var(--acc-primary-color, #1976d2), inset 0 0 0 6px white, 0 2px 5px rgba(0,0,0,0.2) !important;
    background: var(--acc-primary-color, #1976d2) !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    overflow: visible;
  }
  
  .acc-toggle-btn .acc-toggle-icon {
    width: 60%;
    height: 60%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .acc-toggle-btn .acc-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
    transition: none;
  }
  
  .acc-toggle-btn:hover {
    transform: scale(1.12);
  }

  /* The menu panel replaces the button while open; closeMenu() restores
     aria-expanded before moving focus back here, so the button is visible
     and focusable again by the time it receives focus. */
  .acc-toggle-btn[aria-expanded="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .acc-violation-bubble {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
    z-index: 1;
    color: #fff;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .acc-violation-bubble[data-severity="critical"] {
    background: #d32f2f;
    color: #fff;
  }

  .acc-violation-bubble[data-severity="serious"] {
    background: #f57c00;
    color: #fff;
  }

  .acc-violation-bubble[data-severity="moderate"] {
    background: #fbc02d;
    color: #333;
  }

  .acc-violation-bubble[hidden] {
    display: none;
  }

  .acc-toggle-btn:focus {
    outline: none !important;
  }

  .acc-toggle-btn:focus-visible {
    outline: 3px solid var(--acc-primary-color, #1976d2) !important;
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    .acc-toggle-btn {
      transition: none;
    }

    .acc-toggle-btn .acc-toggle-icon svg {
      transition: none;
    }

  }
