/* R283: one compact, readable picker for existing buttons and screens.
   The root-level portal remains the existing implementation and cannot be
   clipped by the message editor's phone boundaries. */
#tgPlusPortal .tg-plus-popover:has(.r283-picker-section) {
  width: min(292px, calc(100vw - 16px));
  max-height: min(420px, 76dvh);
}
#tgPlusPortal .tg-plus-popover:has(.r283-picker-section) .tg-plus-scroll {
  max-height:min(320px,54dvh);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
#tgPlusPortal .r283-picker-section {
  font-size:10px;
  font-weight:800;
  letter-spacing:.045em;
  color:#506a81;
  text-transform:uppercase;
  margin:9px 6px 4px;
  padding:7px 5px 3px;
  border-top:1px solid #e5edf3;
}
#tgPlusPortal .r283-picker-section:first-child {border-top:0;margin-top:0;padding-top:3px;}
#tgPlusPortal .tg-plus-scroll button {display:block;overflow-wrap:anywhere;line-height:1.35;}
#tgPlusPortal .tg-plus-scroll button small {font-size:10px;color:#6a8294;font-weight:500;}
#tgPlusPortal .tg-plus-scroll button:focus-visible {outline:2px solid #348ecd;outline-offset:-2px;}
@media(max-width:400px){
 #tgPlusPortal .tg-plus-popover:has(.r283-picker-section) {width:min(260px,calc(100vw - 16px));}
}
