.webai-mobile-menu-button,
.webai-mobile-menu-dialog:not([open]) {
  display: none !important;
}

@media (max-width: 760px) {
  button[data-webai-mobile-menu-icon] {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #c3ced6 !important;
    background: #fff !important;
    color: #102638 !important;
    font-size: 0 !important;
  }

  button[data-webai-mobile-menu-icon]::after {
    display: block;
    width: 19px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
    content: '';
  }

  .webai-mobile-menu-ready [data-webai-mobile-menu],
  .webai-mobile-menu-ready [data-webai-mobile-menu-trigger] {
    display: none !important;
  }

  .webai-mobile-menu-ready .webai-mobile-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    margin: 3px 12px;
    padding: 0 12px;
    border: 1px solid #c3ced6;
    border-radius: 7px;
    background: #fff;
    color: #102638;
    font: 700 14px/1.2 system-ui, sans-serif;
    cursor: pointer;
  }

  .webai-mobile-menu-button svg {
    width: 20px;
    height: 20px;
    flex: none;
  }

  :is(.an-head, .lua-head, .aq-head):has(> .webai-mobile-menu-button) {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-block: 6px;
  }

  :is(.an-head, .lua-head, .aq-head) > .webai-mobile-menu-button {
    margin: 0 0 0 auto;
  }

  body:has(.webai-mobile-menu-dialog[open]) {
    overflow: hidden;
  }

  .webai-mobile-menu-dialog[open] {
    position: fixed;
    inset: 12px 12px auto auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(420px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #c3ced6;
    border-radius: 12px;
    background: #fff;
    color: #102638;
    font: 400 15px/1.4 system-ui, sans-serif;
  }

  .webai-mobile-menu-dialog::backdrop {
    background: rgba(9, 22, 33, .62);
  }

  .webai-mobile-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #e0e6eb;
  }

  .webai-mobile-menu-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #c3ced6;
    border-radius: 7px;
    background: #fff;
    color: #102638;
    font: 400 26px/1 system-ui, sans-serif;
    cursor: pointer;
  }

  .webai-mobile-menu-links {
    min-height: 0;
    padding: 4px 14px 12px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .webai-mobile-menu-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 5px;
    border-bottom: 1px solid #e0e6eb;
    color: #102638;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .webai-mobile-menu-links a:last-child {
    border-bottom: 0;
  }

  .webai-mobile-menu-links a:hover,
  .webai-mobile-menu-links a:focus-visible {
    background: #edf3f8;
  }
}
