/* Keep the complete country catalogue reachable inside the filter dialog. */
body[data-member-page="catalog"] #filter-options-country .filter-option-list {
  max-height: min(460px, calc(100vh - 300px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}

/* Text-button glyphs follow the text cap height; icon-only controls retain their own sizing. */
body[data-member-page] button:not(.round-action):has(> span) > .action-icon,
body[data-member-page] a:not(.round-action):has(> span) > .action-icon,
body[data-member-page] .edit-photo > .action-icon,
body[data-member-page] .saved-directory-button-icon {
  width: 1em !important;
  height: 1em !important;
  flex: 0 0 1em;
}

@media (max-width: 767px) {
  body[data-member-page="catalog"] #filter-options-country .filter-option-list {
    max-height: min(42vh, 360px);
  }
}
