/* gram-bot local compatibility patch: Paperclip mobile entity pickers.
   Scope: phone-sized screens only. Radix's transformed zero-size wrapper
   otherwise becomes the containing block of the fixed picker.
   References: paperclipai/paperclip#13957 and #14203. */
@media (max-width: 40rem) {
  [data-radix-popper-content-wrapper]:has(> [data-mobile-entity-picker]) {
    position: fixed !important;
    inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: calc(100dvh - 2rem) !important;
    transform: none !important;
    translate: none !important;
    will-change: auto !important;
    animation: none !important;
  }
  [data-radix-popper-content-wrapper]:has(> [data-mobile-entity-picker])
    > [data-mobile-entity-picker] {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
  }
}
