@charset "utf-8";

/* Align accessibility button above cookie button, bottom-left */
.asw-menu-btn {
  left: 20px !important;
  bottom: 100px !important; /* above cookie button at bottom: 30px */
  z-index: 500000;
}


/* Accessibility widget mobile tweaks */

@media (max-width: 576px) {
  /* Main accessibility menu panel */
  .asw-menu {
    width: calc(100% - 1.5rem) !important;   /* leave a small margin */
    max-width: calc(100% - 1.5rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;              /* keep it above the bottom a bit */
    top: auto !important;                    /* ensure it's anchored to bottom */
    max-height: 80vh !important;             /* don’t exceed 80% of viewport height */
    border-radius: 12px !important;
    overflow: hidden;                        /* let inner content scroll */
  }

  /* If the widget uses an inner scrollable body/container */
  .asw-menu .asw-body,
  .asw-menu .asw-content,
  .asw-menu .asw-menu-items {
    max-height: calc(80vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Slightly smaller text/buttons to fit better on tiny screens */
  .asw-menu,
  .asw-menu * {
    font-size: 0.9rem;
  }
}