/* GUARDEER PRIME r354 — phone/tablet entry point for Delta + Market Volume. */
.gp-mobile-prime-tools-backdrop {
  display: none;
}

@media (max-width: 920px) {
  body.terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger,
  body.gp-terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger,
  body.terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger,
  body.gp-terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger {
    min-height: 44px !important;
    height: 44px !important;
    padding-inline: 12px !important;
    border-color: rgba(51, 242, 187, .62) !important;
    color: #eafff8 !important;
    background: linear-gradient(135deg, rgba(10, 132, 169, .92), rgba(12, 183, 124, .88)) !important;
    box-shadow: 0 0 18px rgba(25, 240, 155, .18), inset 0 1px rgba(255,255,255,.16) !important;
    font-weight: 950 !important;
  }

  body.terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger > span,
  body.gp-terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger > span,
  body.terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger > span,
  body.gp-terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger > span {
    color: #9affd9 !important;
    font-size: 13px !important;
  }

  body.terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger.is-active,
  body.gp-terminal-active .gp-mobile-quick-rail .gp-mobile-prime-tools-trigger.is-active,
  body.terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger.is-active,
  body.gp-terminal-active .gp-mobile-action-dock .gp-mobile-prime-tools-trigger.is-active {
    color: #02120d !important;
    background: linear-gradient(135deg, #39f5aa, #19dfca) !important;
  }

  .gp-mobile-prime-tools-trigger:focus-visible,
  .bottom-nav__btn[data-tab="prime"]:focus-visible {
    outline: 2px solid #55f6bc !important;
    outline-offset: 2px !important;
  }

  .gp-mobile-prime-tools-backdrop {
    appearance: none;
    position: fixed;
    inset: 0;
    z-index: 100410;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 5, 10, .66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 150ms ease;
  }

  body.gp-step44-prime-tools-open .gp-mobile-prime-tools-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.gp-step44-prime-tools-open {
    overscroll-behavior: none;
  }

  .gp-step44-prime-tools-popover {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: none !important;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden !important;
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0,0,0,.78), 0 0 0 1px rgba(25,240,155,.08) inset;
    transform: translate3d(0, 16px, 0) scale(.985);
  }

  .gp-step44-prime-tools-popover.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .gp-step44-prime-tools-popover__head {
    min-height: 58px;
    padding: 10px 11px 9px;
    cursor: default;
  }

  .gp-step44-prime-tools-popover__title strong {
    font-size: 13px;
  }

  .gp-step44-prime-tools-popover__title span {
    white-space: normal;
    font-size: 10px;
  }

  .gp-step44-prime-tools-popover__close {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .gp-step44-prime-tools-popover__body {
    min-height: 0;
    max-height: none;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 16px;
  }

  .gp-step44-prime-tools-action,
  .gp-prime-module-group__toggle {
    min-height: 64px;
    padding: 10px;
  }

  .gp-prime-module-group__panel {
    gap: 8px;
    padding: 8px;
  }

  .gp-prime-module-group__item {
    min-height: 62px;
    padding: 9px;
  }

  .gp-prime-module-group__item strong {
    font-size: 11.5px;
    line-height: 1.25;
  }

  .gp-prime-module-group__item small {
    display: -webkit-box;
    max-height: none;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .gp-step44-prime-tools-action:focus-visible,
  .gp-prime-module-group__item:focus-visible,
  .gp-step44-prime-tools-popover__close:focus-visible {
    outline: 2px solid #4af2b6;
    outline-offset: 2px;
  }
}

@media (max-width: 460px) {
  .gp-step44-prime-tools-action,
  .gp-prime-module-group__item {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  .gp-step44-prime-tools-action > em,
  .gp-prime-module-group__item > em {
    display: none !important;
  }

  .gp-prime-module-group__toggle > em {
    display: inline-flex !important;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    min-height: 24px;
    align-items: center;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .gp-step44-prime-tools-popover {
    top: max(6px, env(safe-area-inset-top)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
  }

  .gp-step44-prime-tools-popover__head {
    min-height: 50px;
  }

  .gp-step44-prime-tools-popover__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .gp-prime-module-groups {
    grid-column: 1 / -1;
  }

  .gp-prime-module-group__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gp-mobile-prime-tools-backdrop,
  .gp-step44-prime-tools-popover {
    transition: none !important;
  }
}
