/* Shopacc89 system/community menu refresh — 2026-09-05 */

@media (min-width: 1000px) {
  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-dropdown {
    position: relative !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu {
    top: 57px !important;
    width: min(620px, calc(100vw - 32px)) !important;
    max-height: min(520px, calc(100vh - 170px)) !important;
    padding: 10px !important;
    gap: 10px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%) !important;
    border: 1px solid #dbe6f5 !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(37, 99, 235, 0.06) !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-dropdown.open .sa-ng247-system-menu,
  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-dropdown:hover .sa-ng247-system-menu,
  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-dropdown:focus-within .sa-ng247-system-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-dropdown.sa-system-menu-dismissed .sa-ng247-system-menu {
    display: none !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 58px !important;
    padding: 9px 11px !important;
    background: linear-gradient(135deg, #0f5be9 0%, #2775f5 58%, #4d8dff 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.19) !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px !important;
    grid-area: auto !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro-icon svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
    grid-area: auto !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro-copy strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-intro-copy small {
    display: block !important;
    color: #eaf2ff !important;
    -webkit-text-fill-color: #eaf2ff !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    grid-area: auto !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 28px !important;
    padding: 0 9px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(8, 47, 118, 0.24) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    grid-area: auto !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 26px !important;
    grid-template-areas: "system-icon system-copy system-arrow" !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 9px 10px !important;
    color: #162033 !important;
    -webkit-text-fill-color: initial !important;
    background: #ffffff !important;
    border: 1px solid #e1e9f5 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link:first-of-type {
    grid-column: 1 / -1 !important;
    min-height: 66px !important;
    background: linear-gradient(135deg, #edf5ff 0%, #f7faff 100%) !important;
    border-color: #cbdffa !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link:hover {
    transform: translateY(-1px) !important;
    background: #f8fbff !important;
    border-color: #aecdFA !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.10) !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.26) !important;
    outline-offset: 1px !important;
    border-color: #2563eb !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-icon {
    grid-area: system-icon !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: #eaf2ff !important;
    border: 1px solid #d8e7ff !important;
    border-radius: 12px !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-copy {
    grid-area: system-copy !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-copy strong {
    display: block !important;
    color: #162033 !important;
    -webkit-text-fill-color: #162033 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-copy small {
    display: block !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    grid-area: auto !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-arrow {
    grid-area: system-arrow !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: #f6f8fb !important;
    border-radius: 9px !important;
    overflow: visible !important;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link .sa-system-menu-link-arrow svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
  }

  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link:hover .sa-system-menu-link-arrow {
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: #e7f0ff !important;
    transform: translateX(1px) !important;
  }
}

@media (max-width: 1023px) {
  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] {
    left: 10px !important;
    right: 10px !important;
    top: calc(82px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    height: auto !important;
    max-height: calc(100vh - 174px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%) !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24) !important;
    overflow: hidden !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-header {
    position: relative !important;
    top: auto !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 12px 12px 11px 14px !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #e8eef7 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-width: 0 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0f5be9 0%, #3b82f6 100%) !important;
    border-radius: 13px !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24) !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-icon svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-copy h3 {
    margin: 0 !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-copy small {
    display: block !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-sheet-close {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin-left: 10px !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-sheet-close::before {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-sheet-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25) !important;
    outline-offset: 1px !important;
    border-color: #93baf4 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-sheet-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 8px !important;
    max-height: calc(100vh - 250px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    padding: 11px 12px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 34px !important;
    padding: 0 3px 2px !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-summary strong {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 27px !important;
    padding: 0 9px !important;
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    background: #eaf2ff !important;
    border: 1px solid #d7e6ff !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 28px !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 62px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 9px !important;
    color: #162033 !important;
    -webkit-text-fill-color: initial !important;
    text-align: left !important;
    background: #ffffff !important;
    border: 1px solid #e1e9f5 !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.045) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card:first-of-type {
    min-height: 66px !important;
    background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%) !important;
    border-color: #c7ddfb !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card:active {
    transform: scale(0.99) !important;
    border-color: #93baf4 !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25) !important;
    outline-offset: 1px !important;
    border-color: #2563eb !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card .mobile-sheet-link-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    margin: 0 !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    background: #eaf2ff !important;
    border: 1px solid #d8e7ff !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card .mobile-sheet-link-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    color: inherit !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card .mobile-sheet-link-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card .mobile-sheet-link-content strong {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #162033 !important;
    -webkit-text-fill-color: #162033 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card .mobile-sheet-link-content small {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-link-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    background: #f3f6fa !important;
    border-radius: 9px !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-link-arrow svg {
    display: block !important;
    width: 15px !important;
    height: 15px !important;
  }
}

@media (max-width: 359px) {
  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] {
    left: 6px !important;
    right: 6px !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-title-copy small {
    white-space: normal !important;
  }

  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] .mobile-system-summary span {
    max-width: 190px !important;
  }
}

/* Keep floating support controls from covering the last system card. */
html body.mobile-sheet-system-open #sac-wrap {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-ng247-system-menu a.sa-system-menu-link,
  html body.shopacc-white-theme .sa-header.sa-header-v3 .sa-system-menu-link-arrow,
  html body.mobile-app-enabled.shopacc-white-theme .mobile-action-sheet[data-mobile-sheet-panel="system"] a.mobile-system-link-card {
    transition: none !important;
  }
}
